public class NodeExistsCommand extends BaseCommand<Boolean>
Command for MongoMicroKernel#nodeExists(String, String)nodeStore| Constructor and Description |
|---|
NodeExistsCommand(MongoNodeStore nodeStore,
String path,
Long revisionId)
Constructs a new
NodeExistsCommandMongo. |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
execute()
Executes the
Command and returns its result. |
MongoNode |
getNode()
After
NodeExistsCommand executed, this method can be used to access
the node with the path. |
void |
setBranchId(String branchId)
Sets the branchId for the command.
|
getNumOfRetries, needsRetry, needsRetrypublic NodeExistsCommand(MongoNodeStore nodeStore, String path, Long revisionId)
NodeExistsCommandMongo.nodeStore - Node store.path - The root path of the nodes to get.revisionId - The revision id or null.public void setBranchId(String branchId)
branchId - Branch id.public Boolean execute() throws Exception
CommandCommand and returns its result.Exception - If an error occurred while executing.public MongoNode getNode()
NodeExistsCommand executed, this method can be used to access
the node with the path.Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.