Package io.trino.server
Class ServerInfoResource
java.lang.Object
io.trino.server.ServerInfoResource
-
Constructor Summary
ConstructorsConstructorDescriptionServerInfoResource(NodeVersion nodeVersion, io.airlift.node.NodeInfo nodeInfo, ServerConfig serverConfig, GracefulShutdownHandler shutdownHandler, StartupStatus startupStatus) -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseupdateState(NodeState state)
-
Constructor Details
-
ServerInfoResource
@Inject public ServerInfoResource(NodeVersion nodeVersion, io.airlift.node.NodeInfo nodeInfo, ServerConfig serverConfig, GracefulShutdownHandler shutdownHandler, StartupStatus startupStatus)
-
-
Method Details
-
getInfo
-
updateState
@ResourceSecurity(MANAGEMENT_WRITE) @PUT @Path("state") @Consumes("application/json") @Produces("text/plain") public jakarta.ws.rs.core.Response updateState(NodeState state) throws jakarta.ws.rs.WebApplicationException - Throws:
jakarta.ws.rs.WebApplicationException
-
getServerState
@ResourceSecurity(PUBLIC) @GET @Path("state") @Produces("application/json") public NodeState getServerState() -
getServerCoordinator
@ResourceSecurity(PUBLIC) @GET @Path("coordinator") @Produces("text/plain") public jakarta.ws.rs.core.Response getServerCoordinator()
-