public class ClerezzaApp extends Object
Constructor and Description |
---|
ClerezzaApp() |
Modifier and Type | Method and Description |
---|---|
void |
addShutdownListener(ShutdownListener shutdownListener)
Add a shutdown listener.
|
int |
getExitCode()
Get Clerezza Instance system exit code.
|
void |
removeShutdownListener(ShutdownListener shutdownListener)
Remove a shutdown Listener.
|
void |
setExitCode(int code)
Set Clerezza Instance system exit code.
|
static void |
showUsage()
Prints usage instructions to stdout
|
void |
start(String... args)
Start this Clerezza Instance.
|
void |
stop()
Stop this Clerezza instance.
|
void |
waitForStop()
Wait for this Clerezza instance to shut down.
|
public void setExitCode(int code)
code
- the code to set.public int getExitCode()
public void addShutdownListener(ShutdownListener shutdownListener)
shutdownListener
- the shutdown listener.public void removeShutdownListener(ShutdownListener shutdownListener)
shutdownListener
- the shutdown listener.public void start(String... args) throws Throwable
args
- Command line arguments.Throwable
public void stop() throws Throwable
Throwable
public void waitForStop() throws Throwable
Throwable
public static void showUsage()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.