me.prettyprint.cassandra.model
Class ExecutingKeyspace
java.lang.Object
me.prettyprint.cassandra.model.ExecutingKeyspace
- All Implemented Interfaces:
- Keyspace
- Direct Known Subclasses:
- ExecutingVirtualKeyspace
public class ExecutingKeyspace
- extends Object
- implements Keyspace
Thread Safe
- Author:
- Ran Tavory, zznate
consistencyLevelPolicy
protected ConsistencyLevelPolicy consistencyLevelPolicy
failoverPolicy
protected FailoverPolicy failoverPolicy
connectionManager
protected final HConnectionManager connectionManager
keyspace
protected final String keyspace
credentials
protected final Map<String,String> credentials
ExecutingKeyspace
public ExecutingKeyspace(String keyspace,
HConnectionManager connectionManager,
ConsistencyLevelPolicy consistencyLevelPolicy,
FailoverPolicy failoverPolicy)
ExecutingKeyspace
public ExecutingKeyspace(String keyspace,
HConnectionManager connectionManager,
ConsistencyLevelPolicy consistencyLevelPolicy,
FailoverPolicy failoverPolicy,
Map<String,String> credentials)
setConsistencyLevelPolicy
public void setConsistencyLevelPolicy(ConsistencyLevelPolicy cp)
- Specified by:
setConsistencyLevelPolicy
in interface Keyspace
getKeyspaceName
public String getKeyspaceName()
- Specified by:
getKeyspaceName
in interface Keyspace
toString
public String toString()
- Overrides:
toString
in class Object
createClock
public long createClock()
- Specified by:
createClock
in interface Keyspace
doExecute
public <T> ExecutionResult<T> doExecute(KeyspaceOperationCallback<T> koc)
throws HectorException
- Throws:
HectorException
doExecuteOperation
public <T> ExecutionResult<T> doExecuteOperation(Operation<T> operation)
throws HectorException
- Throws:
HectorException
getExceptionsTranslator
public ExceptionsTranslator getExceptionsTranslator()
Copyright © 2011. All Rights Reserved.