public class DefaultCollectionAgent extends InetNetworkInterface implements SnmpCollectionAgent
m_address
TYPE_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
|
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, setAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getType, setAttribute
public 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 InetNetworkInterface
Object
object.public Boolean isStoreByForeignSource()
isStoreByForeignSource
isStoreByForeignSource
in interface CollectionAgent
Boolean
object.public String getHostAddress()
getHostAddress
getHostAddress
in interface CollectionAgent
String
object.public void setSavedIfCount(int ifCount)
setSavedIfCount
setSavedIfCount
in interface SnmpCollectionAgent
setSavedIfCount
in interface CollectionAgent
ifCount
- a int.public int getSavedIfCount()
getSavedIfCount
getSavedIfCount
in interface SnmpCollectionAgent
public int getNodeId()
getNodeId
getNodeId
in interface CollectionAgent
public String getNodeLabel()
getNodeLabel
getNodeLabel
in interface CollectionAgent
String
object.public String getForeignSource()
getForeignSource
getForeignSource
in interface CollectionAgent
String
object.public String getForeignId()
getForeignId
getForeignId
in interface CollectionAgent
String
object.public File getStorageDir()
getStorageDir
getStorageDir
in interface CollectionAgent
File
object.public String getSysObjectId()
getSysObjectId
getSysObjectId
in interface SnmpCollectionAgent
getSysObjectId
in interface CollectionAgent
String
object.public void validateAgent() throws CollectionInitializationException
validateAgent
validateAgent
in interface SnmpCollectionAgent
CollectionInitializationException
public String toString()
toString
toString
in interface CollectionAgent
toString
in class Object
String
object.public SnmpAgentConfig getAgentConfig()
getAgentConfig
getAgentConfig
in interface SnmpCollectionAgent
getAgentConfig
in interface StorageStrategyService
SnmpAgentConfig
object.public Set<IfInfo> getSnmpInterfaceInfo(IfResourceType type)
getSnmpInterfaceInfo
getSnmpInterfaceInfo
in interface SnmpCollectionAgent
type
- a IfResourceType
object.Set
object.public String getSnmpInterfaceLabel(int ifIndex)
getSnmpInterfaceLabel
getSnmpInterfaceLabel
in interface StorageStrategyService
ifIndex
- a int.String
object.public long getSavedSysUpTime()
getSavedSysUpTime
getSavedSysUpTime
in interface CollectionAgent
public void setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
setSavedSysUpTime
in interface CollectionAgent
sysUpTime
- a long.Copyright © 2017. All rights reserved.