public class PruneDeletedFiles extends DBaseCmdLine
Modifier and Type | Class and Description |
---|---|
static class |
PruneDeletedFiles.MODE |
password, type, url, user
exitStatus, OPTION_DEBUG, OPTION_HELP, OPTION_HOME, OPTION_REMOTE_URL, PROPERTY_REMOTE_URL
Constructor and Description |
---|
PruneDeletedFiles() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraOptions(org.apache.commons.cli.Options options)
add extra command line options
|
void |
handleCommandLine(org.apache.commons.cli.CommandLine line)
handle the command line args
|
static void |
main(java.lang.String[] argv)
The main for the program
|
void |
process()
Scan for files to prune.
|
static int |
prune(VirtualDB layer,
PruneDeletedFiles.MODE mode)
Prune the raw underlying raw files for DBFiles that have been deleted.
|
static int |
prune(VirtualDB layer,
PruneDeletedFiles.MODE mode,
GlobalKey keyToDelete)
Prune the raw underlying raw files for DBFiles that have been deleted.
|
init
abort, abortShowHelp, execute, getExtraPars, handleArgs, setDefaults, setExitFlg
protected void addExtraOptions(org.apache.commons.cli.Options options)
addExtraOptions
in class DBaseCmdLine
options
- the optionspublic void handleCommandLine(@Nonnull org.apache.commons.cli.CommandLine line) throws java.lang.Exception
handleCommandLine
in class DBaseCmdLine
line
- the command linejava.lang.Exception
- a serious problempublic void process() throws java.lang.Exception
process
in class AppCmdLine
java.lang.Exception
- A Serious problempublic static int prune(VirtualDB layer, PruneDeletedFiles.MODE mode) throws java.lang.Exception
layer
- the layer to scanmode
- the mode for the scanjava.lang.Exception
- a serious problem.public static int prune(VirtualDB layer, PruneDeletedFiles.MODE mode, GlobalKey keyToDelete) throws java.lang.Exception
layer
- the layer to scanmode
- the mode for the scankeyToDelete
- the key to be deleted.java.lang.Exception
- a serious problem.public static void main(java.lang.String[] argv)
argv
- The command line argumentsstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.