GRBBatch.writeJSONSolution()

void writeJSONSolution ( String filename )

This method returns the stored solution of a completed batch request from a Cluster Manager. The solution is returned in a gzip-compressed JSON file. The file name you provide must end with a .json.gz extension. The JSON format is described in the JSON solution format section. Note that for this call to succeed, the status of the batch request must be COMPLETED. Please refer to the Batch Status Codes section for further details.

Arguments:

filename: Name of file where the solution should be stored (in JSON format).

Example usage:

          // save solution into a file
          batch.writeJSONSolution("batch-sol.json.gz");