git-svn-id: http://talendforge.org/svn/tos/trunk@73207 f6f1c999-d317-4740-80b0-e6d1abc6f99e
48 lines
1.5 KiB
Java
48 lines
1.5 KiB
Java
/*******************************************************************************
|
|
* Copyright (c) 2011 Talend Inc. - www.talend.com
|
|
* All rights reserved.
|
|
*
|
|
* This program and the accompanying materials are made available
|
|
* under the terms of the Apache License v2.0
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
******************************************************************************/
|
|
package routines.system.api;
|
|
|
|
|
|
/**
|
|
* A JOB interface for Jobs that are using tESB Components
|
|
*/
|
|
public interface TalendESBJob extends TalendJob {
|
|
|
|
/**
|
|
* Returns {@link ESBEndpointInfo} instance
|
|
* that describes the endpoint implemented by given Job.
|
|
*
|
|
* This method should return <code>null</code> if given Job
|
|
* does not have any tESB provider component.
|
|
*
|
|
* @return {@link ESBEndpointInfo} or null if no provider is configured for the Job
|
|
*/
|
|
public ESBEndpointInfo getEndpoint();
|
|
|
|
/**
|
|
* Injecting a {@link ESBEndpointRegistry} to allow
|
|
* tESB Consumer components to lookup and call ESB providers.
|
|
*
|
|
* @param callback
|
|
*/
|
|
public void setEndpointRegistry(ESBEndpointRegistry registry);
|
|
|
|
/**
|
|
* Injecting a {@link ESBProviderCallback} to allow
|
|
* tESB Provider components read requests sent to the
|
|
* {@link Job} and write responses from the {@link Job}
|
|
*
|
|
* @param callback
|
|
*/
|
|
public void setProviderCallback(ESBProviderCallback callback);
|
|
|
|
}
|