Interface ServerService
-
@Path("/server") @Produces({"text/xml","application/xml","application/json"}) public interface ServerServiceServices related to the operation of the XL Deploy server process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgc()Runs the garbage collector on the repository.ServerInfogetInfo()Returns information about the configuration of the sever.javax.ws.rs.core.ResponsegetLogo(java.lang.String productName)Returns the logo from "conf" folder.ServerStategetState()Returns the information about the current server state (is it RUNNING or in MAINTENANCE mode).voidlicenseReload()Reload and validate the license file from disk.voidlogout()Logs out the current user.java.lang.Longshutdown()Stops the server process in a graceful manner.voidstartMaintenance()Put server into MAINTENANCE mode (prepare for shutdown).voidstopMaintenance()Put server into RUNNING mode.voidviewAs(java.lang.String username, java.util.List<java.lang.String> roles)View as user.
-
-
-
Method Detail
-
getInfo
@GET @Path("info") ServerInfo 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") java.lang.String username, @QueryParam("role") java.util.List<java.lang.String> roles)View as user.- Permission:
- admin
-
shutdown
@POST @Path("shutdown") @Produces("text/plain") java.lang.Long 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
@GET @Path("state") ServerState getState()Returns the information about the current server state (is it RUNNING or in MAINTENANCE mode).- Returns:
- server state (RUNNING, MAINTENANCE)
-
getLogo
@GET @Path("logo/{productName}") javax.ws.rs.core.Response getLogo(@PathParam("productName") java.lang.String productName)Returns the logo from "conf" folder.- Returns:
- stream with svg that represents logo
-
-