|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.shibboleth.metadata.cli.SimpleCommandLine
public class SimpleCommandLine
A simple driver for the metadata aggregator.
This class takes two parameters, the first is the file path to the Spring configuration file. The second parameter is
the name of bean ID of the Pipeline to be executed. If the pipeline is not initialized by Spring it will be
initialized by this CLI.
All logging is done in accordance with the logback.xml file included in command line JAR file. If you wish to use a
different logging configuration you may do so using the -Dlogback.configurationFile=/path/to/logback.xml
JVM configuration option.
This CLI is not terribly robust nor does it really offer much in the way of features. It's mostly meant for testing
purposes and will be replaced before the 1.0 release of the software.
| Field Summary | |
|---|---|
private static Logger |
log
Class logger. |
static int |
RC_INIT
Return code indicating an initialization error, 1 . |
static int |
RC_IO
Return code indicating an error reading files, 2 . |
static int |
RC_OK
Return code indicating command completed successfully, 0 . |
static int |
RC_UNKNOWN
Return code indicating an unknown error occurred, -1 . |
| Constructor Summary | |
|---|---|
SimpleCommandLine()
|
|
| Method Summary | |
|---|---|
protected static void |
initLogging(SimpleCommandLineArguments cli)
Initialize the logging subsystem. |
static void |
main(String[] args)
Main method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RC_OK
public static final int RC_INIT
public static final int RC_IO
public static final int RC_UNKNOWN
private static Logger log
| Constructor Detail |
|---|
public SimpleCommandLine()
| Method Detail |
|---|
public static void main(String[] args)
args - command line argumentsprotected static void initLogging(SimpleCommandLineArguments cli)
cli - command line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||