|
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.Device
Class representing a WLAN Device in the network. Users have to create an instance of this class to communicate with the real device. Ensure to set appropriate credentials (SNMP, CLI etc.,) before configuring or fetching details from the WLAN Device.
CLICredentials,
SNMPCredentials,
MediationAPI| Constructor Summary | |
Device(java.lang.String name,
int vendor,
int model)
Constructs a Device with the specified name, vendor and model. |
|
| Method Summary | |
CLICredentials |
getCLICredentials()
Fetches the CLI Credentials of this Device which has been set using setCLICredentials Method. |
java.lang.String |
getCompatibleFirmwareVersion()
Used Internally. |
java.lang.String |
getDeviceName()
Returns either DNS Name or IP Address which has been set using setDeviceName Method. |
java.lang.String |
getFirmwareVersion()
Returns the firmware version of the device which has been assigned using setFirmwareVersion. |
int |
getModel()
Returns the model ID for this device. |
SNMPCredentials |
getSNMPCredentials()
Fetches the SNMP Credentials of this Device which has been set using setSNMPCredentials Method. |
int |
getVendor()
Returns the WLAN Device's Vendor ID. |
void |
setCLICredentials(CLICredentials CLICredentials)
Sets the CLI Credentials for this Device. |
void |
setCompatibleFirmwareVersion(java.lang.String version)
Used Internally. |
void |
setFirmwareVersion(java.lang.String version)
Sets the firmware version of the device. |
void |
setModel(int model)
Sets the model ID of this device. |
void |
setSNMPCredentials(SNMPCredentials snmpCredentials)
Sets the SNMP credentials for this device. |
void |
setVendor(int vendor)
Method to set the WLAN Device's Vendor. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Device(java.lang.String name,
int vendor,
int model)
throws ModelNotSupportedException
name - Represents the DNS Name or IP Address of the device.vendor - Represents the Manufacturermodel - Represents a particular model from that Vendor.
ModelNotSupportedException - throws ModelNotSupportedException when the combination of vendor and model passed as arguments is not in the supported list.VendorConstants| Method Detail |
public java.lang.String getDeviceName()
public int getVendor()
VendorConstantspublic void setVendor(int vendor)
VendorConstantspublic int getModel()
VendorConstants
public void setModel(int model)
throws ModelNotSupportedException
model - the model ID of this device
ModelNotSupportedException - throws ModelNotSupportedException when the combination of vendor (set via the constructor or via setVendor method) and model passed as argument is not in the supported list.VendorConstantspublic void setSNMPCredentials(SNMPCredentials snmpCredentials)
snmpCredentials - the SNMP credentialsSNMPCredentialspublic SNMPCredentials getSNMPCredentials()
SNMPCredentialspublic void setCLICredentials(CLICredentials CLICredentials)
CLICredentials - the CLI CredentialsCLICredentialspublic CLICredentials getCLICredentials()
CLICredentialspublic java.lang.String getFirmwareVersion()
public void setFirmwareVersion(java.lang.String version)
public java.lang.String getCompatibleFirmwareVersion()
public void setCompatibleFirmwareVersion(java.lang.String version)
public java.lang.String toString()
|
AdventNet WiFi Mediation API, v1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||