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 interface
This object is used to report back changes in status. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This will be the second method invoked by the InstanceContainer.void
This will be the first method invoked by the InstanceContainer after an instance of this interface has been constructed.void
start()
Starts this instance.void
stop()
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.
-