|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<HighAvailabilityMemberState>
org.neo4j.kernel.ha.cluster.HighAvailabilityMemberState
public enum HighAvailabilityMemberState
This represents the different states that a cluster member can have internally.
| Enum Constant Summary | |
|---|---|
MASTER
Cluster member is available as master for other cluster members to use. |
|
PENDING
This state is the initial state, and is also the state used when leaving the cluster. |
|
SLAVE
Cluster member is ready as a slave |
|
TO_MASTER
The cluster member knows that it has been elected as master, and starts the transitioning process. |
|
TO_SLAVE
Member now knows that a master is available, and is transitioning itself to become a slave to that master. |
|
| Method Summary | |
|---|---|
abstract boolean |
isAccessAllowed(HighAvailabilityMemberContext context)
|
abstract HighAvailabilityMemberState |
masterIsAvailable(HighAvailabilityMemberContext context,
URI masterClusterUri,
URI masterHaURI)
|
abstract HighAvailabilityMemberState |
masterIsElected(HighAvailabilityMemberContext context,
URI masterUri)
|
abstract HighAvailabilityMemberState |
slaveIsAvailable(HighAvailabilityMemberContext context,
URI slaveUri)
|
static HighAvailabilityMemberState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HighAvailabilityMemberState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final HighAvailabilityMemberState PENDING
public static final HighAvailabilityMemberState TO_SLAVE
public static final HighAvailabilityMemberState TO_MASTER
public static final HighAvailabilityMemberState MASTER
public static final HighAvailabilityMemberState SLAVE
| Method Detail |
|---|
public static HighAvailabilityMemberState[] values()
for (HighAvailabilityMemberState c : HighAvailabilityMemberState.values()) System.out.println(c);
public static HighAvailabilityMemberState valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public abstract HighAvailabilityMemberState masterIsElected(HighAvailabilityMemberContext context,
URI masterUri)
public abstract HighAvailabilityMemberState masterIsAvailable(HighAvailabilityMemberContext context,
URI masterClusterUri,
URI masterHaURI)
public abstract HighAvailabilityMemberState slaveIsAvailable(HighAvailabilityMemberContext context,
URI slaveUri)
public abstract boolean isAccessAllowed(HighAvailabilityMemberContext context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||