Examples of TalendESBJob


Examples of routines.system.api.TalendESBJob

            registerNewJobinstance(buffer);
        }
    }

    private void registerNewJobinstance(MessageExchangeBuffer buffer) {
        TalendESBJob job = factory.newTalendESBJob();
        job.setEndpointRegistry(registry);
        RuntimeESBProviderCallback callback = new RuntimeESBProviderCallback(buffer, job, name, args);
        job.setProviderCallback(callback);
        execService.execute(callback);   
        instances++;

        LOG.info("Created instance " + instances + " of job " + name + ".");
    }
View Full Code Here

Examples of routines.system.api.TalendESBJob

        verifyAll();       
       
    }
   
    private void mockJobInstanceCreation() {
        TalendESBJob job = createMock(TalendESBJob.class);
        job.setEndpointRegistry(endpointRegistry);
        job.setProviderCallback((RuntimeESBProviderCallback) anyObject());
        expect(jobFactory.newTalendESBJob()).andReturn(job);
        execService.execute(isA(RuntimeESBProviderCallback.class));       
    }
View Full Code Here

Examples of routines.system.api.TalendESBJob

    }

    @Test
    public void esbJobAddedEndpointRegistrySpecifiedForJob() {
        ESBEndpointInfo endpointInfo = createNiceMock(ESBEndpointInfo.class);
        TalendESBJob esbJob = createMock(TalendESBJob.class);
        esbJob.setEndpointRegistry((ESBEndpointRegistry) anyObject());
        expect(esbJob.getEndpoint()).andReturn(endpointInfo);

        replayAll();
       
        jobLauncher.esbJobAdded(esbJob, NAME);
        verifyAll();
View Full Code Here

Examples of routines.system.api.TalendESBJob

        verifyAll();
    }

    @Test
    public void esbConsumerOnlyJobAddedJobStartedImmediatlyAsSimpleJob() {
        TalendESBJob esbJob = createMock(TalendESBJob.class);
        esbJob.setEndpointRegistry((ESBEndpointRegistry) anyObject());
        expect(esbJob.getEndpoint()).andReturn(null);

        expectManagedJobStarting(SimpleJobTask.class);
        replayAll();
       
        jobLauncher.esbJobAdded(esbJob, NAME);
View Full Code Here

Examples of routines.system.api.TalendESBJob

        verifyAll()
    }

    @Test
    public void esbConsumerOnlyJobUnregisters() {
        TalendESBJob esbJob = createMock(TalendESBJob.class);
       
        sr.unregister();
       
        esbJob.setEndpointRegistry((ESBEndpointRegistry) anyObject());
        expect(esbJob.getEndpoint()).andReturn(null).times(2);

        expectManagedJobStarting(SimpleJobTask.class);
        replayAll();
       
        jobLauncher.esbJobAdded(esbJob, NAME);
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.