Class DefaultCollectionAgentService
- java.lang.Object
-
- org.opennms.netmgt.collection.core.DefaultCollectionAgentService
-
- All Implemented Interfaces:
CollectionAgentService
- Direct Known Subclasses:
DefaultSnmpCollectionAgentService
public class DefaultCollectionAgentService extends java.lang.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(java.lang.Integer ifaceId, IpInterfaceDao ifaceDao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollectionAgentService
create(java.lang.Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
createprotected static ResourcePath
createStorageResourcePath(CollectionAgent agent)
java.lang.String
getForeignId()
getForeignIdjava.lang.String
getForeignSource()
getForeignSourcejava.lang.String
getHostAddress()
getHostAddressjava.net.InetAddress
getInetAddress()
getInetAddressprotected OnmsIpInterface
getIpInterface()
java.lang.String
getLocationName()
getLocationNameint
getNodeId()
getNodeIdjava.lang.String
getNodeLabel()
getNodeLabelResourcePath
getStorageResourcePath()
getStorageDirjava.lang.String
toString()
toString
-
-
-
Constructor Detail
-
DefaultCollectionAgentService
protected DefaultCollectionAgentService(java.lang.Integer ifaceId, IpInterfaceDao ifaceDao)
-
-
Method Detail
-
create
public static CollectionAgentService create(java.lang.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 java.lang.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 java.lang.String getNodeLabel()
getNodeLabel
- Specified by:
getNodeLabel
in interfaceCollectionAgentService
- Returns:
- a
String
object.
-
getForeignSource
public final java.lang.String getForeignSource()
getForeignSource
- Specified by:
getForeignSource
in interfaceCollectionAgentService
- Returns:
- a
String
object.
-
getForeignId
public final java.lang.String getForeignId()
getForeignId
- Specified by:
getForeignId
in interfaceCollectionAgentService
- Returns:
- a
String
object.
-
getLocationName
public final java.lang.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 java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
getInetAddress
public final java.net.InetAddress getInetAddress()
getInetAddress
- Specified by:
getInetAddress
in interfaceCollectionAgentService
- Returns:
- a
InetAddress
object.
-
createStorageResourcePath
protected static ResourcePath createStorageResourcePath(CollectionAgent agent)
-
-