@Override public String getMainContent(VoidResponse voidResponse) { StringBuilder builder = new StringBuilder(); builder.append("<b>MESSAGES:</b>").append(BR); List<String> messages = voidResponse.getMessages(); if (messages != null) { for (String msg : messages) { if (msg != null) builder.append(msg).append(BR); } } builder.append("<b>EXCEPTIONS:</b>").append(BR); List<QueryExceptionType> exceptions = voidResponse.getExceptions(); if (exceptions != null) { for (QueryExceptionType exception : exceptions) { if (exception != null) builder.append(exception).append(", ").append(QueryExceptionType.getSchema()).append(BR); } } return builder.toString(); } }
if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; case 6:
if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; default:
if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; default:
if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; case 4:
if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; case 6:
if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; case 6:
for (QueryExceptionType exception : exceptions) { if (exception != null) output.writeObject(5, exception, QueryExceptionType.getSchema(), true);
if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; case 6:
if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; default:
public void writeTo(Output output, QueryMetricListResponse message) throws IOException { output.writeUInt64(1, message.getOperationTimeMS(), false); List<String> messages = message.getMessages(); if (messages != null) { for (String msg : messages) { if (msg != null) output.writeString(2, msg, true); } } List<QueryExceptionType> exceptions = message.getExceptions(); if (exceptions != null) { for (QueryExceptionType exception : exceptions) { if (exception != null) output.writeObject(3, exception, QueryExceptionType.getSchema(), true); } } if (message.result != null) { for (QueryMetric result : message.result) { if (result != null) output.writeObject(4, result, QueryMetric.getSchema(), true); } } output.writeInt32(5, message.numResults, false); }
public void writeTo(Output output, FileResponseList message) throws IOException { if (message.getFiles() != null) { for (FileDetails file : message.getFiles()) { if (null != file) { output.writeObject(1, file, FileDetails.getSchema(), true); } } } output.writeUInt64(2, message.getOperationTimeMS(), false); List<String> messages = message.getMessages(); if (messages != null) { for (String msg : messages) { if (msg != null) output.writeString(3, msg, true); } } List<QueryExceptionType> exceptions = message.getExceptions(); if (exceptions != null) { for (QueryExceptionType exception : exceptions) { if (exception != null) output.writeObject(4, exception, QueryExceptionType.getSchema(), true); } } }
public void writeTo(Output output, MapReduceInfoResponseList message) throws IOException { if (message.getResults() != null) { for (MapReduceInfoResponse response : message.getResults()) { if (null != response) { output.writeObject(1, response, MapReduceInfoResponse.getSchema(), true); } } } output.writeUInt64(2, message.getOperationTimeMS(), false); List<String> messages = message.getMessages(); if (messages != null) { for (String msg : messages) { if (msg != null) output.writeString(3, msg, true); } } List<QueryExceptionType> exceptions = message.getExceptions(); if (exceptions != null) { for (QueryExceptionType exception : exceptions) { if (exception != null) output.writeObject(4, exception, QueryExceptionType.getSchema(), true); } } }
for (QueryExceptionType exception : exceptions) { if (exception != null) output.writeObject(5, exception, QueryExceptionType.getSchema(), true);
for (QueryExceptionType exception : exceptions) { if (exception != null) output.writeObject(5, exception, QueryExceptionType.getSchema(), true);
for (QueryExceptionType exception : exceptions) { if (exception != null) output.writeObject(5, exception, QueryExceptionType.getSchema(), true);
for (QueryExceptionType exception : exceptions) { if (exception != null) output.writeObject(9, exception, QueryExceptionType.getSchema(), true);