public enum StorageProperty extends Enum<StorageProperty>
| Enum Constant and Description |
|---|
COMMITLOG |
CQL_PORT |
DATA |
GOSSIP_PORT |
HEAP_NEW_SIZE |
HEAP_SIZE |
HOSTNAME |
JMX_PORT |
SAVED_CACHES |
SEEDS |
STACK_SIZE |
VERIFY_DATA_DIRS_EMPTY |
| Modifier and Type | Method and Description |
|---|---|
String |
property() |
String |
toString() |
static void |
validate(File storagePropertiesFile) |
static void |
validate(File storagePropertiesFile,
Set<StorageProperty> additionalProperties) |
static void |
validate(Map<String,String> storageProperties) |
static void |
validate(Map<String,String> storageProperties,
Set<StorageProperty> additionalProperties) |
static StorageProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StorageProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StorageProperty HOSTNAME
public static final StorageProperty SEEDS
public static final StorageProperty CQL_PORT
public static final StorageProperty JMX_PORT
public static final StorageProperty GOSSIP_PORT
public static final StorageProperty COMMITLOG
public static final StorageProperty DATA
public static final StorageProperty SAVED_CACHES
public static final StorageProperty HEAP_SIZE
public static final StorageProperty HEAP_NEW_SIZE
public static final StorageProperty STACK_SIZE
public static final StorageProperty VERIFY_DATA_DIRS_EMPTY
public static StorageProperty[] values()
for (StorageProperty c : StorageProperty.values()) System.out.println(c);
public static StorageProperty valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String property()
public String toString()
toString in class Enum<StorageProperty>public static void validate(File storagePropertiesFile, Set<StorageProperty> additionalProperties) throws Exception
storagePropertiesFile - additionalProperties - additional properties that should be set (present and not empty). can be null.Exceptionpublic static void validate(Map<String,String> storageProperties) throws Exception
ExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.