public class OsgiCollectionAgentFactory extends Object implements CollectionAgentFactory
Constructor and Description |
---|
OsgiCollectionAgentFactory(NodeDao nodeDao,
IpInterfaceDao ipInterfaceDao,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
Modifier and Type | Method and Description |
---|---|
CollectionAgent |
createCollectionAgent(OnmsIpInterface ipIf) |
CollectionAgent |
createCollectionAgent(String nodeCriteria,
InetAddress ipAddr) |
CollectionAgent |
createCollectionAgentAndOverrideLocation(String nodeCriteria,
InetAddress ipAddr,
String location)
Create a collection agent for the given IP interface, and
optionally override the node's location.
|
public OsgiCollectionAgentFactory(NodeDao nodeDao, IpInterfaceDao ipInterfaceDao, org.springframework.transaction.support.TransactionOperations transactionOperations)
public CollectionAgent createCollectionAgent(OnmsIpInterface ipIf)
createCollectionAgent
in interface CollectionAgentFactory
public CollectionAgent createCollectionAgent(String nodeCriteria, InetAddress ipAddr)
createCollectionAgent
in interface CollectionAgentFactory
public CollectionAgent createCollectionAgentAndOverrideLocation(String nodeCriteria, InetAddress ipAddr, String location)
CollectionAgentFactory
createCollectionAgentAndOverrideLocation
in interface CollectionAgentFactory
nodeCriteria
- node id or fs:fidipAddr
- ip address associated with the nodelocation
- null if the nodes existing location should be usedCollectionAgent
Copyright © 2020. All rights reserved.