Package org.apache.aurora.gen

Examples of org.apache.aurora.gen.QueryRecoveryResult


  @Override
  public Response queryRecovery(TaskQuery query, SessionKey session) {
    Response response = Util.emptyResponse();
    try {
      response.setResponseCode(OK)
          .setResult(Result.queryRecoveryResult(new QueryRecoveryResult()
              .setTasks(IScheduledTask.toBuildersSet(recovery.query(Query.arbitrary(query))))));
    } catch (RecoveryException e) {
      addMessage(response, ERROR, e);
      LOG.log(Level.WARNING, "Failed to query recovery: " + e, e);
    }
View Full Code Here


  }

  @Override
  public Response queryRecovery(TaskQuery query, SessionKey session) {
    try {
      return okResponse(Result.queryRecoveryResult(new QueryRecoveryResult()
              .setTasks(IScheduledTask.toBuildersSet(recovery.query(Query.arbitrary(query))))));
    } catch (RecoveryException e) {
      LOG.log(Level.WARNING, "Failed to query recovery: " + e, e);
      return errorResponse(ERROR, e);
    }
View Full Code Here

TOP

Related Classes of org.apache.aurora.gen.QueryRecoveryResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.