Examples of deleteJob()


Examples of com.narirelays.ems.services.TaskScheduleManagementService.deleteJob()

  }
 
  public String deleteJob(){
    TaskScheduleManagementService taskScheduleManagementService = (TaskScheduleManagementService)StorageService.ctx.getBean("taskScheduleManagementService");
    if(taskScheduleManagementService!=null){
      resultInfo = taskScheduleManagementService.deleteJob(request.getParameter("jobid"));
    }
    return SUCCESS;
  }
 
  public String queryScheduledJob(){
View Full Code Here

Examples of com.spotify.helios.client.HeliosClient.deleteJob()

    // Wait for the task to disappear
    awaitTaskGone(client, testHost(), jobId, LONG_WAIT_SECONDS, SECONDS);

    // Verify that the job can be deleted
    assertEquals(JobDeleteResponse.Status.OK, client.deleteJob(jobId).get().getStatus());
  }
}
View Full Code Here

Examples of com.spotify.helios.client.HeliosClient.deleteJob()

    // Deregister agent
    final HostDeregisterResponse deregisterResponse = client.deregisterHost(host).get();
    assertEquals(HostDeregisterResponse.Status.OK, deregisterResponse.getStatus());

    // Verify that it's possible to remove the job
    final JobDeleteResponse deleteResponse = client.deleteJob(jobId).get();
    assertEquals(JobDeleteResponse.Status.OK, deleteResponse.getStatus());
  }
}
View Full Code Here

Examples of com.spotify.helios.client.HeliosClient.deleteJob()

    // Wait for the job to run
    TaskStatus taskStatus;
    taskStatus = awaitJobState(client, testHost(), jobId, RUNNING, LONG_WAIT_SECONDS, SECONDS);
    assertEquals(job, taskStatus.getJob());

    assertEquals(JobDeleteResponse.Status.STILL_IN_USE, client.deleteJob(jobId).get().getStatus());

    // Wait for a while and make sure that the container is still running
    Thread.sleep(5000);
    final HostStatus hostStatus = client.hostStatus(testHost()).get();
    taskStatus = hostStatus.getStatuses().get(jobId);
View Full Code Here

Examples of com.spotify.helios.client.HeliosClient.deleteJob()

    // Wait for the task to disappear
    awaitTaskGone(client, testHost(), jobId, LONG_WAIT_SECONDS, SECONDS);

    // Verify that the job can be deleted
    assertEquals(JobDeleteResponse.Status.OK, client.deleteJob(jobId).get().getStatus());

    // Verify that a nonexistent job returns JOB_NOT_FOUND
    assertEquals(JobDeleteResponse.Status.JOB_NOT_FOUND, client.deleteJob(jobId).get().getStatus());
  }
}
View Full Code Here

Examples of com.spotify.helios.client.HeliosClient.deleteJob()

    // Verify that the job can be deleted
    assertEquals(JobDeleteResponse.Status.OK, client.deleteJob(jobId).get().getStatus());

    // Verify that a nonexistent job returns JOB_NOT_FOUND
    assertEquals(JobDeleteResponse.Status.JOB_NOT_FOUND, client.deleteJob(jobId).get().getStatus());
  }
}
View Full Code Here

Examples of com.spotify.helios.client.HeliosClient.deleteJob()

    for (JobId jobId : jobs.keySet()) {
      if (!jobId.toString().startsWith(testTag)) {
        continue;
      }
      log.info("Deleting job " + jobId);
      deletes.add(c.deleteJob(jobId));
    }
    Futures.allAsList(deletes);
  }

  protected boolean isIntegration() {
View Full Code Here

Examples of com.trendrr.beanstalk.BeanstalkClient.deleteJob()

    BeanstalkClient client = new BeanstalkClient("localhost", 8010, "example");
    log.info("Putting a job");
    client.put(1l, 0, 5000, "this is some data".getBytes());
    BeanstalkJob job = client.reserve(60);
    log.info("GOt job: " + job);
    client.deleteJob(job);
    client.close(); //closes the connection
  }
 
 
  public static void pooledExample()  throws BeanstalkException {
View Full Code Here

Examples of com.trendrr.beanstalk.BeanstalkClient.deleteJob()

   
    log.info("Putting a job");
    client.put(1l, 0, 5000, "this is some data".getBytes());
    BeanstalkJob job = client.reserve(60);
    log.info("GOt job: " + job);
    client.deleteJob(job);
    client.close()//returns the connection to the pool
  }
}
View Full Code Here

Examples of de.bitzeche.video.transcoding.zencoder.IZencoderClient.deleteJob()

  public void deleteTest(ApiVersionProvider provider) {
    ZencoderAPIVersion apiVersion = provider.getApiVersion();
    IZencoderClient client = createClient(apiVersion);
    ZencoderJob job = new ZencoderJob("");
    job.setJobId(jobMap.get(apiVersion));
    client.deleteJob(job);
  }

  abstract class ApiVersionProvider {
    public ZencoderAPIVersion getApiVersion() {
      return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.