// public CoordinatorRegistryCenter setUpRegistryCenter(@Value("${elaticjob.zookeeper.server-lists}") final String serverList, @Value("${elaticjob.zookeeper.namespace}") final String namespace) {
// //zk的配置
// ZookeeperConfiguration zookeeperConfiguration = new ZookeeperConfiguration(serverList, namespace);
// private void pathInBackground(final String path, final byte[] data, final String givenPath) {
// final AtomicBoolean firstTime = new AtomicBoolean(true);
// OperationAndData<PathAndBytes> operationAndData = new OperationAndData<PathAndBytes>(this, new PathAndBytes(path, data), backgrounding.getCallback(),
// new OperationAndData.ErrorCallback<PathAndBytes>() {
// public void retriesExhausted(OperationAndData<PathAndBytes> operationAndData) {
// if (protectedMode.doProtected()) {
// // all retries have failed, findProtectedNodeInForeground(..) included, schedule a clean up
// new FindAndDeleteProtectedNodeInBackground(client, ZKPaths.getPathAndNode(path).getPath(), protectedMode.protectedId()).execute();
// // assign a new id if this builder is used again later