me.prettyprint.cassandra.service
Enum SystemProperties

java.lang.Object
  extended by java.lang.Enum<SystemProperties>
      extended by me.prettyprint.cassandra.service.SystemProperties
All Implemented Interfaces:
Serializable, Comparable<SystemProperties>

public enum SystemProperties
extends Enum<SystemProperties>

System properties used by Hector.

Author:
Ran Tavory (rantav@gmail.com)

Enum Constant Summary
CASSANDRA_THRIFT_SOCKET_TIMEOUT
          What's the default socket timeout for thrift in miliseconds.
HECTOR_PERFORM_NAME_RESOLUTION
          Should hector perform name resolution? Default: no; Do not perform name resolution For example: -DHECTOR_PERFORM_NAME_RESOLUTION=true
 
Method Summary
static SystemProperties valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SystemProperties[] 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

HECTOR_PERFORM_NAME_RESOLUTION

public static final SystemProperties HECTOR_PERFORM_NAME_RESOLUTION
Should hector perform name resolution? Default: no; Do not perform name resolution For example: -DHECTOR_PERFORM_NAME_RESOLUTION=true


CASSANDRA_THRIFT_SOCKET_TIMEOUT

public static final SystemProperties CASSANDRA_THRIFT_SOCKET_TIMEOUT
What's the default socket timeout for thrift in miliseconds. Default: system settings (about a minute or more) Example: -DCASSANDRA_THRIFT_SOCKET_TIMEOUT=5000

Method Detail

values

public static SystemProperties[] 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 (SystemProperties c : SystemProperties.values())
    System.out.println(c);

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

valueOf

public static SystemProperties 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 © 2011. All Rights Reserved.