|
||||||||||
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
Constructor Summary | |
---|---|
ClientState()
Construct a new, empty ClientState: can be reused after logout() or reset(). |
Method Summary | |
---|---|
java.lang.String |
getKeyspace()
|
java.lang.String |
getSchedulingValue()
|
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 |
hasColumnFamilyListAccess(Permission perm)
Confirms that the client thread has the given Permission for the ColumnFamily list of the current keyspace. |
void |
hasKeyspaceListAccess(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 |
setKeyspace(java.lang.String ks)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientState()
Method Detail |
---|
public java.lang.String getKeyspace()
public void setKeyspace(java.lang.String ks)
public java.lang.String getSchedulingValue()
public void login(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials) throws AuthenticationException
AuthenticationException
public void logout()
public void reset()
public void hasKeyspaceListAccess(Permission perm) throws InvalidRequestException
InvalidRequestException
public void hasColumnFamilyListAccess(Permission perm) throws InvalidRequestException
InvalidRequestException
public void hasColumnFamilyAccess(java.lang.String columnFamily, Permission perm) throws InvalidRequestException
InvalidRequestException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |