Interface CollectionAgent
-
- All Known Subinterfaces:
SnmpCollectionAgent
- All Known Implementing Classes:
CollectionAgentDTO
,DefaultCollectionAgent
,DefaultSnmpCollectionAgent
,MockCollectionAgent
public interface CollectionAgent
CollectionAgent interface.
- Version:
- $Id: $
- Author:
- Mathew Brozowski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.InetAddress
getAddress()
Returns the address information for the interface.<V> V
getAttribute(java.lang.String property)
This method is used to return the object that is associated with the property name.java.util.Set<java.lang.String>
getAttributeNames()
Retrieves the names of all available attributes.java.lang.String
getForeignId()
getForeignIdjava.lang.String
getForeignSource()
getForeignSourcejava.lang.String
getHostAddress()
getHostAddressjava.lang.String
getLocationName()
getLocationNameint
getNodeId()
getNodeIdjava.lang.String
getNodeLabel()
getNodeLabellong
getSavedSysUpTime()
getSavedSysUpTimeResourcePath
getStorageResourcePath()
java.lang.Boolean
isStoreByForeignSource()
isStoreByForeignSourcejava.lang.Object
setAttribute(java.lang.String property, java.lang.Object value)
This method is used to associate an object value with a textual key.void
setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
-
-
-
Method Detail
-
getAddress
java.net.InetAddress getAddress()
Returns the address information for the interface.
- Returns:
- a
Object
object.
-
getAttributeNames
java.util.Set<java.lang.String> getAttributeNames()
Retrieves the names of all available attributes.- Returns:
- a
Set
that contains the name of all configured attributes
-
getAttribute
<V> V getAttribute(java.lang.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.
- Parameters:
property
- The key for the lookup.- Returns:
- The resulting value for the key, null if no value exist.
- Throws:
java.lang.IllegalArgumentException
- Thrown if the passed key is empty or null.- See Also:
Map.get(java.lang.Object)
-
setAttribute
java.lang.Object setAttribute(java.lang.String property, java.lang.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.
- Parameters:
property
- The keyvalue
- The value to associate with the key- Returns:
- The object that was previously associated with the key. Null is returned if there was no previous value associated.
- Throws:
java.lang.IllegalArgumentException
- Thrown if the property name is empty or null.- See Also:
Map.put(java.lang.Object, java.lang.Object)
-
isStoreByForeignSource
java.lang.Boolean isStoreByForeignSource()
isStoreByForeignSource
- Returns:
- a
Boolean
object.
-
getHostAddress
java.lang.String getHostAddress()
getHostAddress
- Returns:
- a
String
object.
-
getNodeId
int getNodeId()
getNodeId
- Returns:
- a int.
-
getNodeLabel
java.lang.String getNodeLabel()
getNodeLabel
- Returns:
- a
String
object.
-
getForeignSource
java.lang.String getForeignSource()
getForeignSource
- Returns:
- a
String
object.
-
getForeignId
java.lang.String getForeignId()
getForeignId
- Returns:
- a
String
object.
-
getLocationName
java.lang.String getLocationName()
getLocationName
- Returns:
- a
String
object.
-
getStorageResourcePath
ResourcePath getStorageResourcePath()
-
getSavedSysUpTime
long getSavedSysUpTime()
getSavedSysUpTime
- Returns:
- a long.
-
setSavedSysUpTime
void setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
- Parameters:
sysUpTime
- a long.
-
-