org.opennms.netmgt.collectd
Class DefaultCollectionAgentService

java.lang.Object
  extended by org.opennms.netmgt.collectd.DefaultCollectionAgentService
All Implemented Interfaces:
CollectionAgentService

public class DefaultCollectionAgentService
extends Object
implements CollectionAgentService

Represents a remote SNMP agent on a specific IPv4 interface.

Version:
$Id: $
Author:
ranger

Method Summary
static CollectionAgentService create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
          create
 SnmpAgentConfig getAgentConfig()
          getAgentConfig
 String getHostAddress()
          getHostAddress
 int getIfIndex()
          getIfIndex
 InetAddress getInetAddress()
          getInetAddress
 OnmsIpInterface.PrimaryType getIsSnmpPrimary()
          getIsSnmpPrimary
 int getNodeId()
          getNodeId
 Set<SnmpIfData> getSnmpInterfaceData()
          getSnmpInterfaceData
 String getSysObjectId()
          getSysObjectId
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static CollectionAgentService create(Integer ifaceId,
                                            IpInterfaceDao ifaceDao,
                                            org.springframework.transaction.PlatformTransactionManager transMgr)

create

Parameters:
ifaceId - a Integer object.
ifaceDao - a IpInterfaceDao object.
transMgr - a PlatformTransactionManager object.
Returns:
a CollectionAgentService object.

getHostAddress

public String getHostAddress()

getHostAddress

Specified by:
getHostAddress in interface CollectionAgentService
Returns:
a String object.

getNodeId

public int getNodeId()

getNodeId

Specified by:
getNodeId in interface CollectionAgentService
Returns:
a int.

getIfIndex

public int getIfIndex()

getIfIndex

Specified by:
getIfIndex in interface CollectionAgentService
Returns:
a int.

getSysObjectId

public String getSysObjectId()

getSysObjectId

Specified by:
getSysObjectId in interface CollectionAgentService
Returns:
a String object.

getIsSnmpPrimary

public OnmsIpInterface.PrimaryType getIsSnmpPrimary()

getIsSnmpPrimary

Specified by:
getIsSnmpPrimary in interface CollectionAgentService
Returns:
a OnmsIpInterface.PrimaryType object.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

getAgentConfig

public SnmpAgentConfig getAgentConfig()

getAgentConfig

Specified by:
getAgentConfig in interface CollectionAgentService
Returns:
a SnmpAgentConfig object.

getSnmpInterfaceData

public Set<SnmpIfData> getSnmpInterfaceData()

getSnmpInterfaceData

Specified by:
getSnmpInterfaceData in interface CollectionAgentService
Returns:
a Set object.

getInetAddress

public InetAddress getInetAddress()

getInetAddress

Specified by:
getInetAddress in interface CollectionAgentService
Returns:
a InetAddress object.


Copyright © 2011. All Rights Reserved.