Class SimpleClient

java.lang.Object
org.apache.zookeeper.test.system.SimpleClient
All Implemented Interfaces:
AsyncCallback, AsyncCallback.DataCallback, AsyncCallback.StatCallback, AsyncCallback.StringCallback, Instance, Watcher

The client that gets spawned for the SimpleSysTest
  • Constructor Details

    • SimpleClient

      public SimpleClient()
  • Method Details

    • configure

      public void configure(String params)
      Description copied from interface: Instance
      This will be the second method invoked by the InstanceContainer. It may be invoked again if the configuration changes.
      Specified by:
      configure in interface Instance
      Parameters:
      params - parameters that were passed to the InstanceManager when this instance was scheduled.
    • start

      public void start()
      Description copied from interface: Instance
      Starts this instance.
      Specified by:
      start in interface Instance
    • stop

      public void stop()
      Description copied from interface: Instance
      Stops this instance.
      Specified by:
      stop in interface Instance
    • process

      public void process(WatchedEvent event)
      Specified by:
      process in interface Watcher
    • processResult

      public void processResult(int rc, String path, Object ctx, byte[] data, org.apache.zookeeper.data.Stat stat)
      Specified by:
      processResult in interface AsyncCallback.DataCallback
    • processResult

      public void processResult(int rc, String path, Object ctx, String name)
      Specified by:
      processResult in interface AsyncCallback.StringCallback
    • processResult

      public void processResult(int rc, String path, Object ctx, org.apache.zookeeper.data.Stat stat)
      Specified by:
      processResult in interface AsyncCallback.StatCallback
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setReporter

      public void setReporter(Instance.Reporter r)
      Description copied from interface: Instance
      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.
      Specified by:
      setReporter in interface Instance
      Parameters:
      r - a handle to use to report on status changes.