|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LeaseResults
This interface represents the results from the
IPDevice.getDetails(DeviceID,
List) call. The interface contains information about the leases found for
the request and errors that occurred while retrieving the information.
| Field Summary | |
|---|---|
static byte |
CNR_STATE_ERROR_RETURNED
Indicates the Network Registrar sent an error code back or there is no binding |
static byte |
CNR_STATE_LEASE_NOT_IN_USE
Indicates the Network Registrar server returned saying the lease is not in use. |
static byte |
CNR_STATE_LEASE_RETURNED
Indicates the Network Registrar server returned lease for this request. |
static byte |
CNR_STATE_NO_RESPONSE
Indicates the Network Registrar server did not respond to this request. |
static byte |
CNR_STATE_OFFLINE
Indicates the Network Registrar server was offline at the time of this request. |
static byte |
CNR_STATE_UNKNOWN_SERVER
Indicates the Network Registrar server requested is not known. |
| Method Summary | |
|---|---|
LeaseResults |
filterForProvGroup(int indexInList)
Returns a new LeaseResults object that is specific to the requested provisioning group. |
LeaseResults |
filterForProvGroup(String provGroupID)
Returns a new LeaseResults object that is specific to the requested provisioning group. |
List<String> |
getAllCNRServers()
Returns a List of the Network Registrar server IP addresses that were applicable to the lease request performed. |
List<String> |
getAllProvGroups()
Returns a List of all the provisioning groups returned in this lease request. |
byte |
getCNRServerState(int indexInList)
Returns a byte indicating the Network Registrar server state for this lease request. |
byte |
getCNRServerState(String cnrServer)
Returns a byte indicating the Network Registrar server state for this lease request. |
List<Map<String,Object>> |
getLeases()
Returns a List of the active leases that match the criteria for the requested lease. |
Map<String,Object> |
getSingleLease()
Returns a single lease that was found for the lease request. |
boolean |
isActive()
Returns true if the requested lease is currently in use on the network in at least one location. |
boolean |
isPartialAnswer()
Returns true if not all of queried Network Registrar servers responded to the request for lease information. |
boolean |
isV4()
Return true if the lease result is for an IPv4 device. |
boolean |
isV6()
Returns true if the lease result is for an IPv6 device. |
| Field Detail |
|---|
static final byte CNR_STATE_UNKNOWN_SERVER
static final byte CNR_STATE_LEASE_RETURNED
static final byte CNR_STATE_LEASE_NOT_IN_USE
static final byte CNR_STATE_OFFLINE
static final byte CNR_STATE_NO_RESPONSE
static final byte CNR_STATE_ERROR_RETURNED
| Method Detail |
|---|
List<String> getAllProvGroups()
LeaseResults filterForProvGroup(int indexInList)
This method will return null if called for a provisioning group that does not exist.
LeaseResults filterForProvGroup(String provGroupID)
This method will return null if called for a provisioning group that does not exist.
boolean isActive()
If this method is called on a LeaseResults filtered for a particular provisioning group, this method will return true only if the lease is in use in that designated group.
boolean isPartialAnswer()
If this method is called on a LeaseResults filtered for a particular provisioning group, this method will return true only if the lease information was not complete in that designated group.
boolean isV4()
boolean isV6()
List<Map<String,Object>> getLeases()
If this method is called on a LeaseResults filtered for a particular provisioning group, this method will return the lease objects for that designated group.
Map<String,Object> getSingleLease()
throws MultipleLeasesException
If this method is called on a LeaseResults filtered for a particular provisioning group, this method will return the lease information in that designated group.
MultipleLeasesExceptionList<String> getAllCNRServers()
If this method is called on a LeaseResults filtered for a particular provisioning group, this method will return the Network Registrar servers only applicable to that provisioning group.
byte getCNRServerState(int indexInList)
LeaseResults.CNR_STATE_LEASE_RETURNEDLeaseResults.CNR_STATE_LEASE_NOT_IN_USELeaseResults.CNR_STATE_OFFLINELeaseResults.CNR_STATE_NO_RESPONSELeaseResults.CNR_STATE_ERROR_RETURNEDIf this method is called on a LeaseResults filtered for a particular provisioning group, this method will return the Network Registrar servers only applicable to that provisioning group.
byte getCNRServerState(String cnrServer)
LeaseResults.CNR_STATE_LEASE_RETURNEDLeaseResults.CNR_STATE_LEASE_NOT_IN_USELeaseResults.CNR_STATE_OFFLINELeaseResults.CNR_STATE_NO_RESPONSELeaseResults.CNR_STATE_ERROR_RETURNEDIf this method is called on a LeaseResults filtered for a particular provisioning group, this method will return the Network Registrar servers only applicable to that provisioning group.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||