|
AdventNet WiFi Mediation API, v1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adventnet.wifi.mediation.MediationAPI
This is the Gateway Class to the WiFiMediation which provides methods for managing Wireless Devices. APIs to configure,reboot,firmware upgrades etc are
available in this class.
Code Snippet given below helps you to configure a Cisco 1100 AP
//Creating a RadioBean
RadioBean rcb = new RadioBean();
//Specifying the RadioInterface for configuration
rcb.setRadioMode(MediationConstants.RADIO_BG);
//Making the Radio to UP.
rcb.setEnableRadio(true);
//Setting the Transmission to Maximum.
rcb.setTransmitPower(RadioBean.MAXIMUM_POWER);
//Creating the Device
Device device = new Device("Cisco1100AP",VendorConstants.CISCO,VendorConstants.CISCO_IOS_1100);
//Creating CLI Credentials
CLICredentials credn = new CLICredentials(23, "Cisco", "Cisco");
device.setCLICredentials(credn);
//Configuring the AccessPoint
ConfigResult result = MediationAPI.configureAccessPoint(device,bean);
Device,
RadioBean,
SSIDBean,
FirmwareBean,
ACLBean| Constructor Summary | |
MediationAPI()
|
|
| Method Summary | |
static void |
cleanUpResources(boolean flag)
Method to cleanup the resources used by the WiFiMediation. |
static ConfigResult |
configureAccessPoint(Device device,
AbstractBean bean)
Method to configure WLAN Devices. |
static AbstractBean[] |
getAccessPointDetails(Device device,
int details)
Fetches the details from WLAN Devices. |
static java.lang.String |
getFirmwareVersion(Device device)
Returns the firmware version of the WLAN Device. |
static boolean |
isModelSupported(int vendor,
int model)
Says whether a particular model of WLAN Device is supported in WiFiMediation or not. |
static ConfigResult |
rebootAccessPoint(Device device)
Reboots the specified WLAN Device. |
static ConfigResult |
upgradeFirmware(Device device,
FirmwareBean bean)
Method to upgrade firmwares on WLAN Devices. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MediationAPI()
| Method Detail |
public static ConfigResult configureAccessPoint(Device device,
AbstractBean bean)
throws AgentNotReachableException,
MediationException,
InvalidInputsException
device - Represents a WLAN Device to be configured.bean - Holds values to be configured.
AgentNotReachableException - Throws this exception when the agent (CLI or SNMP) in the device, which
is used for this particular operation is not reachable
from the mediation server.
MediationException - Other unspecified exceptions including the runtime exceptions are wrapped and thrown as MediationException.
InvalidInputsException - when the inputs are not valid.RadioBean,
SSIDBean,
ACLBean,
FirmwareBean
public static ConfigResult rebootAccessPoint(Device device)
throws AgentNotReachableException,
MediationException
device - Represents a WLAN Device that needs to be rebooted.
AgentNotReachableException - Throws this exception when the agent (CLI or SNMP) in the device, which
is used for this particular operation is not reachable from the WiFiMediation.
MediationException - Other unspecified exceptions including the runtime exceptions are wrapped and thrown as MediationException.
public static ConfigResult upgradeFirmware(Device device,
FirmwareBean bean)
throws AgentNotReachableException,
MediationException
device - Represents a WLAN Device whose firmware is to be upgraded.bean - Holds details related to image path and TFTPServer IP
AgentNotReachableException
MediationExceptionFirmwareUpgradeStatusListener,
FirmwareUpgradeEvent
public static java.lang.String getFirmwareVersion(Device device)
throws MediationException,
AgentNotReachableException
device - Represents a WLAN Device whose Firmware version is to be known
MediationException
AgentNotReachableException
public static boolean isModelSupported(int vendor,
int model)
throws MediationException
vendor - Represents the manufacturer of the WLAN Devicemodel - Represents a specific model from that Vendor
MediationException - Wraps the run time exceptions and throws it as MediationExceptionVendorConstants
public static AbstractBean[] getAccessPointDetails(Device device,
int details)
throws AgentNotReachableException,
MediationException
device - Represents a WLAN Device from which the details has to be fetched.details - the type of details that needs to be fetched, constants for this are defined in
MediationConstants.
AgentNotReachableException - Throws this exception when the agent (CLI or SNMP) in the device, which
is used for this particular operation is not reachable
from the mediation server.
MediationException - Other unspecified exceptions including the runtime exceptions are wrapped and thrown as MediationException.MediationConstants.RADIO_DETAILS,
MediationConstants.RADIUS_DETAILS,
MediationConstants.SSID_DETAILS,
MediationConstants.ACL_DETAILS,
MediationConstants.RX_TRAFFIC,
MediationConstants.TX_TRAFFIC,
MediationConstants.RX_ERRORS,
MediationConstants.TX_ERRORS,
MediationConstants.WEP_ICV_ERRORS,
MediationConstants.WEP_UNDECRYPTABLE_ERRORS,
MediationConstants.FCS_ERRORS,
MediationConstants.FRAME_RETRIES,
MediationConstants.MOBILE_CLIENT_DETAILSpublic static void cleanUpResources(boolean flag)
flag - the status of the clean up operation. Set value 'true' to stop all the running threads.
|
AdventNet WiFi Mediation API, v1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||