@Path(value="/v1/info") public class ServerInfoResource extends Object
| Constructor and Description |
|---|
ServerInfoResource(NodeVersion nodeVersion,
io.airlift.node.NodeInfo nodeInfo,
ServerConfig serverConfig,
GracefulShutdownHandler shutdownHandler) |
| Modifier and Type | Method and Description |
|---|---|
ServerInfo |
getInfo() |
javax.ws.rs.core.Response |
getServerCoordinator() |
NodeState |
getServerState() |
void |
startupComplete() |
javax.ws.rs.core.Response |
updateState(NodeState state) |
@Inject public ServerInfoResource(NodeVersion nodeVersion, io.airlift.node.NodeInfo nodeInfo, ServerConfig serverConfig, GracefulShutdownHandler shutdownHandler)
@GET @Produces(value="application/json") public ServerInfo getInfo()
@PUT @Path(value="state") @Consumes(value="application/json") @Produces(value="text/plain") public javax.ws.rs.core.Response updateState(NodeState state) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException@GET @Path(value="state") @Produces(value="application/json") public NodeState getServerState()
@GET @Path(value="coordinator") @Produces(value="text/plain") public javax.ws.rs.core.Response getServerCoordinator()
public void startupComplete()
Copyright © 2012–2019. All rights reserved.