public interface CollectionAgent
CollectionAgent interface.
Modifier and Type | Method and Description |
---|---|
InetAddress |
getAddress()
Returns the address information for the interface.
|
<V> V |
getAttribute(String property)
This method is used to return the object that is associated with the
property name.
|
Set<String> |
getAttributeNames()
Retrieves the names of all available attributes.
|
String |
getForeignId()
getForeignId
|
String |
getForeignSource()
getForeignSource
|
String |
getHostAddress()
getHostAddress
|
String |
getLocationName()
getLocationName
|
int |
getNodeId()
getNodeId
|
String |
getNodeLabel()
getNodeLabel
|
long |
getSavedSysUpTime()
getSavedSysUpTime
|
ResourcePath |
getStorageResourcePath() |
Boolean |
isStoreByForeignSource()
isStoreByForeignSource
|
Object |
setAttribute(String property,
Object value)
This method is used to associate an object value with a textual key.
|
void |
setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
|
InetAddress getAddress()
Returns the address information for the interface.
Object
object.Set<String> getAttributeNames()
Set
that contains the name of all configured attributes<V> V getAttribute(String property)
This method is used to return the object that is associated with the property name. This is very similar to the java.util.Map get() method, but requires that the lookup be performed using a String name. The object may be of any instance that the monitor previous stored.
If there is no matching object for the property key, then a null pointer is returned to the application.
property
- The key for the lookup.IllegalArgumentException
- Thrown if the passed key is empty or null.Map.get(java.lang.Object)
Object setAttribute(String property, Object value)
This method is used to associate an object value with a textual key. If a previous value was associated with the key then the old value is returned to the caller. This is identical to the behavior defined by the java.util.Map put() method. The only restriction is that the key must be a java string instance.
property
- The keyvalue
- The value to associate with the keyIllegalArgumentException
- Thrown if the property name is empty or null.Map.put(java.lang.Object, java.lang.Object)
Boolean isStoreByForeignSource()
isStoreByForeignSource
Boolean
object.int getNodeId()
getNodeId
ResourcePath getStorageResourcePath()
long getSavedSysUpTime()
getSavedSysUpTime
void setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
sysUpTime
- a long.Copyright © 2021. All rights reserved.