|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.service.CassandraHostConfigurator
public final class CassandraHostConfigurator
| Field Summary | |
|---|---|
static ClockResolution |
DEF_CLOCK_RESOLUTION
|
| Constructor Summary | |
|---|---|
CassandraHostConfigurator()
|
|
CassandraHostConfigurator(String hosts)
|
|
| Method Summary | |
|---|---|
void |
applyConfig(CassandraHost cassandraHost)
|
CassandraHost[] |
buildCassandraHosts()
|
boolean |
getAutoDiscoverHosts()
|
List<String> |
getAutoDiscoveryDataCenters()
Retrieves the 'local' datacenter names that the DiscoveryService recognizes as valid in order to discover new hosts. |
int |
getAutoDiscoveryDelayInSeconds()
|
ClockResolution |
getClockResolution()
|
int |
getHostTimeoutCounter()
|
int |
getHostTimeoutSuspensionDurationInSeconds()
|
int |
getHostTimeoutUnsuspendCheckDelay()
|
int |
getHostTimeoutWindow()
|
boolean |
getLifo()
|
LoadBalancingPolicy |
getLoadBalancingPolicy()
|
HOpTimer |
getOpTimer()
|
int |
getPort()
|
boolean |
getRetryDownedHosts()
|
int |
getRetryDownedHostsDelayInSeconds()
|
int |
getRetryDownedHostsQueueSize()
|
boolean |
getRunAutoDiscoveryAtStartup()
|
boolean |
getUseHostTimeoutTracker()
|
boolean |
getUseSocketKeepalive()
|
boolean |
isUseKerberosAuthentication()
Retrieves whether Kerberos authentication is enabled or not. |
void |
setAutoDiscoverHosts(boolean autoDiscoverHosts)
|
void |
setAutoDiscoveryDataCenter(List<String> dataCenters)
Sets the datacenters for the DiscoveryService. |
void |
setAutoDiscoveryDataCenter(String dataCenter)
Sets the local datacenter for the DiscoveryService. |
void |
setAutoDiscoveryDelayInSeconds(int autoDiscoveryDelayInSeconds)
|
void |
setCassandraThriftSocketTimeout(int cassandraThriftSocketTimeout)
The value (in milliseconds) which gets passed down to Socket.setSoTimeout(int)
used by the underlying Thrift transport. |
void |
setClockResolution(ClockResolution clockResolution)
|
void |
setClockResolution(String resolutionString)
|
void |
setHosts(String hosts)
|
void |
setHostTimeoutCounter(int hostTimeoutCounter)
|
void |
setHostTimeoutSuspensionDurationInSeconds(int hostTimeoutSuspensionDurationInSeconds)
|
void |
setHostTimeoutUnsuspendCheckDelay(int hostTimeoutUnsuspendCheckDelay)
|
void |
setHostTimeoutWindow(int hostTimeoutWindow)
|
void |
setLifo(boolean lifo)
|
void |
setLoadBalancingPolicy(LoadBalancingPolicy loadBalancingPolicy)
|
void |
setMaxActive(int maxActive)
|
void |
setMaxWaitTimeWhenExhausted(long maxWaitTimeWhenExhausted)
|
void |
setOpTimer(HOpTimer opTimer)
|
void |
setPort(int port)
|
void |
setRetryDownedHosts(boolean retryDownedHosts)
|
void |
setRetryDownedHostsDelayInSeconds(int retryDownedHostsDelayInSeconds)
|
void |
setRetryDownedHostsQueueSize(int retryDownedHostsQueueSize)
|
void |
setRunAutoDiscoveryAtStartup(boolean runAutoDiscoveryAtStartup)
Set to true to run NodeAutoDiscoverService at startup. |
void |
setUseHostTimeoutTracker(boolean useHostTimeoutTracker)
|
void |
setUseKerberosAuthentication(boolean useKerberosAuthentication)
Set Kerberos Authentication. |
void |
setUseSocketKeepalive(boolean useSocketKeepalive)
Enable SO_KEEPALIVE on the underlying socket. |
void |
setUseThriftFramedTransport(boolean useThriftFramedTransport)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ClockResolution DEF_CLOCK_RESOLUTION
| Constructor Detail |
|---|
public CassandraHostConfigurator()
public CassandraHostConfigurator(String hosts)
| Method Detail |
|---|
public CassandraHost[] buildCassandraHosts()
public void applyConfig(CassandraHost cassandraHost)
public void setHosts(String hosts)
public void setMaxActive(int maxActive)
public void setMaxWaitTimeWhenExhausted(long maxWaitTimeWhenExhausted)
public void setCassandraThriftSocketTimeout(int cassandraThriftSocketTimeout)
Socket.setSoTimeout(int)
used by the underlying Thrift transport.
public boolean getRetryDownedHosts()
public void setRetryDownedHosts(boolean retryDownedHosts)
public void setRetryDownedHostsQueueSize(int retryDownedHostsQueueSize)
public int getRetryDownedHostsQueueSize()
public void setRetryDownedHostsDelayInSeconds(int retryDownedHostsDelayInSeconds)
public int getRetryDownedHostsDelayInSeconds()
public void setClockResolution(String resolutionString)
resolutionString - one of "SECONDS", "MILLISECONDS", "MICROSECONDS" or "MICROSECONDS_SYNC"public HOpTimer getOpTimer()
public void setOpTimer(HOpTimer opTimer)
public String toString()
toString in class Objectpublic boolean getLifo()
public void setLifo(boolean lifo)
public int getPort()
public void setPort(int port)
public void setUseThriftFramedTransport(boolean useThriftFramedTransport)
public ClockResolution getClockResolution()
public void setClockResolution(ClockResolution clockResolution)
public boolean getAutoDiscoverHosts()
public void setAutoDiscoverHosts(boolean autoDiscoverHosts)
public int getAutoDiscoveryDelayInSeconds()
public void setAutoDiscoveryDelayInSeconds(int autoDiscoveryDelayInSeconds)
public void setAutoDiscoveryDataCenter(String dataCenter)
dataCenter - DataCenter namepublic void setAutoDiscoveryDataCenter(List<String> dataCenters)
public List<String> getAutoDiscoveryDataCenters()
public LoadBalancingPolicy getLoadBalancingPolicy()
public void setLoadBalancingPolicy(LoadBalancingPolicy loadBalancingPolicy)
public int getHostTimeoutCounter()
public void setHostTimeoutCounter(int hostTimeoutCounter)
public int getHostTimeoutWindow()
public void setHostTimeoutWindow(int hostTimeoutWindow)
public int getHostTimeoutSuspensionDurationInSeconds()
public void setHostTimeoutSuspensionDurationInSeconds(int hostTimeoutSuspensionDurationInSeconds)
public int getHostTimeoutUnsuspendCheckDelay()
public void setHostTimeoutUnsuspendCheckDelay(int hostTimeoutUnsuspendCheckDelay)
public boolean getUseHostTimeoutTracker()
public void setUseHostTimeoutTracker(boolean useHostTimeoutTracker)
public boolean getRunAutoDiscoveryAtStartup()
public void setRunAutoDiscoveryAtStartup(boolean runAutoDiscoveryAtStartup)
NodeAutoDiscoverService at startup.
You must also call setAutoDiscoverHosts(boolean)
to true for this to have an effect.
runAutoDiscoveryAtStartup - public boolean getUseSocketKeepalive()
public void setUseSocketKeepalive(boolean useSocketKeepalive)
public boolean isUseKerberosAuthentication()
TRUE if Kerberos in enabled. FALSE otherwise.public void setUseKerberosAuthentication(boolean useKerberosAuthentication)
useKerberosAuthentication -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||