Class OsgiCollectionAgentFactory
- java.lang.Object
-
- org.opennms.netmgt.collection.core.OsgiCollectionAgentFactory
-
- All Implemented Interfaces:
CollectionAgentFactory
public class OsgiCollectionAgentFactory extends Object implements CollectionAgentFactory
-
-
Constructor Summary
Constructors Constructor Description OsgiCollectionAgentFactory(NodeDao nodeDao, IpInterfaceDao ipInterfaceDao, org.springframework.transaction.support.TransactionOperations transactionOperations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionAgent
createCollectionAgent(String nodeCriteria, InetAddress ipAddr)
CollectionAgent
createCollectionAgent(OnmsIpInterface ipIf)
CollectionAgent
createCollectionAgentAndOverrideLocation(String nodeCriteria, InetAddress ipAddr, String location)
Create a collection agent for the given IP interface, and optionally override the node's location.
-
-
-
Constructor Detail
-
OsgiCollectionAgentFactory
public OsgiCollectionAgentFactory(NodeDao nodeDao, IpInterfaceDao ipInterfaceDao, org.springframework.transaction.support.TransactionOperations transactionOperations)
-
-
Method Detail
-
createCollectionAgent
public CollectionAgent createCollectionAgent(OnmsIpInterface ipIf)
- Specified by:
createCollectionAgent
in interfaceCollectionAgentFactory
-
createCollectionAgent
public CollectionAgent createCollectionAgent(String nodeCriteria, InetAddress ipAddr)
- Specified by:
createCollectionAgent
in interfaceCollectionAgentFactory
-
createCollectionAgentAndOverrideLocation
public CollectionAgent createCollectionAgentAndOverrideLocation(String nodeCriteria, InetAddress ipAddr, 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
-
-