public class CommandLineValues
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandLineValues.Compression |
static class |
CommandLineValues.FileNameDate |
static class |
CommandLineValues.ProcessingMode |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CMD_PAR_CLEANUP_COUNT |
static java.lang.String |
CMD_PAR_CLEANUP_DAYS |
static java.lang.String |
CMD_PAR_COMPRESSION |
static java.lang.String |
CMD_PAR_FILENAME_DATE |
static java.lang.String |
CMD_PAR_HELP |
static java.lang.String |
CMD_PAR_PROCESSING_MODE |
static java.lang.String |
CMD_PAR_SCAN_INTERVAL |
static java.lang.String |
CMD_PAR_SOURCE_DIRECTORY |
static java.lang.String |
CMD_PAR_SOURCE_FILE_NAME |
static java.lang.String |
CMD_PAR_STDERR |
static java.lang.String |
CMD_PAR_STDOUT |
static java.lang.String |
CMD_PAR_TARGET_DIRECTORY |
static java.lang.String |
CMD_PAR_TARGET_FILE_NAME |
Constructor and Description |
---|
CommandLineValues() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkHelpParameterPassed()
Check if -Help is passed as parameter.
|
int |
getCleanupCounts()
Returns the number files to cleanup files in target directory
|
int |
getCleanupDays()
Returns the number of days to cleanup files in target directory
|
CommandLineValues.Compression |
getCompression()
Returns the compression mode.
|
CommandLineValues.FileNameDate |
getDateSource()
Returns the source for the date time for target filename mode.
|
CommandLineValues.ProcessingMode |
getProcessingMode()
Returns the processing mode.
|
int |
getScanInterval()
Returns the number of seconds for scan interval
|
java.lang.String |
getSourceDirectory()
Returns the SourceDirectory parameter, otherwise the current directory
|
java.lang.String |
getSourceFileName()
Returns the SourceFileName parameter, otherwise '*.bak'
|
java.lang.String |
getTargetDirectory()
Returns the TargetDirectory parameter, otherwise the current directory
|
java.lang.String |
getTargetFileName()
Returns the TargetFileName parameter.
|
void |
parseCommandLine(java.lang.String[] commandLineParameter)
Parsed the given command line parameter array
|
public static final java.lang.String CMD_PAR_HELP
public static final java.lang.String CMD_PAR_STDERR
public static final java.lang.String CMD_PAR_STDOUT
public static final java.lang.String CMD_PAR_SOURCE_FILE_NAME
public static final java.lang.String CMD_PAR_TARGET_FILE_NAME
public static final java.lang.String CMD_PAR_SOURCE_DIRECTORY
public static final java.lang.String CMD_PAR_TARGET_DIRECTORY
public static final java.lang.String CMD_PAR_PROCESSING_MODE
public static final java.lang.String CMD_PAR_COMPRESSION
public static final java.lang.String CMD_PAR_FILENAME_DATE
public static final java.lang.String CMD_PAR_CLEANUP_DAYS
public static final java.lang.String CMD_PAR_CLEANUP_COUNT
public static final java.lang.String CMD_PAR_SCAN_INTERVAL
public void parseCommandLine(java.lang.String[] commandLineParameter) throws LogarchiverException
LogarchiverException
public boolean checkHelpParameterPassed()
public java.lang.String getSourceDirectory()
public java.lang.String getTargetDirectory()
public java.lang.String getSourceFileName()
public java.lang.String getTargetFileName() throws LogarchiverException
LogarchiverException
public CommandLineValues.ProcessingMode getProcessingMode() throws LogarchiverException
LogarchiverException
public CommandLineValues.Compression getCompression() throws LogarchiverException
LogarchiverException
public CommandLineValues.FileNameDate getDateSource() throws LogarchiverException
LogarchiverException
public int getCleanupDays() throws LogarchiverException
LogarchiverException
public int getCleanupCounts() throws LogarchiverException
LogarchiverException
public int getScanInterval() throws LogarchiverException
LogarchiverException