public class

DefaultNodeStateService

extends Object
implements NodeStateService
java.lang.Object
   ↳ com.atlassian.jira.cluster.DefaultNodeStateService

Class Overview

The NodeStateService implementation.

Summary

Public Constructors
DefaultNodeStateService(GlobalPermissionManager globalPermissionManager, I18nHelper i18nHelper, NodeStateManager nodeStateManager)
Public Methods
ServiceResult activate(ApplicationUser user)
Activate the current node, provided the user has the necessary permissions.
ServiceResult deactivate(ApplicationUser user)
Deactivate the node.
boolean isActive()
Indicates whether the current node is active within the cluster.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.cluster.NodeStateService

Public Constructors

public DefaultNodeStateService (GlobalPermissionManager globalPermissionManager, I18nHelper i18nHelper, NodeStateManager nodeStateManager)

Public Methods

public ServiceResult activate (ApplicationUser user)

Activate the current node, provided the user has the necessary permissions. This method will block until the node becomes active.

Parameters
user the user performing the activation (required)
Returns
  • a non-null result

public ServiceResult deactivate (ApplicationUser user)

Deactivate the node. This method will block until the node becomes inactive (passive).

Parameters
user the user performing the deactivation (required)
Returns
  • a non-null result

public boolean isActive ()

Indicates whether the current node is active within the cluster.

Returns
  • true if not clustered