Package com.abiquo.server.core.task

Examples of com.abiquo.server.core.task.TaskDto


   }

   private static class MockAsyncTask extends VirtualMachineTask {
      @SuppressWarnings("unchecked")
      public MockAsyncTask() {
         super(EasyMock.createMock(ApiContext.class), new TaskDto());
      }
View Full Code Here


   protected AsyncTask<?, ?> getTask(final AcceptedRequestDto<String> acceptedRequest) {
      RESTLink taskLink = acceptedRequest.getStatusLink();
      checkNotNull(taskLink, ValidationErrors.MISSING_REQUIRED_LINK + AsyncTask.class);

      // This will return null on untrackable tasks
      TaskDto dto = context.getApi().getTaskApi().getTask(taskLink);
      return newTask(context, dto);
   }
View Full Code Here

   protected AsyncTask<?, ?>[] getTasks(final AcceptedRequestDto<String> acceptedRequest) {
      List<AsyncTask<?, ?>> tasks = Lists.newArrayList();

      for (RESTLink link : acceptedRequest.getLinks()) {
         // This will return null on untrackable tasks
         TaskDto dto = context.getApi().getTaskApi().getTask(link);
         if (dto != null) {
            tasks.add(newTask(context, dto));
         }
      }
View Full Code Here

   }

   private static class MockAsyncTask extends VirtualMachineTask {
      @SuppressWarnings("unchecked")
      public MockAsyncTask() {
         super(EasyMock.createMock(ApiContext.class), new TaskDto());
      }
View Full Code Here

   protected AsyncTask<?, ?> getTask(final AcceptedRequestDto<String> acceptedRequest) {
      RESTLink taskLink = acceptedRequest.getStatusLink();
      checkNotNull(taskLink, ValidationErrors.MISSING_REQUIRED_LINK + AsyncTask.class);

      // This will return null on untrackable tasks
      TaskDto dto = context.getApi().getTaskApi().getTask(taskLink);
      return newTask(context, dto);
   }
View Full Code Here

   protected AsyncTask<?, ?>[] getTasks(final AcceptedRequestDto<String> acceptedRequest) {
      List<AsyncTask<?, ?>> tasks = Lists.newArrayList();

      for (RESTLink link : acceptedRequest.getLinks()) {
         // This will return null on untrackable tasks
         TaskDto dto = context.getApi().getTaskApi().getTask(link);
         if (dto != null) {
            tasks.add(newTask(context, dto));
         }
      }
View Full Code Here

   protected AsyncTask getTask(final AcceptedRequestDto<String> acceptedRequest) {
      RESTLink taskLink = acceptedRequest.getStatusLink();
      checkNotNull(taskLink, ValidationErrors.MISSING_REQUIRED_LINK + AsyncTask.class);

      // This will return null on untrackable tasks
      TaskDto task = context.getApi().getTaskApi().getTask(taskLink);
      return wrap(context, AsyncTask.class, task);
   }
View Full Code Here

   protected AsyncTask[] getTasks(final AcceptedRequestDto<String> acceptedRequest) {
      List<AsyncTask> tasks = Lists.newArrayList();

      for (RESTLink link : acceptedRequest.getLinks()) {
         // This will return null on untrackable tasks
         TaskDto task = context.getApi().getTaskApi().getTask(link);
         if (task != null) {
            tasks.add(wrap(context, AsyncTask.class, task));
         }
      }
View Full Code Here

   }

   private static class MockAsyncTask extends AsyncTask {
      @SuppressWarnings("unchecked")
      public MockAsyncTask() {
         super(EasyMock.createMock(ApiContext.class), new TaskDto());
      }
View Full Code Here

TOP

Related Classes of com.abiquo.server.core.task.TaskDto

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.