| Package | Description |
|---|---|
| me.prettyprint.cassandra.connection | |
| me.prettyprint.cassandra.connection.client | |
| me.prettyprint.cassandra.connection.factory | |
| me.prettyprint.cassandra.model |
The model package defines the thrift/avro reflections used by hector to shield the specific types
of the objects.
|
| me.prettyprint.cassandra.service | |
| me.prettyprint.cassandra.service.template | |
| me.prettyprint.hector.api |
The api package defines the main hector api entry points (aka the v2 API)
|
| me.prettyprint.hector.api.exceptions |
| Modifier and Type | Method and Description |
|---|---|
CassandraHost |
HClientPool.getCassandraHost() |
CassandraHost |
ConcurrentHClientPool.getCassandraHost() |
| Modifier and Type | Method and Description |
|---|---|
Set<CassandraHost> |
NodeDiscovery.discoverNodes()
Find any unknown nodes in the cassandra ring
|
Set<CassandraHost> |
HConnectionManager.getDownedHosts() |
Set<CassandraHost> |
CassandraHostRetryService.getDownedHosts() |
Set<CassandraHost> |
HConnectionManager.getHosts() |
Set<CassandraHost> |
HConnectionManager.getSuspendedCassandraHosts()
Returns a Set of
CassandraHost which are in the suspended status |
| Modifier and Type | Method and Description |
|---|---|
void |
CassandraHostRetryService.add(CassandraHost cassandraHost) |
boolean |
HConnectionManager.addCassandraHost(CassandraHost cassandraHost)
Returns true if the host was successfully added.
|
boolean |
HostTimeoutTracker.checkTimeout(CassandraHost cassandraHost) |
boolean |
CassandraHostRetryService.contains(CassandraHost cassandraHost) |
HClientPool |
RoundRobinBalancingPolicy.createConnection(HClientFactory clientFactory,
CassandraHost host,
CassandraClientMonitor monitor) |
HClientPool |
LoadBalancingPolicy.createConnection(HClientFactory clientFactory,
CassandraHost host,
CassandraClientMonitor monitor)
Creates a connection pool for
host. |
HClientPool |
LeastActiveBalancingPolicy.createConnection(HClientFactory clientFactory,
CassandraHost host,
CassandraClientMonitor monitor) |
HClientPool |
DynamicLoadBalancingPolicy.createConnection(HClientFactory clientFactory,
CassandraHost host,
CassandraClientMonitor monitor) |
void |
ConnectionManagerListenersHandler.fireOnAddHost(CassandraHost cassandraHost,
boolean added,
String errorMessage,
Exception e) |
void |
ConnectionManagerListenersHandler.fireOnHostDown(CassandraHost cassandraHost) |
void |
ConnectionManagerListenersHandler.fireOnHostRestored(CassandraHost cassandraHost) |
void |
ConnectionManagerListenersHandler.fireOnRemoveHost(CassandraHost cassandraHost,
boolean removed,
String message) |
void |
ConnectionManagerListenersHandler.fireOnSuspendHost(CassandraHost cassandraHost,
boolean removed) |
void |
ConnectionManagerListenersHandler.fireOnUnSuspendHost(CassandraHost cassandraHost,
boolean readded) |
void |
ConnectionManagerListener.onAddHost(CassandraHost cassandraHost,
boolean added,
String errorMessage,
Exception e)
fires when an action to add
CassandraHost was triggered |
void |
ConnectionManagerEmptyListener.onAddHost(CassandraHost cassandraHost,
boolean added,
String errorMessage,
Exception e) |
void |
ConnectionManagerListener.onHostDown(CassandraHost cassandraHost)
fires when a
CassandraHost was detected as down |
void |
ConnectionManagerEmptyListener.onHostDown(CassandraHost cassandraHost) |
void |
ConnectionManagerListener.onHostRestored(CassandraHost cassandraHost)
fires when a
CassandraHost was restored by the CassandraHostRetryService
CassandraHostRetryService must be enabled for this event to fire |
void |
ConnectionManagerEmptyListener.onHostRestored(CassandraHost cassandraHost) |
void |
ConnectionManagerListener.onRemoveHost(CassandraHost cassandraHost,
boolean removed,
String message)
fires when an action to remove
CassandraHost was triggered |
void |
ConnectionManagerEmptyListener.onRemoveHost(CassandraHost cassandraHost,
boolean removed,
String message) |
void |
ConnectionManagerListener.onSuspendHost(CassandraHost cassandraHost,
boolean removed)
fired when a suspend action was triggered on the host
|
void |
ConnectionManagerEmptyListener.onSuspendHost(CassandraHost cassandraHost,
boolean removed) |
void |
ConnectionManagerListener.onUnSuspendHost(CassandraHost cassandraHost,
boolean readded)
fired when an un-suspend action was triggered on the host
|
void |
ConnectionManagerEmptyListener.onUnSuspendHost(CassandraHost cassandraHost,
boolean readded) |
boolean |
CassandraHostRetryService.remove(CassandraHost cassandraHost) |
boolean |
HConnectionManager.removeCassandraHost(CassandraHost cassandraHost)
Remove the
CassandraHost from the pool, bypassing retry service. |
boolean |
HConnectionManager.suspendCassandraHost(CassandraHost cassandraHost)
Remove the
HClientPool referenced by the CassandraHost from
the active host pools. |
boolean |
HConnectionManager.unsuspendCassandraHost(CassandraHost cassandraHost)
The opposite of suspendCassandraHost, places the pool back into selection
|
| Modifier and Type | Method and Description |
|---|---|
HClientPool |
RoundRobinBalancingPolicy.getPool(Collection<HClientPool> pools,
Set<CassandraHost> excludeHosts) |
HClientPool |
LoadBalancingPolicy.getPool(Collection<HClientPool> pools,
Set<CassandraHost> excludeHosts)
Retrieves a pool from the collection of
pools excluding excludeHosts. |
HClientPool |
LeastActiveBalancingPolicy.getPool(Collection<HClientPool> pools,
Set<CassandraHost> excludeHosts) |
HClientPool |
DynamicLoadBalancingPolicy.getPool(Collection<HClientPool> pools,
Set<CassandraHost> excludeHosts) |
| Constructor and Description |
|---|
ConcurrentHClientPool(HClientFactory clientFactory,
CassandraHost host,
CassandraClientMonitor monitor) |
LatencyAwareHClientPool(HClientFactory clientFactory,
CassandraHost host,
CassandraClientMonitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
CassandraHost |
HThriftClient.getCassandraHost()
Retrieves the CassandraHost associate to this client.
|
CassandraHost |
HClient.getCassandraHost()
Retrieves the CassandraHost associate to this client.
|
| Constructor and Description |
|---|
HKerberosThriftClient(Subject kerberosTicket,
CassandraHost cassandraHost,
String servicePrincipalName)
Constructor
|
HKerberosThriftClient(Subject kerberosTicket,
CassandraHost cassandraHost,
String servicePrincipalName,
org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters params)
Constructor
|
HSaslThriftClient(CassandraHost cassandraHost,
String servicePrincipalName)
Constructor
|
HSaslThriftClient(CassandraHost cassandraHost,
String servicePrincipalName,
org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters params)
Constructor
|
HThriftClient(CassandraHost cassandraHost)
Constructor
|
HThriftClient(CassandraHost cassandraHost,
org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters params)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
HClient |
HThriftClientFactoryImpl.createClient(CassandraHost ch)
Creates a Hector Client against the host represented by
ch |
HClient |
HKerberosSecuredThriftClientFactoryImpl.createClient(CassandraHost ch)
Creates a Hector Client against the host represented by
ch |
HClient |
HKerberosSaslThriftClientFactoryImpl.createClient(CassandraHost ch)
Creates a Hector Client against the host represented by
ch |
HClient |
HClientFactory.createClient(CassandraHost ch)
Creates a Hector Client against the host represented by
ch |
| Modifier and Type | Method and Description |
|---|---|
CassandraHost |
ExecutionResult.getHostUsed()
The cassandra host that was actually used to execute the operation
|
| Constructor and Description |
|---|
ExecutionResult(T value,
long execTime,
CassandraHost cassandraHost) |
QueryResultImpl(T value,
long execTime,
CassandraHost cassandraHost,
Query<T> query) |
| Modifier and Type | Method and Description |
|---|---|
CassandraHost[] |
CassandraHostConfigurator.buildCassandraHosts() |
CassandraHost |
VirtualKeyspaceOperation.getCassandraHost() |
CassandraHost |
Operation.getCassandraHost() |
CassandraHost |
KeyspaceServiceImpl.getCassandraHost() |
CassandraHost |
KeyspaceService.getCassandraHost() |
CassandraHost |
HColumnFamilyImpl.getHostUsed() |
| Modifier and Type | Method and Description |
|---|---|
Set<CassandraHost> |
AbstractCluster.getKnownPoolHosts(boolean refresh) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractCluster.addHost(CassandraHost cassandraHost,
boolean skipApplyConfig) |
void |
CassandraHostConfigurator.applyConfig(CassandraHost cassandraHost) |
void |
VirtualKeyspaceOperation.executeAndSetResult(org.apache.cassandra.thrift.Cassandra.Client cassandra,
CassandraHost cassandraHost) |
void |
Operation.executeAndSetResult(org.apache.cassandra.thrift.Cassandra.Client cassandra,
CassandraHost cassandraHost) |
HectorException |
ExceptionsTranslatorImpl.translate(Throwable original,
CassandraHost host) |
HectorException |
ExceptionsTranslator.translate(Throwable originalException,
CassandraHost host) |
| Modifier and Type | Method and Description |
|---|---|
CassandraHost |
AbstractResultWrapper.getHostUsed() |
| Modifier and Type | Method and Description |
|---|---|
CassandraHost |
ResultStatus.getHostUsed()
The
CassandraHost on which this operation
was successful |
| Modifier and Type | Method and Description |
|---|---|
Set<CassandraHost> |
Cluster.getKnownPoolHosts(boolean refresh) |
| Modifier and Type | Method and Description |
|---|---|
void |
Cluster.addHost(CassandraHost cassandraHost,
boolean skipApplyConfig)
Adds the host to this Cluster.
|
| Modifier and Type | Method and Description |
|---|---|
CassandraHost |
HectorException.getHost() |
| Modifier and Type | Method and Description |
|---|---|
void |
HectorException.setHost(CassandraHost host) |
Copyright © 2014. All Rights Reserved.