slumberdb/slumberdb-service-model/src/main/java/org/boon/slumberdb/service/server/ResponseHandler.java
private void handleResponseFromDataStore(Result result) {

        if (debug) {
            logger.info("ResponseHandler::handleResponseFromDataStore", result);
        }

        if (result instanceof SingleResult) {
            SingleResult singleResult = (SingleResult) result;
            int size = handleSingleResult(singleResult);
            counter(size, singleResult.source());
        }
        else if (result instanceof SearchBatchResult) {
            SearchBatchResult searchBatchResult = (SearchBatchResult) result;
            sendBatchResponse((BatchResult) result);
            int size = searchBatchResult.getResults().size();
            counter(size, searchBatchResult.source());
        }
        else if (result instanceof BatchResult) {
            BatchResult batchResult = (BatchResult) result;
            int size = handleBatchResult(batchResult);
            counter(size, batchResult.source());
        }
        else if (result instanceof ErrorResult) {
            ErrorResult errorResult = (ErrorResult) result;
            int size = handleErrorResult(errorResult);
            counter(size, errorResult.source());
        }
    }
private void handleResponseFromDataStore(Result result) {

        if (debug) {
            logger.info("ResponseHandler::handleResponseFromDataStore", result);
        }

        if (result instanceof SingleResult) {
            SingleResult singleResult = (SingleResult) result;
            int size = handleSingleResult(singleResult);
            counter(size, singleResult.source());
        }
        else if (result instanceof SearchBatchResult) {
            SearchBatchResult searchBatchResult = (SearchBatchResult) result;
            sendBatchResponse((BatchResult) result);
            int size = searchBatchResult.getResults().size();
            counter(size, searchBatchResult.source());
        }
        else if (result instanceof BatchResult) {
            BatchResult batchResult = (BatchResult) result;
            int size = handleBatchResult(batchResult);
            counter(size, batchResult.source());
        }
        else if (result instanceof ErrorResult) {
            ErrorResult errorResult = (ErrorResult) result;
            int size = handleErrorResult(errorResult);
            counter(size, errorResult.source());
        }
    }
private void handleResponseFromDataStore ( Result result ) { if ( debug ) { logger . info ( "ResponseHandler::handleResponseFromDataStore" , result ) ; } if ( result instanceof SingleResult ) { SingleResult singleResult = ( SingleResult ) result ; int size = handleSingleResult ( singleResult ) ; counter ( size , singleResult . source ( ) ) ; } else if ( result instanceof SearchBatchResult ) { SearchBatchResult searchBatchResult = ( SearchBatchResult ) result ; sendBatchResponse ( ( BatchResult ) result ) ; int size = searchBatchResult . getResults ( ) . size ( ) ; counter ( size , searchBatchResult . source ( ) ) ; } else if ( result instanceof BatchResult ) { BatchResult batchResult = ( BatchResult ) result ; int size = handleBatchResult ( batchResult ) ; counter ( size , batchResult . source ( ) ) ; } else if ( result instanceof ErrorResult ) { ErrorResult errorResult = ( ErrorResult ) result ; int size = handleErrorResult ( errorResult ) ; counter ( size , errorResult . source ( ) ) ; } }
Main exit from system.
<p/>
<p/>
If you are debugging something not coming out of the system.
Start here.
Main exit from system . <p / > <p / > If you are debugging something not coming out of the system . Start here .