Package io.prestosql.server
Class ServerInfoResource
- java.lang.Object
-
- io.prestosql.server.ServerInfoResource
-
@Path("/v1/info") public class ServerInfoResource extends Object
-
-
Constructor Summary
Constructors Constructor Description ServerInfoResource(NodeVersion nodeVersion, io.airlift.node.NodeInfo nodeInfo, ServerConfig serverConfig, GracefulShutdownHandler shutdownHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerInfo
getInfo()
javax.ws.rs.core.Response
getServerCoordinator()
NodeState
getServerState()
void
startupComplete()
javax.ws.rs.core.Response
updateState(NodeState state)
-
-
-
Constructor Detail
-
ServerInfoResource
@Inject public ServerInfoResource(NodeVersion nodeVersion, io.airlift.node.NodeInfo nodeInfo, ServerConfig serverConfig, GracefulShutdownHandler shutdownHandler)
-
-
Method Detail
-
getInfo
@ResourceSecurity(PUBLIC) @GET @Produces("application/json") public ServerInfo getInfo()
-
updateState
@ResourceSecurity(MANAGEMENT_WRITE) @PUT @Path("state") @Consumes("application/json") @Produces("text/plain") public javax.ws.rs.core.Response updateState(NodeState state) throws javax.ws.rs.WebApplicationException
- Throws:
javax.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 javax.ws.rs.core.Response getServerCoordinator()
-
startupComplete
public void startupComplete()
-
-