com.equilibrium.util.api
Class MGBatchesExecutingResponse

java.lang.Object
  extended by com.equilibrium.util.api.MGResponse
      extended by com.equilibrium.util.api.MGBatchesExecutingResponse

public class MGBatchesExecutingResponse
extends MGResponse

MediaGenerator response indicating the batch jobs currently executing on the server and those jobs that have completed execution.

The batchForget method of MGConnection can be used to deal with completed batches.


Method Summary
 int[] getBatches()
          Return the array of batch ids.
 int[] getCompletedBatches()
          Return the array of completed batch ids.
 
Methods inherited from class com.equilibrium.util.api.MGResponse
discard, getContentKey, getContentLength, getContentMimeType, getDoubleParam, getHttpHeader, getHttpHeaders, getIntArrayParam, getIntParam, getLongParam, getParam, getParameters, getResponsePath, getStatusCode, getTextResponse, hasContent, readContent, streamResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBatches

public int[] getBatches()
Return the array of batch ids. If there are no batches, a zero-length array is returned.

Returns:
an array of batch ids for the batches currently in progress.

getCompletedBatches

public int[] getCompletedBatches()
Return the array of completed batch ids. If there are no batches, a zero-length array is returned.

Returns:
an array of batch ids for the batches that have completed