public class DefaultCollectionAgent extends InetNetworkInterface implements SnmpCollectionAgent
m_addressTYPE_INET, TYPE_UNKNOWN| Modifier and Type | Method and Description |
|---|---|
static SnmpCollectionAgent |
create(Integer ifaceId,
IpInterfaceDao ifaceDao,
org.springframework.transaction.PlatformTransactionManager transMgr)
create
|
InetAddress |
getAddress()
Returns the address information for the interface.
|
SnmpAgentConfig |
getAgentConfig()
getAgentConfig
|
String |
getForeignId()
getForeignId
|
String |
getForeignSource()
getForeignSource
|
String |
getHostAddress()
getHostAddress
|
String |
getLocationName()
getLocationName
|
int |
getNodeId()
getNodeId
|
String |
getNodeLabel()
getNodeLabel
|
int |
getSavedIfCount()
getSavedIfCount
|
long |
getSavedSysUpTime()
getSavedSysUpTime
|
Set<IfInfo> |
getSnmpInterfaceInfo(IfResourceType type)
getSnmpInterfaceInfo
|
String |
getSnmpInterfaceLabel(int ifIndex)
getSnmpInterfaceLabel
|
File |
getStorageDir()
getStorageDir
|
String |
getSysObjectId()
getSysObjectId
|
Boolean |
isStoreByForeignSource()
isStoreByForeignSource
|
void |
setSavedIfCount(int ifCount)
setSavedIfCount
|
void |
setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
|
String |
toString()
toString
|
void |
validateAgent()
validateAgent
|
getAttribute, getType, setAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribute, getType, setAttributepublic static SnmpCollectionAgent 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 InetAddress getAddress()
Returns the address information for the interface. If the interface then this should be either an InetAddress or an object for specialized address types.
getAddress in interface NetworkInterface<InetAddress>getAddress in class InetNetworkInterfaceObject object.public Boolean isStoreByForeignSource()
isStoreByForeignSource
isStoreByForeignSource in interface CollectionAgentBoolean object.public String getHostAddress()
getHostAddress
getHostAddress in interface CollectionAgentString object.public void setSavedIfCount(int ifCount)
setSavedIfCount
setSavedIfCount in interface SnmpCollectionAgentsetSavedIfCount in interface CollectionAgentifCount - a int.public int getSavedIfCount()
getSavedIfCount
getSavedIfCount in interface SnmpCollectionAgentpublic int getNodeId()
getNodeId
getNodeId in interface CollectionAgentpublic String getNodeLabel()
getNodeLabel
getNodeLabel in interface CollectionAgentString object.public String getForeignSource()
getForeignSource
getForeignSource in interface CollectionAgentString object.public String getForeignId()
getForeignId
getForeignId in interface CollectionAgentString object.public String getLocationName()
CollectionAgentgetLocationName
getLocationName in interface CollectionAgentString object.public File getStorageDir()
getStorageDir
getStorageDir in interface CollectionAgentFile object.public String getSysObjectId()
getSysObjectId
getSysObjectId in interface SnmpCollectionAgentgetSysObjectId in interface CollectionAgentString object.public void validateAgent()
throws CollectionInitializationException
validateAgent
validateAgent in interface SnmpCollectionAgentCollectionInitializationExceptionpublic String toString()
toString
toString in interface CollectionAgenttoString in class ObjectString object.public SnmpAgentConfig getAgentConfig()
SnmpCollectionAgentgetAgentConfig
getAgentConfig in interface SnmpCollectionAgentgetAgentConfig in interface StorageStrategyServiceSnmpAgentConfig object.public Set<IfInfo> getSnmpInterfaceInfo(IfResourceType type)
getSnmpInterfaceInfo
getSnmpInterfaceInfo in interface SnmpCollectionAgenttype - a IfResourceType object.Set object.public String getSnmpInterfaceLabel(int ifIndex)
getSnmpInterfaceLabel
getSnmpInterfaceLabel in interface StorageStrategyServiceifIndex - a int.String object.public long getSavedSysUpTime()
getSavedSysUpTime
getSavedSysUpTime in interface CollectionAgentpublic void setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
setSavedSysUpTime in interface CollectionAgentsysUpTime - a long.Copyright © 2020. All rights reserved.