@ExperimentalApi
public interface NodeStateService
Modifier and Type | Method and Description |
---|---|
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.
|
ServiceResult activate(ApplicationUser user)
This method will block until the node becomes active.
user
- the user performing the activation (required)ServiceResult deactivate(ApplicationUser user)
This method will block until the node becomes inactive (passive).
user
- the user performing the deactivation (required)boolean isActive()
Copyright © 2002-2015 Atlassian. All Rights Reserved.