Class AbstractMonitoringReceiverTest
java.lang.Object
test.de.iip_ecosphere.platform.monitoring.AbstractMonitoringReceiverTest
- Direct Known Subclasses:
MonitoringReceiverTest
Tests a
MonitoringReceiver with a simple mocked reusable example scenario.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceEncapsulates the monitoring receiver. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract de.iip_ecosphere.platform.support.ServercreateBroker(de.iip_ecosphere.platform.support.ServerAddress broker) Creates the broker instance.protected intThe sleep time inrunScenario(MonitoringRecieverLifecycle).protected voidRuns a platform-like monitoring scenario with an ECS-runtime and a service manager on the same device.
-
Constructor Details
-
AbstractMonitoringReceiverTest
public AbstractMonitoringReceiverTest()
-
-
Method Details
-
createBroker
protected abstract de.iip_ecosphere.platform.support.Server createBroker(de.iip_ecosphere.platform.support.ServerAddress broker) Creates the broker instance.- Parameters:
broker- the broker address- Returns:
- the instance
-
runScenario
Runs a platform-like monitoring scenario with an ECS-runtime and a service manager on the same device.- Parameters:
mrl- the lifecycle.
-
getSleepTime
protected int getSleepTime()The sleep time inrunScenario(MonitoringRecieverLifecycle).- Returns:
- the sleep time in ms
-