public void resizeAsync(final String clusterId,final int size,final FutureCallback<Task> responseCallback) throws IOException {
  String path=String.format("%s/%s/resize",getBasePath(),clusterId);
  ClusterResizeOperation op=new ClusterResizeOperation();
  op.setNewSlaveCount(size);
  createObjectAsync(path,serializeObjectAsJson(op),responseCallback);
}

public void resizeAsync ( final String clusterId , final int size , final FutureCallback < Task > responseCallback ) throws IOException { String path = String . format ( "%s/%s/resize" , getBasePath ( ) , clusterId ) ; ClusterResizeOperation op = new ClusterResizeOperation ( ) ; op . setNewSlaveCount ( size ) ; createObjectAsync ( path , serializeObjectAsJson ( op ) , responseCallback ) ; }
resize the specified cluster .
