Package org.forgerock.opendj.server.core
Enum DataProviderStatus
- java.lang.Object
-
- java.lang.Enum<DataProviderStatus>
-
- org.forgerock.opendj.server.core.DataProviderStatus
-
- All Implemented Interfaces:
Serializable,Comparable<DataProviderStatus>
public enum DataProviderStatus extends Enum<DataProviderStatus>
The status of a data provider. A data provider may be enabled, disabled, or providing a restricted service.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLEDThe data provider is disabled and rejecting all operations.ENABLEDThe data provider is enabled and accepting all operations.READ_ONLYThe data provider is only accepting read operations; all write operations will be rejected.WRITE_INTERNAL_ONLYThe data provider is accepting read operations, internal write operations, and updates through synchronization; all other write operations will be rejected.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()Retrieves a string representation of this status.static DataProviderStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static DataProviderStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final DataProviderStatus DISABLED
The data provider is disabled and rejecting all operations.
-
ENABLED
public static final DataProviderStatus ENABLED
The data provider is enabled and accepting all operations.
-
READ_ONLY
public static final DataProviderStatus READ_ONLY
The data provider is only accepting read operations; all write operations will be rejected.
-
WRITE_INTERNAL_ONLY
public static final DataProviderStatus WRITE_INTERNAL_ONLY
The data provider is accepting read operations, internal write operations, and updates through synchronization; all other write operations will be rejected.
-
-
Method Detail
-
values
public static DataProviderStatus[] 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 (DataProviderStatus c : DataProviderStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataProviderStatus 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 nameNullPointerException- if the argument is null
-
toString
public String toString()
Retrieves a string representation of this status.- Overrides:
toStringin classEnum<DataProviderStatus>- Returns:
- A string representation of this status.
-
-