Interface ServerService
@Path("/server")
@Produces({"text/xml","application/xml","application/json"})
public interface ServerService
Services related to the operation of the XL Deploy server process.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
gc()
Runs the garbage collector on the repository.getInfo()
Returns information about the configuration of the sever.getState()
Returns the information about the current server state (is it RUNNING or in MAINTENANCE mode).void
Reload and validate the license file from disk.void
logout()
Logs out the current user.shutdown()
Stops the server process in a graceful manner.void
Put server into MAINTENANCE mode (prepare for shutdown).void
Put server into RUNNING mode.void
View as user.
-
Method Details
-
getInfo
Returns information about the configuration of the sever. For example: version, plugins, and classpath.- Returns:
- an information object.
-
gc
@POST @Path("gc") void gc()Runs the garbage collector on the repository.- Permission:
- admin
-
licenseReload
@POST @Path("license/reload") void licenseReload()Reload and validate the license file from disk.- Permission:
- admin
-
logout
@POST @Path("logout") void logout()Logs out the current user. -
viewAs
@PUT @Path("view-as") void viewAs(@QueryParam("user") String username, @QueryParam("role") List<String> roles) View as user.- Permission:
- admin
-
shutdown
Stops the server process in a graceful manner.- Returns:
- PID of the JVM process
- Permission:
- admin
-
startMaintenance
@POST @Path("maintenance/start") void startMaintenance()Put server into MAINTENANCE mode (prepare for shutdown).- Permission:
- admin
-
stopMaintenance
@POST @Path("maintenance/stop") void stopMaintenance()Put server into RUNNING mode.- Permission:
- admin
-
getState
Returns the information about the current server state (is it RUNNING or in MAINTENANCE mode).- Returns:
- server state (RUNNING, MAINTENANCE)
-