@Path(value="/server")
@Produces(value={"text/xml","application/xml"})
public interface ServerService
Modifier and Type | Method and Description |
---|---|
void |
gc()
Runs the garbage collector on the repository.
|
ServerInfo |
getInfo()
Returns information about the configuration of the sever.
|
ServerState |
getState()
Return information about current server state (is it RUNNING or in MAINTENANCE mode).
|
void |
licenseReload()
Reload and validate the license file from disk.
|
void |
logout()
Logs out the current user.
|
void |
shutdown()
Stops the server process in a graceful manner.
|
void |
startMaintenance()
Put server into MAINTENANCE mode (prepare for shutdown).
|
void |
stopMaintenance()
Put server into RUNNING mode.
|
@GET @Path(value="info") ServerInfo getInfo()
@POST @Path(value="gc") void gc()
@POST @Path(value="license/reload") void licenseReload()
@POST @Path(value="logout") void logout()
@POST @Path(value="shutdown") void shutdown()
@POST @Path(value="maintenance/start") void startMaintenance()
@POST @Path(value="maintenance/stop") void stopMaintenance()
@GET @Path(value="state") ServerState getState()