com.neeve.ods
Enum IStoreBinding.Role

java.lang.Object
  extended by java.lang.Enum<IStoreBinding.Role>
      extended by com.neeve.ods.IStoreBinding.Role
All Implemented Interfaces:
Serializable, Comparable<IStoreBinding.Role>
Enclosing interface:
IStoreBinding

public static enum IStoreBinding.Role
extends Enum<IStoreBinding.Role>

Enumerates the different roles of a binding in a store cluster.


Enum Constant Summary
Backup
          Indicates that this binding is a backup binding in a store cluster.
Primary
          Indicates that this binding is the primary binding in a store cluster.
 
Method Summary
static IStoreBinding.Role valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IStoreBinding.Role[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Primary

public static final IStoreBinding.Role Primary
Indicates that this binding is the primary binding in a store cluster.

A primary binding is fully functional


Backup

public static final IStoreBinding.Role Backup
Indicates that this binding is a backup binding in a store cluster.

When operating in backup mode, objects can be retrieved from the store but not updated or added.

Method Detail

values

public static IStoreBinding.Role[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IStoreBinding.Role c : IStoreBinding.Role.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IStoreBinding.Role valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.