Package routines.system.api

Examples of routines.system.api.ESBEndpointInfo


    });

    String jobName = job.getClass().getSimpleName();

    // get provider end point information
    ESBEndpointInfo endpoint = job.getEndpoint();
    if (null == endpoint) {
      System.out.println("Launcher: ESB job [" + jobName + "] is NOT provider job");
      // job contains only consumer components
      // i.e. don't expose itself as web service provider
      // start job immediately
      job.runJobInTOS(new String[0]);
    } else {
      System.out.println("Launcher: ESB job [" + jobName + "] is provider job");
      System.out.println("ESB [provider]: provider endpoint info - key = " + endpoint.getEndpointKey());
      System.out.println("ESB [provider]: provider endpoint info - uri = " + endpoint.getEndpointUri());
      System.out.println("ESB [provider]: provider endpoint info - properties = " + endpoint.getEndpointProperties());

      // init provider communication part - set provider callback
      job.setProviderCallback(new ESBProviderCallback() {
        // all below is TestProviderJob specific implementation
        int count = 0;
View Full Code Here


    private JobLauncherImpl jobLauncher;

    @Before
    public void setUp() {
        ExecutorService execService = createNiceMock(ExecutorService.class);
        ESBEndpointInfo endpointInfo = createNiceMock(ESBEndpointInfo.class);
        job = createNiceMock(TalendESBJob.class);
        expect(job.getEndpoint()).andStubReturn(endpointInfo);
        replay(job, execService);
       
        jobLauncher = new JobLauncherImpl();
View Full Code Here

        verifyAll();
    }

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

        replayAll();
View Full Code Here

TOP

Related Classes of routines.system.api.ESBEndpointInfo

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.