gov.ornl.csed.csiir.idr.kdd.dataservice.client
Interface RecordCountConsumer


public interface RecordCountConsumer

The RecordCountConsumer interface needs to be implemented by a class wishing to receive record count information asynchronously.


Method Summary
 void done(java.lang.String dataSetId, java.lang.String queryId)
          Called when the record count response has be received.
 void exception(java.lang.String dataSetId, java.lang.String queryId, java.lang.Exception exception)
          Called if an exception occurs during processing of the request.
 void httpResponseCode(java.lang.String dataSetId, java.lang.String queryId, int code)
          Called with the HTTP response code that results from a record count query.
 void recordCount(java.lang.String dataSetId, java.lang.String queryId, RecordCountResponse recordCount)
          Called for the record count response.
 

Method Detail

httpResponseCode

void httpResponseCode(java.lang.String dataSetId,
                      java.lang.String queryId,
                      int code)
Called with the HTTP response code that results from a record count query.

Parameters:
dataSetId - the data set ID
queryId - the unique query ID
code - the HTTP response code

recordCount

void recordCount(java.lang.String dataSetId,
                 java.lang.String queryId,
                 RecordCountResponse recordCount)
Called for the record count response.

Parameters:
dataSetId - the data set ID
queryId - the unique query ID
recordCount - the record count for the query

exception

void exception(java.lang.String dataSetId,
               java.lang.String queryId,
               java.lang.Exception exception)
Called if an exception occurs during processing of the request.

Parameters:
exception - the exception that occurred

done

void done(java.lang.String dataSetId,
          java.lang.String queryId)
Called when the record count response has be received.

Parameters:
dataSetId - the data set ID
queryId - the unique query ID