AdventNet WiFi Mediation API, v1.0

com.adventnet.wifi.mediation.beans
Class FirmwareBean

java.lang.Object
  extended bycom.adventnet.wifi.mediation.beans.AbstractBean
      extended bycom.adventnet.wifi.mediation.beans.FirmwareBean
All Implemented Interfaces:
FirmwareBeanConstants

public class FirmwareBean
extends AbstractBean
implements FirmwareBeanConstants

Class that holds details related to Firmware Upgrades.

See Also:
MediationAPI.upgradeFirmware(Device,FirmwareBean)

Field Summary
 
Fields inherited from interface com.adventnet.wifi.mediation.FirmwareBeanConstants
FIRMWARE_RELOAD, FIRMWARE_UPGRADE
 
Constructor Summary
FirmwareBean()
           
 
Method Summary
 java.lang.String getImageFilePath()
          Returns the name of the firmware to be upgraded.
 int getMaxRetriesCount()
          Returns the number of times, the WifiMediation should attempt to get the firmware upgrade status.
 int getRetryInterval()
          Returns the time ( in seconds) until which the WifiMediation will wait for checking the firmware upgrade status.
 FirmwareUpgradeStatusListener getStatusListener()
          Returns the listener that is being registered with WifiMediation for getting firmware upgrades.
static java.lang.String[] getTemplateConstants()
          Used for Internal Purposes.
 TftpCredentials getTftpCredentials()
          Returns the credentials related to TFTP.
 void registerForFirmwareUpgradeStatus(FirmwareUpgradeStatusListener listener, int retryInterval, int retriesCount)
          Method to register listeners for getting updates on firmware upgrade.
 void setImageFilePath(java.lang.String relativePath)
          Method to set the relative path of the firmware file, with respect to the TftpServer
 void setTftpCredentails(TftpCredentials tftpCredentials)
          Method to set the TFTP Credentials.
 
Methods inherited from class com.adventnet.wifi.mediation.beans.AbstractBean
getData, getOperationType, getRadioIndex, getRadioMac, getRadioMode, setOperationType, setRadioIndex, setRadioMac, setRadioMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirmwareBean

public FirmwareBean()
Method Detail

getTftpCredentials

public TftpCredentials getTftpCredentials()
Returns the credentials related to TFTP.


setTftpCredentails

public void setTftpCredentails(TftpCredentials tftpCredentials)
Method to set the TFTP Credentials.

See Also:
TftpCredentials

getImageFilePath

public java.lang.String getImageFilePath()
Returns the name of the firmware to be upgraded.


setImageFilePath

public void setImageFilePath(java.lang.String relativePath)
Method to set the relative path of the firmware file, with respect to the TftpServer


getTemplateConstants

public static java.lang.String[] getTemplateConstants()
Used for Internal Purposes.


registerForFirmwareUpgradeStatus

public void registerForFirmwareUpgradeStatus(FirmwareUpgradeStatusListener listener,
                                             int retryInterval,
                                             int retriesCount)
Method to register listeners for getting updates on firmware upgrade.

Parameters:
listener - Any Object that implements FirmwareUpgradeStatusListener
retryInterval - Time in seconds, until which the WifiMediation will wait, before checking the firmware upgrade status.
retriesCount - Number of times, the WifiMediation should attempt to get the firmware upgrade status.

getRetryInterval

public int getRetryInterval()
Returns the time ( in seconds) until which the WifiMediation will wait for checking the firmware upgrade status.

See Also:
registerForFirmwareUpgradeStatus(FirmwareUpgradeStatusListener ,int , int )

getMaxRetriesCount

public int getMaxRetriesCount()
Returns the number of times, the WifiMediation should attempt to get the firmware upgrade status.

See Also:
registerForFirmwareUpgradeStatus(FirmwareUpgradeStatusListener ,int , int )

getStatusListener

public FirmwareUpgradeStatusListener getStatusListener()
Returns the listener that is being registered with WifiMediation for getting firmware upgrades.

See Also:
registerForFirmwareUpgradeStatus(FirmwareUpgradeStatusListener ,int , int )

AdventNet WiFi Mediation API, v1.0

Copyright © 2005 AdventNet Inc. All Rights Reserved.