private void createBaseNode() throws KeeperException, InterruptedException {
  if (null == zk.exists(zooKeeperLocation,true)) {
    zk.create(zooKeeperLocation,new byte[1],Ids.OPEN_ACL_UNSAFE,CreateMode.PERSISTENT);
  }
}

private void createBaseNode ( ) throws KeeperException , InterruptedException { if ( null == zk . exists ( zooKeeperLocation , true ) ) { zk . create ( zooKeeperLocation , new byte [ 1 ] , Ids . OPEN_ACL_UNSAFE , CreateMode . PERSISTENT ) ; } }
creating a znode in which all the znodes ( lock files ) are maintained .
