org.apache.camel.component.zookeeper.operations
Class CreateOperation

java.lang.Object
  extended by org.apache.camel.component.zookeeper.operations.ZooKeeperOperation<String>
      extended by org.apache.camel.component.zookeeper.operations.CreateOperation

public class CreateOperation
extends ZooKeeperOperation<String>

CreateOperation is a basic Zookeeper operation used to create and set the data contained in a given node


Field Summary
 
Fields inherited from class org.apache.camel.component.zookeeper.operations.ZooKeeperOperation
connection, CONSTRUCTOR_ARGS, LOG, node, result, waitingThreads
 
Constructor Summary
CreateOperation(org.apache.zookeeper.ZooKeeper connection, String node)
           
 
Method Summary
 OperationResult<String> getResult()
          Gets the result of this zookeeper operation, i.e.
 void setCreateMode(org.apache.zookeeper.CreateMode createMode)
           
 void setData(byte[] data)
           
 void setPermissions(List<org.apache.zookeeper.data.ACL> permissions)
           
 
Methods inherited from class org.apache.camel.component.zookeeper.operations.ZooKeeperOperation
cancel, createCopy, get, get, getNode, isCancelled, isDone, shouldProduceExchange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateOperation

public CreateOperation(org.apache.zookeeper.ZooKeeper connection,
                       String node)
Method Detail

getResult

public OperationResult<String> getResult()
Description copied from class: ZooKeeperOperation
Gets the result of this zookeeper operation, i.e. some data and the associated node stats

Specified by:
getResult in class ZooKeeperOperation<String>

setData

public void setData(byte[] data)

setPermissions

public void setPermissions(List<org.apache.zookeeper.data.ACL> permissions)

setCreateMode

public void setCreateMode(org.apache.zookeeper.CreateMode createMode)


Apache Camel