org.apache.cassandra.service
Class ClientState

java.lang.Object
  extended by org.apache.cassandra.service.ClientState

public class ClientState
extends java.lang.Object

A container for per-client, thread-local state that Avro/Thrift threads must hold. TODO: Kill thrift exceptions


Constructor Summary
ClientState()
           
 
Method Summary
 java.lang.String getKeyspace()
           
 java.lang.String getSchedulingValue()
           
 void hasKeyspaceAccess(Permission perm)
          Confirms that the client thread has the given Permission in the context of the current Keyspace.
 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 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

ClientState

public ClientState()
Method Detail

getKeyspace

public java.lang.String getKeyspace()

setKeyspace

public void setKeyspace(java.lang.String ks)

getSchedulingValue

public java.lang.String getSchedulingValue()

login

public void login(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials)
           throws AuthenticationException
Attempts to login this client with the given credentials map.

Throws:
AuthenticationException

logout

public void logout()

hasKeyspaceAccess

public void hasKeyspaceAccess(Permission perm)
                       throws InvalidRequestException
Confirms that the client thread has the given Permission in the context of the current Keyspace.

Throws:
InvalidRequestException


Copyright © 2010 The Apache Software Foundation