public class DefaultCollectionAgent extends Object implements CollectionAgent
Modifier and Type | Field and Description |
---|---|
protected CollectionAgentService |
m_agentService |
Modifier | Constructor and Description |
---|---|
protected |
DefaultCollectionAgent(CollectionAgentService agentService,
String location) |
Modifier and Type | Method and Description |
---|---|
static CollectionAgent |
create(Integer ifaceId,
IpInterfaceDao ifaceDao,
org.springframework.transaction.PlatformTransactionManager transMgr)
create
|
static CollectionAgent |
create(Integer ifaceId,
IpInterfaceDao ifaceDao,
org.springframework.transaction.PlatformTransactionManager transMgr,
String location) |
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
|
protected void |
logCollectionParms() |
protected void |
logCompletion() |
Object |
setAttribute(String property,
Object value)
This method is used to associate an object value with a textual key.
|
void |
setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
|
String |
toString()
toString
|
protected CollectionAgentService m_agentService
protected DefaultCollectionAgent(CollectionAgentService agentService, String location)
public static CollectionAgent create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
create
ifaceId
- a Integer
object.ifaceDao
- a IpInterfaceDao
object.transMgr
- a PlatformTransactionManager
object.CollectionAgent
object.public static CollectionAgent create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr, String location)
public final InetAddress getAddress()
Returns the address information for the interface.
getAddress
in interface CollectionAgent
Object
object.public final Set<String> getAttributeNames()
CollectionAgent
getAttributeNames
in interface CollectionAgent
Set
that contains the name of all configured attributespublic final <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.
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.
getAttribute
in interface CollectionAgent
property
- The key for the lookup.IllegalArgumentException
- Thrown if the passed key is empty or null.Map.get(java.lang.Object)
public final 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.
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.
setAttribute
in interface CollectionAgent
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)
public final Boolean isStoreByForeignSource()
isStoreByForeignSource
isStoreByForeignSource
in interface CollectionAgent
Boolean
object.public final String getHostAddress()
getHostAddress
getHostAddress
in interface CollectionAgent
String
object.public final int getNodeId()
getNodeId
getNodeId
in interface CollectionAgent
public final String getNodeLabel()
getNodeLabel
getNodeLabel
in interface CollectionAgent
String
object.public final String getForeignSource()
getForeignSource
getForeignSource
in interface CollectionAgent
String
object.public final String getForeignId()
getForeignId
getForeignId
in interface CollectionAgent
String
object.public final String getLocationName()
CollectionAgent
getLocationName
getLocationName
in interface CollectionAgent
String
object.public final ResourcePath getStorageResourcePath()
getStorageResourcePath
in interface CollectionAgent
protected void logCompletion()
protected void logCollectionParms()
public String toString()
toString
public final long getSavedSysUpTime()
getSavedSysUpTime
getSavedSysUpTime
in interface CollectionAgent
public final void setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
setSavedSysUpTime
in interface CollectionAgent
sysUpTime
- a long.Copyright © 2018. All rights reserved.