|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.core.ApplicationBase
org.marketcetera.ors.security.ORSAdminCLI
public class ORSAdminCLI
The CLI to manage users and password on ORS.
Invoke parseAndRun(String[]) to run a CLI command. This method
can be invoked multiple times to invoke several commands.
The CLI instance can eventually be destroyed by invoking close()
| Field Summary |
|---|
| Fields inherited from class org.marketcetera.core.ApplicationBase |
|---|
APP_DIR, APP_DIR_PROP, CONF_DIR, fixDD, fixVersion, LOGGER_CONF_FILE, LOGGER_WATCH_DELAY, msgFactory, PASSWORD_BEAN_NAME, USERNAME_BEAN_NAME |
| Constructor Summary | |
|---|---|
ORSAdminCLI(PrintStream out,
PrintStream err)
Creates an instance |
|
| Method Summary | |
|---|---|
void |
close()
Closes the application. |
protected String[] |
getConfigurations()
Returns a list of spring configurations that should be used to configure the CLI |
static void |
main(String[] args)
|
void |
parseAndRun(String... args)
Parses and runs the supplied command. |
protected char[] |
readPasswordFromConsole(String message)
Reads the password from the console if one is available. |
| Methods inherited from class org.marketcetera.core.ApplicationBase |
|---|
createApplicationContext, createApplicationContext, getAppCtx, getApproximateTime, getFIXVersion, getTime, isWaitingForever, startWaitingForever |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ORSAdminCLI(PrintStream out,
PrintStream err)
out - The output stream to write output toerr - The error stream to write error output to| Method Detail |
|---|
public static void main(String[] args)
public void close()
public void parseAndRun(String... args)
throws Exception
args - the arguments per the usage of the CLI
Exception - if there were errors running the commandprotected String[] getConfigurations()
protected char[] readPasswordFromConsole(String message)
message - the password prompt to display to the user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||