Package org.apache.falcon.resource.InstancesResult

Examples of org.apache.falcon.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


    public InstancesResult getJobDetails(String cluster, String jobId)
        throws FalconException {

        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().name().equals(Status.RUNNING.name())) {
                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 = "logProviderTest";
        instance.logFile = "http://localhost:41000/oozie/wflog";
    }
View Full Code Here

    }

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

                            continue;
                        }

                        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);
                        }
                        runInstances.add(instance);
View Full Code Here

    }

    @Override
    public InstancesResult getJobDetails(String cluster, String jobId) throws FalconException {
        Instance[] instances = new Instance[1];
        Instance instance = new Instance();
        try {
            WorkflowJob jobInfo = OozieClientFactory.get(cluster).getJobInfo(jobId);
            instance.startTime = jobInfo.getStartTime();
            if (jobInfo.getStatus().name().equals(Status.RUNNING.name())) {
                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 = "logProviderTest";
        instance.logFile = "http://localhost:41000/oozie/wflog";
    }
View Full Code Here

    }

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

                        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

    public InstancesResult getJobDetails(String cluster, String jobId)
        throws FalconException {

        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().name().equals(Status.RUNNING.name())) {
                instance.endTime = new Date();
View Full Code Here

TOP

Related Classes of org.apache.falcon.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.