Class ClusterSystemShutdownResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.shared.rest.resources.ProxiedResource
org.graylog2.rest.resources.cluster.ClusterSystemShutdownResource
@Path("/cluster/{nodeId}/shutdown")
@Produces("application/json")
@Deprecated
public class ClusterSystemShutdownResource
extends ProxiedResource
Deprecated.
Shutting down nodes using an API request is discouraged in favor of using a service manager to
control the server process.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graylog2.shared.rest.resources.ProxiedResource
ProxiedResource.CallResult<ResponseType>, ProxiedResource.MasterResponse<ResponseType>, ProxiedResource.NodeResponse<ResponseType>
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.ProxiedResource
nodeService, remoteInterfaceProvider
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionClusterSystemShutdownResource
(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, javax.ws.rs.core.HttpHeaders httpHeaders, ExecutorService executorService) Deprecated. -
Method Summary
Methods inherited from class org.graylog2.shared.rest.resources.ProxiedResource
authenticationToken, createRemoteInterfaceProvider, getAuthenticationToken, getForAllNodes, getForAllNodes, requestOnAllNodes, requestOnAllNodes, requestOnLeader, requestOnMaster
Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
ClusterSystemShutdownResource
@Inject public ClusterSystemShutdownResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Named("proxiedRequestsExecutorService") ExecutorService executorService) throws NodeNotFoundException Deprecated.- Throws:
NodeNotFoundException
-
-
Method Details
-
shutdown
@POST @Timed public void shutdown(@PathParam("nodeId") String nodeId) throws IOException, NodeNotFoundException Deprecated.- Throws:
IOException
NodeNotFoundException
-