Class AbstractCollectionAgentFactory<T extends CollectionAgent>

    • Constructor Detail

      • AbstractCollectionAgentFactory

        public AbstractCollectionAgentFactory()
    • 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 interface CollectionAgentFactory
        Parameters:
        nodeCriteria - node id or fs:fid
        ipAddr - ip address associated with the node
        location - null if the nodes existing location should be used
        Returns:
        the CollectionAgent
      • setNodeDao

        public void setNodeDao​(NodeDao nodeDao)
      • setIpInterfaceDao

        public void setIpInterfaceDao​(IpInterfaceDao ipInterfaceDao)
      • setPlatformTransactionManager

        public void setPlatformTransactionManager​(org.springframework.transaction.PlatformTransactionManager transMgr)