Search in sources :

Example 6 with ClientState

use of org.apache.cassandra.service.ClientState in project eiger by wlloyd.

the class CassandraServer method state.

public ClientState state() {
    SocketAddress remoteSocket = SocketSessionManagementService.remoteSocket.get();
    ClientState retval = null;
    if (null != remoteSocket) {
        retval = SocketSessionManagementService.instance.get(remoteSocket);
        if (null == retval) {
            retval = new ClientState();
            SocketSessionManagementService.instance.put(remoteSocket, retval);
        }
    } else {
        retval = clientState.get();
    }
    return retval;
}
Also used : ClientState(org.apache.cassandra.service.ClientState) SocketAddress(java.net.SocketAddress)

Aggregations

ClientState (org.apache.cassandra.service.ClientState)6 ParsedStatement (org.apache.cassandra.cql3.statements.ParsedStatement)3 IOException (java.io.IOException)1 SocketAddress (java.net.SocketAddress)1 ArrayList (java.util.ArrayList)1 ExecutionException (java.util.concurrent.ExecutionException)1 StatementRestrictions (org.apache.cassandra.cql3.restrictions.StatementRestrictions)1 RawSelector (org.apache.cassandra.cql3.selection.RawSelector)1 Selectable (org.apache.cassandra.cql3.selection.Selectable)1 DurationType (org.apache.cassandra.db.marshal.DurationType)1 AlreadyExistsException (org.apache.cassandra.exceptions.AlreadyExistsException)1 ConfigurationException (org.apache.cassandra.exceptions.ConfigurationException)1 InvalidRequestException (org.apache.cassandra.exceptions.InvalidRequestException)1 SyntaxException (org.apache.cassandra.exceptions.SyntaxException)1 ColumnMetadata (org.apache.cassandra.schema.ColumnMetadata)1 TableMetadata (org.apache.cassandra.schema.TableMetadata)1 TableParams (org.apache.cassandra.schema.TableParams)1 ViewMetadata (org.apache.cassandra.schema.ViewMetadata)1 QueryState (org.apache.cassandra.service.QueryState)1 MD5Digest (org.apache.cassandra.utils.MD5Digest)1