public boolean isConnected(){
  return keeper != null && keeper.getState() == ZooKeeper.States.CONNECTED;
}

public boolean isConnected ( ) { return keeper != null && keeper . getState ( ) == ZooKeeper . States . CONNECTED ; }
returns true if client is connected
