Package fr.gouv.vitam.worker.server.rest
Class WorkerMain
- java.lang.Object
-
- fr.gouv.vitam.worker.server.rest.WorkerMain
-
public class WorkerMain extends java.lang.ObjectWorker web server application
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAMETER_JETTY_SERVER_PORT
-
Constructor Summary
Constructors Constructor Description WorkerMain(java.lang.String configurationFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VitamStartergetVitamStarter()Get the Vitam Starterstatic voidmain(java.lang.String[] args)Main method to run the application (doing start and join)voidstart()Start applicationvoidstartAndJoin()Start and join applicationvoidstop()Stop application
-
-
-
Field Detail
-
PARAMETER_JETTY_SERVER_PORT
public static final java.lang.String PARAMETER_JETTY_SERVER_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Main method to run the application (doing start and join)- Parameters:
args- command line parameters- Throws:
java.lang.IllegalStateException- if the Vitam server cannot be launched
-
start
public void start() throws VitamApplicationServerExceptionStart application- Throws:
VitamApplicationServerException
-
startAndJoin
public void startAndJoin() throws VitamApplicationServerExceptionStart and join application- Throws:
VitamApplicationServerException
-
stop
public void stop() throws VitamApplicationServerExceptionStop application- Throws:
VitamApplicationServerException
-
getVitamStarter
public VitamStarter getVitamStarter()
Get the Vitam Starter- Returns:
-
-