org.opennms.netmgt.collectd
Interface CollectionAgent

All Superinterfaces:
NetworkInterface<InetAddress>, StorageStrategyService
All Known Implementing Classes:
DefaultCollectionAgent

public interface CollectionAgent
extends NetworkInterface<InetAddress>, StorageStrategyService

CollectionAgent interface.

Version:
$Id: $
Author:
Mathew Brozowski

Field Summary
 
Fields inherited from interface org.opennms.netmgt.poller.NetworkInterface
TYPE_INET, TYPE_UNKNOWN
 
Method Summary
 SnmpAgentConfig getAgentConfig()
          getAgentConfig
 String getHostAddress()
          getHostAddress
 InetAddress getInetAddress()
          getInetAddress
 int getNodeId()
          getNodeId
 int getSavedIfCount()
          getSavedIfCount
 long getSavedSysUpTime()
          getSavedSysUpTime
 Set<IfInfo> getSnmpInterfaceInfo(IfResourceType type)
          getSnmpInterfaceInfo
 String getSysObjectId()
          getSysObjectId
 void setSavedIfCount(int ifCount)
          setSavedIfCount
 void setSavedSysUpTime(long sysUpTime)
          setSavedSysUpTime
 String toString()
          toString
 void validateAgent()
          validateAgent
 
Methods inherited from interface org.opennms.netmgt.poller.NetworkInterface
getAddress, getAttribute, getType, setAttribute
 
Methods inherited from interface org.opennms.netmgt.config.StorageStrategyService
getSnmpInterfaceLabel
 

Method Detail

getHostAddress

String getHostAddress()

getHostAddress

Returns:
a String object.

setSavedIfCount

void setSavedIfCount(int ifCount)

setSavedIfCount

Parameters:
ifCount - a int.

getSavedIfCount

int getSavedIfCount()

getSavedIfCount

Returns:
a int.

getNodeId

int getNodeId()

getNodeId

Returns:
a int.

getSysObjectId

String getSysObjectId()

getSysObjectId

Returns:
a String object.

validateAgent

void validateAgent()
                   throws CollectionInitializationException

validateAgent

Throws:
CollectionInitializationException

toString

String toString()

toString

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

getAgentConfig

SnmpAgentConfig getAgentConfig()

getAgentConfig

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

getSnmpInterfaceInfo

Set<IfInfo> getSnmpInterfaceInfo(IfResourceType type)

getSnmpInterfaceInfo

Parameters:
type - a IfResourceType object.
Returns:
a Set object.

getInetAddress

InetAddress getInetAddress()

getInetAddress

Returns:
a InetAddress object.

getSavedSysUpTime

long getSavedSysUpTime()

getSavedSysUpTime

Returns:
a long.

setSavedSysUpTime

void setSavedSysUpTime(long sysUpTime)

setSavedSysUpTime

Parameters:
sysUpTime - a long.


Copyright © 2011. All Rights Reserved.