Class DefaultCollectionAgentService
- java.lang.Object
-
- org.opennms.netmgt.collection.core.DefaultCollectionAgentService
-
- All Implemented Interfaces:
CollectionAgentService
- Direct Known Subclasses:
DefaultSnmpCollectionAgentService
public class DefaultCollectionAgentService extends Object implements CollectionAgentService
Represents a remote SNMP agent on a specific IPv4 interface.- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultCollectionAgentService(Integer ifaceId, IpInterfaceDao ifaceDao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollectionAgentService
create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
createprotected static ResourcePath
createStorageResourcePath(CollectionAgent agent)
String
getForeignId()
getForeignIdString
getForeignSource()
getForeignSourceString
getHostAddress()
getHostAddressInetAddress
getInetAddress()
getInetAddressprotected OnmsIpInterface
getIpInterface()
String
getLocationName()
getLocationNameint
getNodeId()
getNodeIdString
getNodeLabel()
getNodeLabelResourcePath
getStorageResourcePath()
getStorageDirString
toString()
toString
-
-
-
Constructor Detail
-
DefaultCollectionAgentService
protected DefaultCollectionAgentService(Integer ifaceId, IpInterfaceDao ifaceDao)
-
-
Method Detail
-
create
public static CollectionAgentService create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
create
- Parameters:
ifaceId
- aInteger
object.ifaceDao
- aIpInterfaceDao
object.transMgr
- aPlatformTransactionManager
object.- Returns:
- a
CollectionAgentService
object.
-
getIpInterface
protected final OnmsIpInterface getIpInterface()
-
getHostAddress
public final String getHostAddress()
getHostAddress
- Specified by:
getHostAddress
in interfaceCollectionAgentService
- Returns:
- a
String
object.
-
getNodeId
public final int getNodeId()
getNodeId
- Specified by:
getNodeId
in interfaceCollectionAgentService
- Returns:
- a int.
-
getNodeLabel
public final String getNodeLabel()
getNodeLabel
- Specified by:
getNodeLabel
in interfaceCollectionAgentService
- Returns:
- a
String
object.
-
getForeignSource
public final String getForeignSource()
getForeignSource
- Specified by:
getForeignSource
in interfaceCollectionAgentService
- Returns:
- a
String
object.
-
getForeignId
public final String getForeignId()
getForeignId
- Specified by:
getForeignId
in interfaceCollectionAgentService
- Returns:
- a
String
object.
-
getLocationName
public final String getLocationName()
Description copied from interface:CollectionAgentService
getLocationName
- Specified by:
getLocationName
in interfaceCollectionAgentService
- Returns:
- a
String
object.
-
getStorageResourcePath
public final ResourcePath getStorageResourcePath()
getStorageDir
- Specified by:
getStorageResourcePath
in interfaceCollectionAgentService
- Returns:
- a
File
object.
-
toString
public String toString()
toString
-
getInetAddress
public final InetAddress getInetAddress()
getInetAddress
- Specified by:
getInetAddress
in interfaceCollectionAgentService
- Returns:
- a
InetAddress
object.
-
createStorageResourcePath
protected static ResourcePath createStorageResourcePath(CollectionAgent agent)
-
-