|
||||||||||
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,Row> |
doReadProtocol(java.util.Map<java.lang.String,ReadCommand> readMessages)
This is an implementation for the multiget version. |
double |
getRangeLatency()
|
int |
getRangeOperations()
|
double |
getReadLatency()
|
int |
getReadOperations()
|
double |
getWriteLatency()
|
int |
getWriteOperations()
|
static void |
insert(RowMutation rm)
Use this method to have this RowMutation applied across all replicas. |
static void |
insertBlocking(RowMutation rm)
|
static Row |
readProtocol(ReadCommand command,
StorageService.ConsistencyLevel consistencyLevel)
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.Map<java.lang.String,Row> |
readProtocol(java.lang.String[] keys,
ReadCommand readCommand,
StorageService.ConsistencyLevel consistencyLevel)
|
static java.util.Map<java.lang.String,Row> |
strongReadProtocol(java.lang.String[] keys,
ReadCommand readCommand)
This is a multiget version of the above method. |
static java.util.Map<java.lang.String,Row> |
weakReadProtocol(java.lang.String[] keys,
ReadCommand readCommand)
This version is used when results for multiple keys needs to be retrieved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void insert(RowMutation rm)
rm
- the mutation to be applied across the replicaspublic static void insertBlocking(RowMutation rm) throws org.apache.cassandra.service.UnavailableException
org.apache.cassandra.service.UnavailableException
public static java.util.Map<java.lang.String,Row> doReadProtocol(java.util.Map<java.lang.String,ReadCommand> readMessages) throws java.io.IOException, java.util.concurrent.TimeoutException
readMessages
- map of key --> ReadMessage to be sent
java.io.IOException
java.util.concurrent.TimeoutException
public static Row readProtocol(ReadCommand command, StorageService.ConsistencyLevel consistencyLevel) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public static java.util.Map<java.lang.String,Row> readProtocol(java.lang.String[] keys, ReadCommand readCommand, StorageService.ConsistencyLevel consistencyLevel) throws java.lang.Exception
java.lang.Exception
public static java.util.Map<java.lang.String,Row> strongReadProtocol(java.lang.String[] keys, ReadCommand readCommand) throws java.io.IOException, java.util.concurrent.TimeoutException
tablename
- keys
- columnFamily
- start
- count
-
java.io.IOException
java.util.concurrent.TimeoutException
public static java.util.Map<java.lang.String,Row> weakReadProtocol(java.lang.String[] keys, ReadCommand readCommand) throws java.lang.Exception
tablename
- name of the table that needs to be queriedkeys
- keys whose values we are interested incolumnFamily
- name of the "column" we are interested incolumns
- the columns we are interested in
java.lang.Exception
public double getReadLatency()
getReadLatency
in interface StorageProxyMBean
public double getRangeLatency()
getRangeLatency
in interface StorageProxyMBean
public double getWriteLatency()
getWriteLatency
in interface StorageProxyMBean
public int getReadOperations()
getReadOperations
in interface StorageProxyMBean
public int getRangeOperations()
getRangeOperations
in interface StorageProxyMBean
public int getWriteOperations()
getWriteOperations
in interface StorageProxyMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |