Package de.hsh.graja.starter
Class CmdlineStarter
java.lang.Object
de.hsh.graja.starter.CmdlineStarter
Deprecated.
This class starts Graja in a separate JVM. It expects three parameters on the command line.
- The first is either "xml" or "json"
-
The second is the path to the xml/json file containing serialized data representing a
FrontendGrajaSingleRequestTO
or aFrontendGrajaMultiRequestTO
object. - The third parameter denotes a path to a result file
that will be written by Graja on completion. The result file will contain xml/json
serialized data representing
a
GrajaSingleResultTO
orGrajaMultiResultTO
object.
The exit code of this programm will be 0, if we could write a result file (which could contain error messages as well as success messages), otherwise it is 1.
Error messages will get localized by the default locale.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CmdlineStarter
public CmdlineStarter()Deprecated.
-
-
Method Details
-
main
Deprecated.The main method expects three parameters:- A format specification: xml or json
- The path to the request file
- The path to the generated result file
- Parameters:
args
- three arguments- Throws:
Exception
-