public abstract class AbstractCollectionAgentFactory<T extends CollectionAgent> extends Object implements CollectionAgentFactory
Constructor and Description |
---|
AbstractCollectionAgentFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createAgent(Integer ipInterfaceId,
IpInterfaceDao ipInterfaceDao,
org.springframework.transaction.PlatformTransactionManager transMgr,
String location) |
T |
createCollectionAgent(OnmsIpInterface ipInterface) |
T |
createCollectionAgent(String nodeCriteria,
InetAddress ipAddr) |
T |
createCollectionAgentAndOverrideLocation(String nodeCriteria,
InetAddress ipAddr,
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) |
protected abstract T createAgent(Integer ipInterfaceId, IpInterfaceDao ipInterfaceDao, org.springframework.transaction.PlatformTransactionManager transMgr, String location)
public T 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
public T createCollectionAgent(String nodeCriteria, InetAddress ipAddr)
createCollectionAgent
in interface CollectionAgentFactory
public T createCollectionAgent(OnmsIpInterface ipInterface)
createCollectionAgent
in interface CollectionAgentFactory
public void setNodeDao(NodeDao nodeDao)
public void setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
public void setPlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager transMgr)
Copyright © 2020. All rights reserved.