Package org.apache.zookeeper.test.system
Class SimpleClient
java.lang.Object
org.apache.zookeeper.test.system.SimpleClient
- All Implemented Interfaces:
AsyncCallback,AsyncCallback.DataCallback,AsyncCallback.StatCallback,AsyncCallback.StringCallback,Instance,Watcher
public class SimpleClient
extends Object
implements Instance, Watcher, AsyncCallback.DataCallback, AsyncCallback.StringCallback, AsyncCallback.StatCallback
The client that gets spawned for the SimpleSysTest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.zookeeper.AsyncCallback
AsyncCallback.ACLCallback, AsyncCallback.AllChildrenNumberCallback, AsyncCallback.Children2Callback, AsyncCallback.ChildrenCallback, AsyncCallback.Create2Callback, AsyncCallback.DataCallback, AsyncCallback.EphemeralsCallback, AsyncCallback.MultiCallback, AsyncCallback.StatCallback, AsyncCallback.StringCallback, AsyncCallback.VoidCallbackNested classes/interfaces inherited from interface org.apache.zookeeper.test.system.Instance
Instance.ReporterNested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
Watcher.Event, Watcher.WatcherType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis will be the second method invoked by the InstanceContainer.voidprocess(WatchedEvent event) voidprocessResult(int rc, String path, Object ctx, byte[] data, org.apache.zookeeper.data.Stat stat) voidprocessResult(int rc, String path, Object ctx, String name) voidprocessResult(int rc, String path, Object ctx, org.apache.zookeeper.data.Stat stat) 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.toString()
-
Constructor Details
-
SimpleClient
public SimpleClient()
-
-
Method Details
-
configure
Description copied from interface:InstanceThis will be the second method invoked by the InstanceContainer. It may be invoked again if the configuration changes. -
start
public void start()Description copied from interface:InstanceStarts this instance. -
stop
public void stop()Description copied from interface:InstanceStops this instance. -
process
-
processResult
public void processResult(int rc, String path, Object ctx, byte[] data, org.apache.zookeeper.data.Stat stat) - Specified by:
processResultin interfaceAsyncCallback.DataCallback
-
processResult
- Specified by:
processResultin interfaceAsyncCallback.StringCallback
-
processResult
- Specified by:
processResultin interfaceAsyncCallback.StatCallback
-
toString
-
setReporter
Description copied from interface:InstanceThis will be the first method invoked by the InstanceContainer after an instance of this interface has been constructed. It will only be invoked once.- Specified by:
setReporterin interfaceInstance- Parameters:
r- a handle to use to report on status changes.
-