Class IngestExternalMain
- java.lang.Object
-
- fr.gouv.vitam.ingest.external.rest.IngestExternalMain
-
public class IngestExternalMain extends java.lang.Object
Ingest External web application
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAMETER_JETTY_SERVER_PORT
-
Constructor Summary
Constructors Constructor Description IngestExternalMain(java.lang.String configurationFile)
Ingest External Main constructorIngestExternalMain(java.lang.String configurationFile, java.lang.Class<? extends javax.ws.rs.core.Application> testBusinessApplication, java.lang.Class<? extends javax.ws.rs.core.Application> testAdminApplication)
This constructor is used for test
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VitamStarter
getVitamStarter()
Get the Vitam Starterstatic void
main(java.lang.String[] args)
Main method to run the application (doing start and join)void
start()
Start applicationvoid
startAndJoin()
Start and join applicationvoid
stop()
Stop application
-
-
-
Field Detail
-
PARAMETER_JETTY_SERVER_PORT
public static final java.lang.String PARAMETER_JETTY_SERVER_PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IngestExternalMain
public IngestExternalMain(java.lang.String configurationFile)
Ingest External Main constructor- Parameters:
configurationFile
-
-
IngestExternalMain
public IngestExternalMain(java.lang.String configurationFile, java.lang.Class<? extends javax.ws.rs.core.Application> testBusinessApplication, java.lang.Class<? extends javax.ws.rs.core.Application> testAdminApplication)
This constructor is used for test- Parameters:
configurationFile
-testBusinessApplication
- Custom BusinessApplicationtestAdminApplication
- Custom AdminApplication
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Main method to run the application (doing start and join)- Parameters:
args
-
-
start
public void start() throws VitamApplicationServerException
Start application- Throws:
VitamApplicationServerException
-
startAndJoin
public void startAndJoin() throws VitamApplicationServerException
Start and join application- Throws:
VitamApplicationServerException
-
stop
public void stop() throws VitamApplicationServerException
Stop application- Throws:
VitamApplicationServerException
-
getVitamStarter
public VitamStarter getVitamStarter()
Get the Vitam Starter- Returns:
-
-