public interface VitamServer extends VitamServerInterface
| Modifier and Type | Field and Description |
|---|---|
static String |
CAN_CONFIGURE_SERVER
Default message
|
static String |
CONFIG_FILE_IS_A_MANDATORY_ARGUMENT
Default message
|
static String |
CONFIGURATION_IS_A_MANDATORY_ARGUMENT
Default message
|
static String |
SERVER_CAN_NOT_START
Default message
|
static String |
SERVER_START_WITH_JETTY_CONFIG
Default message
|
ADMIN_CONNECTOR_NAME, BUSINESS_CONNECTOR_NAME| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.eclipse.jetty.server.Handler applicationHandler)
Configure the server with one handler
|
org.eclipse.jetty.server.Handler |
getHandler() |
org.eclipse.jetty.server.Server |
getServer()
retrieve the jettyServer
|
org.eclipse.jetty.xml.XmlConfiguration |
getServerConfiguration()
get the configuration of jetty
|
boolean |
isConfigured() |
boolean |
isStarted()
check if vitam server is started
|
boolean |
isStopped()
check if vitam server is stopped
|
void |
setHandler(org.eclipse.jetty.server.Handler handler)
set jetty handler
|
void |
start()
start the jetty server without join (Junit only)
|
void |
startAndJoin()
Start the server with implicit Join
|
void |
stop()
stop the jetty server
|
getAdminPort, getPortstatic final String SERVER_CAN_NOT_START
static final String CONFIG_FILE_IS_A_MANDATORY_ARGUMENT
static final String CONFIGURATION_IS_A_MANDATORY_ARGUMENT
static final String CAN_CONFIGURE_SERVER
static final String SERVER_START_WITH_JETTY_CONFIG
void configure(org.eclipse.jetty.server.Handler applicationHandler)
throws VitamApplicationServerException
applicationHandler - VitamApplicationServerExceptionvoid startAndJoin()
throws VitamApplicationServerException
VitamApplicationServerExceptionboolean isConfigured()
org.eclipse.jetty.server.Handler getHandler()
org.eclipse.jetty.server.Server getServer()
org.eclipse.jetty.xml.XmlConfiguration getServerConfiguration()
boolean isStarted()
boolean isStopped()
void stop() throws VitamApplicationServerException
VitamApplicationServerExceptionvoid start()
throws VitamApplicationServerException
VitamApplicationServerExceptionvoid setHandler(org.eclipse.jetty.server.Handler handler)
handler - the handler to setCopyright © 2018 Vitam. All rights reserved.