public class LogExport extends Object
Modifier and Type | Field and Description |
---|---|
protected static Timestamp |
start |
protected static Timestamp |
stop |
Constructor and Description |
---|
LogExport() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
getParams(String[] args)
Parses command line arguments
|
protected static boolean |
initialize(String[] args)
Verifies command line arguments and initialize internals (mainly config)
|
static void |
main(String[] args)
Command Entry point
|
protected static String |
run()
Main logic for the command.
|
static boolean |
setDestinationWriter()
Creates and sets destinationWriter according to the following logic
based on the value of the '-out' command line argument:
- if no value is given, a default path is computed (the same as
online export, i.e. in [data directory]/[admin name])
- if the value '-' is given,
destinationWriter is the standard output (System.out)
- if any other value is given, then it is considered as the path to
the destination file
|
protected static boolean initialize(String[] args)
args
- command line argumentspublic static boolean setDestinationWriter()
protected static boolean getParams(String[] args)
args
- command line arguments to parseprotected static String run()
public static void main(String[] args)
args
- command line argumentsCopyright © 2009–2019 Waarp. All rights reserved.