public class DeviceFirmware extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceFirmware.Builder
A Builder class that helps to build the Device Firmware object
|
static class |
DeviceFirmware.FirmwareState
The firmware update process is separated into two distinct actions, Downloading Firmware, and Updating Firmware.
|
static class |
DeviceFirmware.FirmwareUpdateStatus
The
mgmt.firmware.updateStatus
attribute describes the status of firmware update. |
Resource.ChangeListenerType| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_NAME |
RESPONSE_TIMEOUT, ROOT_RESOURCE_NAME| Modifier and Type | Method and Description |
|---|---|
String |
getDeviceId() |
String |
getName()
Returns the name of the firmware
|
int |
getState()
Returns the firmware state
|
String |
getTypeId() |
int |
getUpdateStatus()
Returns the Firmware Update status
|
String |
getUrl()
Returns the firmware URL
|
String |
getVerifier()
Returns the firmware Verifier
|
String |
getVersion()
returns the version of the firmware
|
void |
setName(String name)
Set the name of the firmware
|
void |
setState(DeviceFirmware.FirmwareState state)
Set the firmware state
|
void |
setUpdateStatus(DeviceFirmware.FirmwareUpdateStatus updateStatus)
Set the Firmware Update status
|
void |
setUrl(String url)
Set the firmware URL
|
void |
setVerifier(String verifier)
Set the firmware verifier
|
void |
setVersion(String version)
Set the firmware with the given version
|
com.google.gson.JsonObject |
toJsonObject() |
String |
toString() |
int |
update(DeviceFirmware firmware)
Update the Firmware object with new values
|
int |
update(com.google.gson.JsonElement firmware)
Update the Firmware object with new values
|
int |
update(com.google.gson.JsonElement firmware,
boolean fireEvent)
Update the Firmware object with new values
|
add, addPropertyChangeListener, addPropertyChangeListener, fireEvent, fireEvent, getCanonicalName, getChild, getChildren, getParent, getRC, getResourceName, getResponseRequired, getValue, notifyExternalListeners, remove, remove, removePropertyChangeListener, setParent, setRC, setValue, setValue, waitForResponsepublic static final String RESOURCE_NAME
public int update(DeviceFirmware firmware)
firmware - The device firmware object to be updatedpublic int update(com.google.gson.JsonElement firmware)
public int update(com.google.gson.JsonElement firmware,
boolean fireEvent)
public String getVersion()
public void setVersion(String version)
version - version to be updatedpublic String getUrl()
public void setUrl(String url)
url - URL that needs to be setpublic String getVerifier()
public void setVerifier(String verifier)
verifier - verifier that needs to be setpublic int getState()
public void setState(DeviceFirmware.FirmwareState state)
state - the state needs to be setpublic String getName()
public void setName(String name)
name - The name of the firmware to be set topublic int getUpdateStatus()
public void setUpdateStatus(DeviceFirmware.FirmwareUpdateStatus updateStatus)
updateStatus - the firmware update status to be set topublic com.google.gson.JsonObject toJsonObject()
toJsonObject in class ResourceJsonObject of the DeviceInfopublic String toString()
public String getDeviceId()
public String getTypeId()
Copyright © 2019. All rights reserved.