Package org.I0Itec.zkclient

Examples of org.I0Itec.zkclient.ZkClient.create()


                logger.error("Cannot deploy app [{}], because app [{}] is already deployed", deployArgs.appName,
                        readData.getSimpleField("name"));
                System.exit(1);
            }

            zkClient.create("/s4/clusters/" + deployArgs.clusterName + "/app/s4App", record, CreateMode.PERSISTENT);
            logger.info(
                    "uploaded application [{}] to cluster [{}], using zookeeper znode [{}], and s4r file [{}]",
                    new String[] { deployArgs.appName, deployArgs.clusterName,
                            "/s4/clusters/" + deployArgs.clusterName + "/app/" + deployArgs.appName,
                            s4rToDeploy.getAbsolutePath() });
View Full Code Here


                new String[] { String.valueOf(event.get("tick", Long.class)), String.valueOf(event.getTime()),
                        String.valueOf(eventCount) });
        if (eventCount == 100000) {
            logger.info("Just reached 100000 events");
            ZkClient zkClient = new ZkClient("localhost:2181");
            zkClient.create("/AllTicksReceived", new byte[0], CreateMode.PERSISTENT);
        }

    }

    @Override
View Full Code Here

    // server.start();
    client.waitUntilConnected();

    Thread.sleep(1000);
    client.setZkSerializer(new BytesPushThroughSerializer());
    client.create("/test", new byte[0], CreateMode.EPHEMERAL);
    Thread.sleep(1000);
  }

  public static void main(String[] args) throws Exception
  {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.