/** * Prepare Result from JSON. Type of result is expected to there in the JSON * as 'contentType' which should be one of {@link ResultData#TYPE_TABULAR}, * {@link ResultData#TYPE_COMPOSITE}, {@link ResultData#TYPE_INFO}, * {@link ResultData#TYPE_ERROR}, {@link ResultData#TYPE_OBJECT}. * * @param gfJsonObject * GemFire JSON Object to use to prepare Result * @return Result from the given GemFire JSON Object */ public static Result fromJson(GfJsonObject gfJsonObject) { return fromJson(gfJsonObject.toString()); }
/** * Prepare Result from JSON. Type of result is expected to there in the JSON * as 'contentType' which should be one of {@link ResultData#TYPE_TABULAR}, * {@link ResultData#TYPE_COMPOSITE}, {@link ResultData#TYPE_INFO}, * {@link ResultData#TYPE_ERROR}, {@link ResultData#TYPE_OBJECT}. * * @param gfJsonObject * GemFire JSON Object to use to prepare Result * @return Result from the given GemFire JSON Object */ public static Result fromJson(GfJsonObject gfJsonObject) { return fromJson(gfJsonObject.toString()); }
return ResultBuilder.fromJson(json); } else { throw new IllegalArgumentException("Command Configuration/Definition error.");
commandRequest.setCustomInput(changeStepName(gfshParseResult.getUserInput(), nextStep.getName())); return ResultBuilder.fromJson((String) shell.getOperationInvoker().processCommand(commandRequest)); } else { throw new IllegalArgumentException("Command Configuration/Definition error.");
LogWrapper.getInstance().info(debugInfo); commandResult = ResultBuilder.fromJson((String) response);
LogWrapper.getInstance().info(debugInfo); commandResult = ResultBuilder.fromJson((String) response);