|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--com.ls.lars.server.LarsShutdown
This utility can be used for shutting down a running lars platform from the
console.
The program awaits the following parameters:
here
ILogger.ERROR)
SystemLogger.setLogType(byte))
| Method Summary | |
boolean |
interpret(Message currentMessage)
This methods awaits either the ILarsConstants.SERVICE_SHUTDOWN_PLATFORM_IN_PROGRESS,
ILarsConstants.SERVICE_SHUTDOWN_PLATFORM_DECLINED or ILarsConstants.SERVICE_CLOSE_CONNECTION
in the message's service attribute.
|
static void |
main(String[] args)
Interprets the command line parameters and tries to create a LarsShutdown instance. |
int |
performShutdown()
Performs the shutdown operation. This method sends a ILarsConstants.SERVICE_SHUTDOWN_PLATFORM to
the AgentManager of the lars platform and blocks until the response message
arrives. |
Map |
preloadConfiguration(String filename)
Loads the configuration from the config file specified by filename and
returns the resulting Map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int performShutdown()
ILarsConstants.SERVICE_SHUTDOWN_PLATFORM to
the AgentManager of the lars platform and blocks until the response message
arrives. This response message will then be interpreted.public boolean interpret(Message currentMessage)
ILarsConstants.SERVICE_SHUTDOWN_PLATFORM_IN_PROGRESS,
ILarsConstants.SERVICE_SHUTDOWN_PLATFORM_DECLINED or ILarsConstants.SERVICE_CLOSE_CONNECTION
in the message's service attribute.
Any other service will result in an error message.interpret in interface IFromLarscurrentMessage - message to interpretpublic Map preloadConfiguration(String filename)
filename and
returns the resulting Map.filename - the config file's namepublic static void main(String[] args)
performShutdown() will be invoked.args - string array with the command line parameters
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||