Class CollectorComplianceTest
- java.lang.Object
-
- org.opennms.netmgt.collection.test.api.CollectorComplianceTest
-
public abstract class CollectorComplianceTest extends java.lang.Object
Used to verify that aServiceCollector
behaves correctly when used in different workflows i.e.: 1) Ad-hoc collection via the console 2) Collection from OpenNMS via Collectd 3) Collection from Minion via an RPC triggered by Collectd- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description CollectorComplianceTest(java.lang.Class<? extends ServiceCollector> collectorClass, boolean runsOnMinion)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
afterMinion()
void
beforeMinion()
void
canCollectUsingMinionWorkflow()
void
canCollectUsingOpenNMSWorkflow()
void
canInitializeManyTimes()
CollectionAgent
createAgent(java.lang.Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
abstract java.lang.String
getCollectionName()
java.util.Map<java.lang.String,java.lang.Object>
getRequiredBeans()
abstract java.util.Map<java.lang.String,java.lang.Object>
getRequiredParameters()
void
isAvailableInDefaultRegistry()
-
-
-
Constructor Detail
-
CollectorComplianceTest
public CollectorComplianceTest(java.lang.Class<? extends ServiceCollector> collectorClass, boolean runsOnMinion)
-
-
Method Detail
-
getCollectionName
public abstract java.lang.String getCollectionName()
-
getRequiredParameters
public abstract java.util.Map<java.lang.String,java.lang.Object> getRequiredParameters()
-
createAgent
public CollectionAgent createAgent(java.lang.Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
-
beforeMinion
public void beforeMinion()
-
afterMinion
public void afterMinion()
-
getRequiredBeans
public java.util.Map<java.lang.String,java.lang.Object> getRequiredBeans()
-
isAvailableInDefaultRegistry
public void isAvailableInDefaultRegistry()
-
canInitializeManyTimes
public void canInitializeManyTimes() throws CollectionInitializationException
-
canCollectUsingOpenNMSWorkflow
public void canCollectUsingOpenNMSWorkflow() throws CollectionInitializationException, CollectionException
-
canCollectUsingMinionWorkflow
public void canCollectUsingMinionWorkflow() throws CollectionInitializationException, CollectionException
-
-