Package org.apache.zookeeper.test.system
Interface Instance
- All Known Implementing Classes:
GenerateLoad.GeneratorInstance,SimpleClient
public interface Instance
This interface is implemented by a class that can be run in an
instance container.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThis object is used to report back changes in status. -
Method Summary
Modifier and TypeMethodDescriptionvoidThis will be the second method invoked by the InstanceContainer.voidThis will be the first method invoked by the InstanceContainer after an instance of this interface has been constructed.voidstart()Starts this instance.voidstop()Stops this instance.
-
Method Details
-
setReporter
This will be the first method invoked by the InstanceContainer after an instance of this interface has been constructed. It will only be invoked once.- Parameters:
r- a handle to use to report on status changes.
-
configure
This will be the second method invoked by the InstanceContainer. It may be invoked again if the configuration changes.- Parameters:
params- parameters that were passed to the InstanceManager when this instance was scheduled.
-
start
void start()Starts this instance. -
stop
void stop()Stops this instance.
-