Class QosCassandraClient
- java.lang.Object
-
- com.palantir.atlasdb.keyvalue.cassandra.QosCassandraClient
-
- All Implemented Interfaces:
com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
,CassandraClient
,java.io.Closeable
,java.lang.AutoCloseable
public class QosCassandraClient extends java.lang.Object implements com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
-
-
Constructor Summary
Constructors Constructor Description QosCassandraClient(CassandraClient client, QosMetrics metrics, com.google.common.base.Ticker ticker)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
batch_mutate(java.lang.String kvsMethodName, java.util.Map<java.nio.ByteBuffer,java.util.Map<java.lang.String,java.util.List<org.apache.cassandra.thrift.Mutation>>> mutation_map, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
CassandraClient
delegate()
org.apache.cassandra.thrift.CqlResult
execute_cql3_query(CqlQuery cqlQuery, org.apache.cassandra.thrift.Compression compression, org.apache.cassandra.thrift.ConsistencyLevel consistency)
org.apache.cassandra.thrift.ColumnOrSuperColumn
get(com.palantir.atlasdb.keyvalue.api.TableReference tableReference, java.nio.ByteBuffer key, byte[] column, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
java.util.List<org.apache.cassandra.thrift.KeySlice>
get_range_slices(java.lang.String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.KeyRange range, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
static QosCassandraClient
instrumentWithMetrics(CassandraClient client, com.palantir.atlasdb.util.MetricsManager manager)
java.util.Map<java.nio.ByteBuffer,java.util.List<org.apache.cassandra.thrift.ColumnOrSuperColumn>>
multiget_slice(java.lang.String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, java.util.List<java.nio.ByteBuffer> keys, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
void
remove(java.lang.String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, byte[] row, long timestamp, org.apache.cassandra.thrift.ConsistencyLevel consistency_level)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
cas, close, describe_keyspace, describe_keyspaces, describe_partitioner, describe_ring, describe_schema_versions, describe_snitch, describe_version, execute_prepared_cql3_query, get_host_ids, getInputProtocol, getOutputProtocol, isValid, multiget_multislice, prepare_cql3_query, put_unless_exists, system_add_keyspace, system_drop_column_family, system_update_column_family, system_update_keyspace, trace_next_query, truncate
-
-
-
-
Constructor Detail
-
QosCassandraClient
public QosCassandraClient(CassandraClient client, QosMetrics metrics, com.google.common.base.Ticker ticker)
-
-
Method Detail
-
instrumentWithMetrics
public static QosCassandraClient instrumentWithMetrics(CassandraClient client, com.palantir.atlasdb.util.MetricsManager manager)
-
delegate
public CassandraClient delegate()
- Specified by:
delegate
in interfacecom.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
-
multiget_slice
public java.util.Map<java.nio.ByteBuffer,java.util.List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> multiget_slice(java.lang.String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, java.util.List<java.nio.ByteBuffer> keys, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel consistency_level) throws org.apache.cassandra.thrift.InvalidRequestException, org.apache.cassandra.thrift.UnavailableException, org.apache.cassandra.thrift.TimedOutException, org.apache.thrift.TException
- Specified by:
multiget_slice
in interfacecom.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
- Specified by:
multiget_slice
in interfaceCassandraClient
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.UnavailableException
org.apache.cassandra.thrift.TimedOutException
org.apache.thrift.TException
-
get_range_slices
public java.util.List<org.apache.cassandra.thrift.KeySlice> get_range_slices(java.lang.String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.KeyRange range, org.apache.cassandra.thrift.ConsistencyLevel consistency_level) throws org.apache.cassandra.thrift.InvalidRequestException, org.apache.cassandra.thrift.UnavailableException, org.apache.cassandra.thrift.TimedOutException, org.apache.thrift.TException
- Specified by:
get_range_slices
in interfacecom.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
- Specified by:
get_range_slices
in interfaceCassandraClient
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.UnavailableException
org.apache.cassandra.thrift.TimedOutException
org.apache.thrift.TException
-
remove
public void remove(java.lang.String kvsMethodName, com.palantir.atlasdb.keyvalue.api.TableReference tableRef, byte[] row, long timestamp, org.apache.cassandra.thrift.ConsistencyLevel consistency_level) throws org.apache.cassandra.thrift.InvalidRequestException, org.apache.cassandra.thrift.UnavailableException, org.apache.cassandra.thrift.TimedOutException, org.apache.thrift.TException
- Specified by:
remove
in interfacecom.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
- Specified by:
remove
in interfaceCassandraClient
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.UnavailableException
org.apache.cassandra.thrift.TimedOutException
org.apache.thrift.TException
-
batch_mutate
public void batch_mutate(java.lang.String kvsMethodName, java.util.Map<java.nio.ByteBuffer,java.util.Map<java.lang.String,java.util.List<org.apache.cassandra.thrift.Mutation>>> mutation_map, org.apache.cassandra.thrift.ConsistencyLevel consistency_level) throws org.apache.cassandra.thrift.InvalidRequestException, org.apache.cassandra.thrift.UnavailableException, org.apache.cassandra.thrift.TimedOutException, org.apache.thrift.TException
- Specified by:
batch_mutate
in interfacecom.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
- Specified by:
batch_mutate
in interfaceCassandraClient
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.UnavailableException
org.apache.cassandra.thrift.TimedOutException
org.apache.thrift.TException
-
get
public org.apache.cassandra.thrift.ColumnOrSuperColumn get(com.palantir.atlasdb.keyvalue.api.TableReference tableReference, java.nio.ByteBuffer key, byte[] column, org.apache.cassandra.thrift.ConsistencyLevel consistency_level) throws org.apache.cassandra.thrift.InvalidRequestException, org.apache.cassandra.thrift.NotFoundException, org.apache.cassandra.thrift.UnavailableException, org.apache.cassandra.thrift.TimedOutException, org.apache.thrift.TException
- Specified by:
get
in interfacecom.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
- Specified by:
get
in interfaceCassandraClient
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.NotFoundException
org.apache.cassandra.thrift.UnavailableException
org.apache.cassandra.thrift.TimedOutException
org.apache.thrift.TException
-
execute_cql3_query
public org.apache.cassandra.thrift.CqlResult execute_cql3_query(CqlQuery cqlQuery, org.apache.cassandra.thrift.Compression compression, org.apache.cassandra.thrift.ConsistencyLevel consistency) throws org.apache.cassandra.thrift.InvalidRequestException, org.apache.cassandra.thrift.UnavailableException, org.apache.cassandra.thrift.TimedOutException, org.apache.cassandra.thrift.SchemaDisagreementException, org.apache.thrift.TException
- Specified by:
execute_cql3_query
in interfacecom.palantir.atlasdb.keyvalue.cassandra.AutoDelegate_CassandraClient
- Specified by:
execute_cql3_query
in interfaceCassandraClient
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.UnavailableException
org.apache.cassandra.thrift.TimedOutException
org.apache.cassandra.thrift.SchemaDisagreementException
org.apache.thrift.TException
-
-