Package org.apache.ivory.resource.InstancesResult

Examples of org.apache.ivory.resource.InstancesResult.Instance


                        CoordinatorAction action = client.getCoordActionInfo(wf
                                .getParentId());
                        String nominalTimeStr = SchemaHelper
                                .formatDateUTC(action.getNominalTime());
                        Instance instance = new Instance(cluster,
                                nominalTimeStr, WorkflowStatus.RUNNING);
                        instance.startTime = wf.getStartTime();
                        if (entity.getEntityType() == EntityType.FEED) {
                            instance.sourceCluster = getSourceCluster(cluster,
                                    action, entity);
View Full Code Here


    @Override
    public InstancesResult getJobDetails(String cluster, String jobId)
            throws IvoryException {
        OozieClient client = OozieClientFactory.get(cluster);
        Instance[] instances = new Instance[1];
        Instance instance = new Instance();
        try {
            WorkflowJob jobInfo = client.getJobInfo(jobId);
            instance.startTime = jobInfo.getStartTime();
            if (jobInfo.getStatus() == Status.RUNNING) {
                instance.endTime = new Date();
View Full Code Here

    store.publish(EntityType.PROCESS, testProcess);
  }

  @BeforeMethod
  public void setInstance() {
    instance = new Instance();
    instance.status = WorkflowStatus.SUCCEEDED;
    instance.instance = "2010-01-01T01:00Z";
    instance.cluster = "testCluster";
    instance.logFile = "http://localhost:15000/oozie/wflog";
  }
View Full Code Here

  }

  @Test
  public void testLogProviderWithValidRunId() throws IvoryException {
    LogProvider provider = new LogProvider();
    Instance instanceWithLog = provider.populateLogUrls(testProcess,
        instance, "0");
    Assert.assertEquals(
        instance.logFile,
        "http://localhost:50070/data/workflow/staging/ivory/workflows/process/testProcess/logs/job-2010-01-01-01-00/000/oozie.log");
View Full Code Here

TOP

Related Classes of org.apache.ivory.resource.InstancesResult.Instance

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.