Class NodeStateResource

java.lang.Object
com.atlassian.jira.plugins.ha.rest.NodeStateResource

@Path("/nodes") public class NodeStateResource extends Object
The web resource for the current node's state within the Jira cluster.
Since:
6.1
  • Constructor Details

  • Method Details

    • getState

      @GET @Path("current") @Produces("application/json") public boolean getState()
      Gets the state of this Jira node. request.representation.mediaType application/json request.representation.doc A flag indicating whether this Jira instance should be active. request.representation.example true response.representation.400.doc Returned if the specified base URL is not valid.
      Returns:
      the desired state of this instance
    • setState

      @PUT @Path("current") @Produces("application/json") public javax.ws.rs.core.Response setState(boolean active)
      Sets the state of this Jira node. request.representation.mediaType application/json request.representation.doc A flag indicating whether this Jira instance should be active. request.representation.example true response.representation.400.doc Returned if the specified base URL is not valid.
      Parameters:
      active - the desired state of this instance
      Returns:
      ok if state successfully set, else contains error collection