|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.service.ClientState
public class ClientState
A container for per-client, thread-local state that Avro/Thrift threads must hold. TODO: Kill thrift exceptions
| Field Summary | |
|---|---|
static SemanticVersion |
DEFAULT_CQL_VERSION
|
| Constructor Summary | |
|---|---|
ClientState()
Construct a new, empty ClientState: can be reused after logout() or reset(). |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.Integer,CQLStatement> |
getCQL3Prepared()
|
static SemanticVersion[] |
getCQLSupportedVersion()
|
SemanticVersion |
getCQLVersion()
|
java.lang.String |
getKeyspace()
|
java.util.Map<java.lang.Integer,CQLStatement> |
getPrepared()
|
java.lang.String |
getRawKeyspace()
|
java.lang.String |
getSchedulingValue()
|
long |
getTimestamp()
This clock guarantees that updates from a given client will be ordered in the sequence seen, even if multiple updates happen in the same millisecond. |
void |
hasColumnFamilyAccess(java.lang.String columnFamily,
Permission perm)
Confirms that the client thread has the given Permission in the context of the given ColumnFamily and the current keyspace. |
void |
hasColumnFamilyAccess(java.lang.String keyspace,
java.lang.String columnFamily,
Permission perm)
|
void |
hasColumnFamilySchemaAccess(Permission perm)
|
void |
hasColumnFamilySchemaAccess(java.lang.String keyspace,
Permission perm)
Confirms that the client thread has the given Permission for the ColumnFamily list of the provided keyspace. |
void |
hasKeyspaceSchemaAccess(Permission perm)
Confirms that the client thread has the given Permission for the Keyspace list. |
void |
login(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials)
Attempts to login this client with the given credentials map. |
void |
logout()
|
void |
reset()
|
void |
setCQLVersion(java.lang.String str)
|
void |
setKeyspace(java.lang.String ks)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SemanticVersion DEFAULT_CQL_VERSION
| Constructor Detail |
|---|
public ClientState()
| Method Detail |
|---|
public java.util.Map<java.lang.Integer,CQLStatement> getPrepared()
public java.util.Map<java.lang.Integer,CQLStatement> getCQL3Prepared()
public java.lang.String getRawKeyspace()
public java.lang.String getKeyspace()
throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestException
public void setKeyspace(java.lang.String ks)
throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestExceptionpublic java.lang.String getSchedulingValue()
public void login(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials)
throws org.apache.cassandra.thrift.AuthenticationException
org.apache.cassandra.thrift.AuthenticationExceptionpublic void logout()
public void reset()
public void hasKeyspaceSchemaAccess(Permission perm)
throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestException
public void hasColumnFamilySchemaAccess(Permission perm)
throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestException
public void hasColumnFamilySchemaAccess(java.lang.String keyspace,
Permission perm)
throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestException
public void hasColumnFamilyAccess(java.lang.String columnFamily,
Permission perm)
throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestException
public void hasColumnFamilyAccess(java.lang.String keyspace,
java.lang.String columnFamily,
Permission perm)
throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestExceptionpublic long getTimestamp()
public void setCQLVersion(java.lang.String str)
throws org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.InvalidRequestExceptionpublic SemanticVersion getCQLVersion()
public static SemanticVersion[] getCQLSupportedVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||