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;
}
Aggregations