|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.service.StorageProxy
public class StorageProxy
Method Summary | |
---|---|
static java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
describeSchemaVersions()
initiate a request/response session with each live node to check whether or not everybody is using the same migration id. |
boolean |
getHintedHandoffEnabled()
|
long |
getRangeOperations()
|
static java.util.List<Row> |
getRangeSlice(RangeSliceCommand command,
ConsistencyLevel consistency_level)
|
long |
getReadOperations()
|
long[] |
getRecentRangeLatencyHistogramMicros()
|
double |
getRecentRangeLatencyMicros()
|
long[] |
getRecentReadLatencyHistogramMicros()
|
double |
getRecentReadLatencyMicros()
|
long[] |
getRecentWriteLatencyHistogramMicros()
|
double |
getRecentWriteLatencyMicros()
|
long[] |
getTotalRangeLatencyHistogramMicros()
|
long |
getTotalRangeLatencyMicros()
|
long[] |
getTotalReadLatencyHistogramMicros()
|
long |
getTotalReadLatencyMicros()
|
long[] |
getTotalWriteLatencyHistogramMicros()
|
long |
getTotalWriteLatencyMicros()
|
long |
getWriteOperations()
|
static boolean |
isHintedHandoffEnabled()
|
static void |
mutate(java.util.List<RowMutation> mutations,
ConsistencyLevel consistency_level)
Use this method to have these RowMutations applied across all replicas. |
static java.util.List<Row> |
readProtocol(java.util.List<ReadCommand> commands,
ConsistencyLevel consistency_level)
Performs the actual reading of a row out of the StorageService, fetching a specific set of column names from a given column family. |
static java.util.List<Row> |
scan(java.lang.String keyspace,
java.lang.String column_family,
IndexClause index_clause,
SlicePredicate column_predicate,
ConsistencyLevel consistency_level)
|
void |
setHintedHandoffEnabled(boolean b)
|
static void |
truncateBlocking(java.lang.String keyspace,
java.lang.String cfname)
Performs the truncate operatoin, which effectively deletes all data from the column family cfname |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void mutate(java.util.List<RowMutation> mutations, ConsistencyLevel consistency_level) throws UnavailableException, java.util.concurrent.TimeoutException
mutations
- the mutations to be applied across the replicasconsistency_level
- the consistency level for the operation
UnavailableException
java.util.concurrent.TimeoutException
public static java.util.List<Row> readProtocol(java.util.List<ReadCommand> commands, ConsistencyLevel consistency_level) throws java.io.IOException, UnavailableException, java.util.concurrent.TimeoutException, InvalidRequestException
java.io.IOException
UnavailableException
java.util.concurrent.TimeoutException
InvalidRequestException
public static java.util.List<Row> getRangeSlice(RangeSliceCommand command, ConsistencyLevel consistency_level) throws java.io.IOException, UnavailableException, java.util.concurrent.TimeoutException
java.io.IOException
UnavailableException
java.util.concurrent.TimeoutException
public static java.util.Map<java.lang.String,java.util.List<java.lang.String>> describeSchemaVersions()
public long getReadOperations()
getReadOperations
in interface StorageProxyMBean
public long getTotalReadLatencyMicros()
getTotalReadLatencyMicros
in interface StorageProxyMBean
public double getRecentReadLatencyMicros()
getRecentReadLatencyMicros
in interface StorageProxyMBean
public long[] getTotalReadLatencyHistogramMicros()
getTotalReadLatencyHistogramMicros
in interface StorageProxyMBean
public long[] getRecentReadLatencyHistogramMicros()
getRecentReadLatencyHistogramMicros
in interface StorageProxyMBean
public long getRangeOperations()
getRangeOperations
in interface StorageProxyMBean
public long getTotalRangeLatencyMicros()
getTotalRangeLatencyMicros
in interface StorageProxyMBean
public double getRecentRangeLatencyMicros()
getRecentRangeLatencyMicros
in interface StorageProxyMBean
public long[] getTotalRangeLatencyHistogramMicros()
getTotalRangeLatencyHistogramMicros
in interface StorageProxyMBean
public long[] getRecentRangeLatencyHistogramMicros()
getRecentRangeLatencyHistogramMicros
in interface StorageProxyMBean
public long getWriteOperations()
getWriteOperations
in interface StorageProxyMBean
public long getTotalWriteLatencyMicros()
getTotalWriteLatencyMicros
in interface StorageProxyMBean
public double getRecentWriteLatencyMicros()
getRecentWriteLatencyMicros
in interface StorageProxyMBean
public long[] getTotalWriteLatencyHistogramMicros()
getTotalWriteLatencyHistogramMicros
in interface StorageProxyMBean
public long[] getRecentWriteLatencyHistogramMicros()
getRecentWriteLatencyHistogramMicros
in interface StorageProxyMBean
public static java.util.List<Row> scan(java.lang.String keyspace, java.lang.String column_family, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws java.io.IOException, java.util.concurrent.TimeoutException, UnavailableException
java.io.IOException
java.util.concurrent.TimeoutException
UnavailableException
public boolean getHintedHandoffEnabled()
getHintedHandoffEnabled
in interface StorageProxyMBean
public void setHintedHandoffEnabled(boolean b)
setHintedHandoffEnabled
in interface StorageProxyMBean
public static boolean isHintedHandoffEnabled()
public static void truncateBlocking(java.lang.String keyspace, java.lang.String cfname) throws UnavailableException, java.util.concurrent.TimeoutException, java.io.IOException
keyspace
- cfname
-
UnavailableException
- If some of the hosts in the ring are down.
java.util.concurrent.TimeoutException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |