|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.cluster.DefaultNodeStateService
public class DefaultNodeStateService
The NodeStateService implementation.
Constructor Summary | |
---|---|
DefaultNodeStateService(GlobalPermissionManager globalPermissionManager,
I18nHelper i18nHelper,
NodeStateManager nodeStateManager)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultNodeStateService(GlobalPermissionManager globalPermissionManager, I18nHelper i18nHelper, NodeStateManager nodeStateManager)
Method Detail |
---|
public ServiceResult activate(ApplicationUser user)
NodeStateService
activate
in interface NodeStateService
user
- the user performing the activation (required)
public ServiceResult deactivate(ApplicationUser user)
NodeStateService
deactivate
in interface NodeStateService
user
- the user performing the deactivation (required)
public boolean isActive()
NodeStateService
isActive
in interface NodeStateService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |