net.shibboleth.metadata.cli
Class SimpleCommandLine

java.lang.Object
  extended by net.shibboleth.metadata.cli.SimpleCommandLine

public class SimpleCommandLine
extends Object

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

RC_OK

public static final int RC_OK
Return code indicating command completed successfully, 0 .

See Also:
Constant Field Values

RC_INIT

public static final int RC_INIT
Return code indicating an initialization error, 1 .

See Also:
Constant Field Values

RC_IO

public static final int RC_IO
Return code indicating an error reading files, 2 .

See Also:
Constant Field Values

RC_UNKNOWN

public static final int RC_UNKNOWN
Return code indicating an unknown error occurred, -1 .

See Also:
Constant Field Values

log

private static Logger log
Class logger.

Constructor Detail

SimpleCommandLine

public SimpleCommandLine()
Method Detail

main

public static void main(String[] args)
Main method.

Parameters:
args - command line arguments

initLogging

protected static void initLogging(SimpleCommandLineArguments cli)
Initialize the logging subsystem.

Parameters:
cli - command line arguments


Copyright © 1999-2012. All Rights Reserved.