Search in sources :

Example 1 with SummarySession

use of org.apache.accumulo.tserver.session.SummarySession in project accumulo by apache.

the class ThriftClientHandler method contiuneGetSummaries.

@Override
public TSummaries contiuneGetSummaries(TInfo tinfo, long sessionId) throws NoSuchScanIDException, TException {
    SummarySession session = (SummarySession) server.sessionManager.getSession(sessionId);
    if (session == null) {
        throw new NoSuchScanIDException();
    }
    Future<SummaryCollection> future = session.getFuture();
    try {
        TSummaries tsums = getSummaries(future);
        server.sessionManager.removeSession(sessionId);
        return tsums;
    } catch (TimeoutException e) {
        return handleTimeout(sessionId);
    }
}
Also used : SummarySession(org.apache.accumulo.tserver.session.SummarySession) TSummaries(org.apache.accumulo.core.dataImpl.thrift.TSummaries) SummaryCollection(org.apache.accumulo.core.summary.SummaryCollection) NoSuchScanIDException(org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException) TimeoutException(java.util.concurrent.TimeoutException)

Aggregations

TimeoutException (java.util.concurrent.TimeoutException)1 TSummaries (org.apache.accumulo.core.dataImpl.thrift.TSummaries)1 SummaryCollection (org.apache.accumulo.core.summary.SummaryCollection)1 NoSuchScanIDException (org.apache.accumulo.core.tabletserver.thrift.NoSuchScanIDException)1 SummarySession (org.apache.accumulo.tserver.session.SummarySession)1