Examples of jobOperations()


Examples of org.springframework.xd.rest.client.SpringXDOperations.jobOperations()

    try {
      if ("stream".equals(kind)) {
        populate(completions, springXDOperations.streamOperations().list(), criteria, "Streams");
      }
      else if ("job".equals(kind)) {
        populate(completions, springXDOperations.jobOperations().list(), criteria, "Jobs");
      }
      else if ("counter".equals(kind)) {
        populate(completions, springXDOperations.counterOperations().list(), criteria, "Counters");
      }
      else if ("fvc".equals(kind)) {
View Full Code Here

Examples of org.springframework.xd.rest.client.impl.SpringXDTemplate.jobOperations()

        DIRECTORY, DATE_FORMAT, FILE_EXTENSION);

    String fileName = DIRECTORY + File.separatorChar + jobName + '.' + FILE_EXTENSION;

    try {
      template.jobOperations().createJob(jobName, definition, false);
      verifyJobCreated(jobName);
      verifyJobState(jobName, DeploymentUnitStatus.State.undeployed);

      template.jobOperations().deploy(jobName, null);
      verifyJobState(jobName, DeploymentUnitStatus.State.failed);
View Full Code Here

Examples of org.springframework.xd.rest.client.impl.SpringXDTemplate.jobOperations()

    try {
      template.jobOperations().createJob(jobName, definition, false);
      verifyJobCreated(jobName);
      verifyJobState(jobName, DeploymentUnitStatus.State.undeployed);

      template.jobOperations().deploy(jobName, null);
      verifyJobState(jobName, DeploymentUnitStatus.State.failed);

      startContainer();
      Map<Long, String> mapPidUuid = waitForContainers();
      assertEquals(1, mapPidUuid.size());
View Full Code Here

Examples of org.springframework.xd.rest.client.impl.SpringXDTemplate.jobOperations()

      startContainer();
      Map<Long, String> mapPidUuid = waitForContainers();
      assertEquals(1, mapPidUuid.size());

      verifyJobState(jobName, DeploymentUnitStatus.State.deployed);
      template.jobOperations().launchJob(jobName, null);
      assertThat(fileName, fileUpdated(System.currentTimeMillis()));

      shutdownContainer(mapPidUuid.keySet().iterator().next());
      waitForContainers();
      verifyJobState(jobName, DeploymentUnitStatus.State.failed);
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.