public class ZNodePruner extends ZkScript
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEYWORD |
| Constructor and Description |
|---|
ZNodePruner() |
ZNodePruner(ZkQuickConnectionManager zkQuickConnectionManager) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getName() |
protected org.apache.commons.cli.Options |
getSpecificOptions() |
static void |
main(String[] args) |
void |
prunePersistent(String pathStr,
String keyword,
File saveTemplate) |
void |
prunePersistent(String pathStr,
String keyword,
InputStream in) |
void |
prunePersistent(String pathStr,
String keyword,
List<String> toKeep) |
protected void |
runScript(org.apache.commons.cli.CommandLine cmd)
Executes the script (assuming already connected to ZooKeeper)
|
void |
setVerbose(boolean verbose) |
protected boolean |
verifySpecificOptions(org.apache.commons.cli.CommandLine cmd)
Verifies the integrity of the script specific command line parameters
|
public static final String DEFAULT_KEYWORD
public ZNodePruner(ZkQuickConnectionManager zkQuickConnectionManager)
public ZNodePruner()
public void setVerbose(boolean verbose)
public void prunePersistent(String pathStr, String keyword, File saveTemplate) throws IOException, InterruptedException, org.apache.zookeeper.KeeperException
IOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic void prunePersistent(String pathStr, String keyword, InputStream in) throws IOException, InterruptedException, org.apache.zookeeper.KeeperException
IOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic void prunePersistent(String pathStr, String keyword, List<String> toKeep) throws InterruptedException, org.apache.zookeeper.KeeperException
InterruptedExceptionorg.apache.zookeeper.KeeperExceptionprotected String getName()
protected org.apache.commons.cli.Options getSpecificOptions()
getSpecificOptions in class ZkScriptprotected boolean verifySpecificOptions(org.apache.commons.cli.CommandLine cmd)
ZkScriptverifySpecificOptions in class ZkScriptprotected void runScript(org.apache.commons.cli.CommandLine cmd)
throws Exception
ZkScriptCopyright © 2012–2015 Facebook, Inc.. All rights reserved.