narendly commented on a change in pull request #1429: URL: https://github.com/apache/helix/pull/1429#discussion_r498984070
########## File path: zookeeper-api/src/main/java/org/apache/helix/zookeeper/api/client/MultiOp.java ########## @@ -0,0 +1,144 @@ +package org.apache.helix.zookeeper.api.client; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import java.util.List; + +import org.apache.helix.zookeeper.zkclient.serialize.PathBasedZkSerializer; +import org.apache.zookeeper.CreateMode; +import org.apache.zookeeper.Op; +import org.apache.zookeeper.ZooDefs; +import org.apache.zookeeper.data.ACL; + + +/** + * A wrapper class of org.apache.zookeeper.Op to support Helix interfaces and monitoring + * functionality. + */ +public abstract class MultiOp { + private final String _path; + + private MultiOp(String path) { + _path = path; + } + + /** + * @return the target path of the operation. + */ + public String getPath() { + return _path; + } + + /** + * Build a new org.apache.zookeeper.Op object for Zookeeper.multi call. + * @param serializer + * @return org.apache.zookeeper.Op object corresponding to the MultiOp object. + */ + public abstract Op buildZkOp(PathBasedZkSerializer serializer); Review comment: Will ZkSerializer be supported? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
