Class AbstractCollectionAgentFactory<T extends CollectionAgent>
- java.lang.Object
-
- org.opennms.netmgt.collection.core.AbstractCollectionAgentFactory<T>
-
- All Implemented Interfaces:
CollectionAgentFactory
- Direct Known Subclasses:
DefaultCollectionAgentFactory
,DefaultSnmpCollectionAgentFactory
public abstract class AbstractCollectionAgentFactory<T extends CollectionAgent> extends java.lang.Object implements CollectionAgentFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractCollectionAgentFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
createAgent(java.lang.Integer ipInterfaceId, IpInterfaceDao ipInterfaceDao, org.springframework.transaction.PlatformTransactionManager transMgr, java.lang.String location)
T
createCollectionAgent(java.lang.String nodeCriteria, java.net.InetAddress ipAddr)
T
createCollectionAgent(OnmsIpInterface ipInterface)
T
createCollectionAgentAndOverrideLocation(java.lang.String nodeCriteria, java.net.InetAddress ipAddr, java.lang.String location)
Create a collection agent for the given IP interface, and optionally override the node's location.void
setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
void
setNodeDao(NodeDao nodeDao)
void
setPlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager transMgr)
-
-
-
Method Detail
-
createAgent
protected abstract T createAgent(java.lang.Integer ipInterfaceId, IpInterfaceDao ipInterfaceDao, org.springframework.transaction.PlatformTransactionManager transMgr, java.lang.String location)
-
createCollectionAgentAndOverrideLocation
public T createCollectionAgentAndOverrideLocation(java.lang.String nodeCriteria, java.net.InetAddress ipAddr, java.lang.String location)
Description copied from interface:CollectionAgentFactory
Create a collection agent for the given IP interface, and optionally override the node's location. Overriding the node's location is strictly used for testing (i.e. via the opennms:collect) command in the Karaf console and is not used in normal operations.- Specified by:
createCollectionAgentAndOverrideLocation
in interfaceCollectionAgentFactory
- Parameters:
nodeCriteria
- node id or fs:fidipAddr
- ip address associated with the nodelocation
- null if the nodes existing location should be used- Returns:
- the
CollectionAgent
-
createCollectionAgent
public T createCollectionAgent(java.lang.String nodeCriteria, java.net.InetAddress ipAddr)
- Specified by:
createCollectionAgent
in interfaceCollectionAgentFactory
-
createCollectionAgent
public T createCollectionAgent(OnmsIpInterface ipInterface)
- Specified by:
createCollectionAgent
in interfaceCollectionAgentFactory
-
setNodeDao
public void setNodeDao(NodeDao nodeDao)
-
setIpInterfaceDao
public void setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
-
setPlatformTransactionManager
public void setPlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager transMgr)
-
-