public enum Strategy extends Enum<Strategy>
Java class for Strategy.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="Strategy">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="org.apache.cassandra.locator.LocalStrategy"/>
<enumeration value="org.apache.cassandra.locator.NetworkTopologyStrategy"/>
<enumeration value="org.apache.cassandra.locator.SimpleStrategy"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ORG_APACHE_CASSANDRA_LOCATOR_LOCAL_STRATEGY |
ORG_APACHE_CASSANDRA_LOCATOR_NETWORK_TOPOLOGY_STRATEGY |
ORG_APACHE_CASSANDRA_LOCATOR_SIMPLE_STRATEGY |
| Modifier and Type | Method and Description |
|---|---|
static Strategy |
fromValue(String v) |
String |
value() |
static Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Strategy ORG_APACHE_CASSANDRA_LOCATOR_LOCAL_STRATEGY
public static final Strategy ORG_APACHE_CASSANDRA_LOCATOR_NETWORK_TOPOLOGY_STRATEGY
public static final Strategy ORG_APACHE_CASSANDRA_LOCATOR_SIMPLE_STRATEGY
public static Strategy[] values()
for (Strategy c : Strategy.values()) System.out.println(c);
public static Strategy 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 value()
Copyright © 2014. All Rights Reserved.