@Deprecated public class RemoteDispatcher extends Object implements Disposable
RemoteDispatcher is used to make and receive requests to a remote
Mule instance. It is used to proxy requests to Mule using the Server URL as the
transport channel.
Deprecated as of 3.6.0| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger
Deprecated.
logger used by this class
|
PHASE_NAME| Modifier | Constructor and Description |
|---|---|
protected |
RemoteDispatcher(String endpoint,
Credentials credentials,
MuleContext muleContext)
Deprecated.
|
protected |
RemoteDispatcher(String endpoint,
MuleContext muleContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
FutureMessageResult |
asyncReceiveRemote(String endpoint,
int timeout)
Deprecated.
|
protected MuleMessage |
dispatchAction(RemoteDispatcherNotification action,
boolean synchronous,
int timeout)
Deprecated.
|
void |
dispatchRemote(String endpoint,
Object payload,
Map messageProperties)
Deprecated.
|
void |
dispatchToRemoteComponent(String component,
Object payload,
Map messageProperties)
Deprecated.
Dispatcher an event asynchronously to a components on a remote Mule instance.
|
void |
dispose()
Deprecated.
|
protected MuleMessage |
doToRemote(String endpoint,
Object payload,
Map messageProperties,
boolean synchronous,
int timeout)
Deprecated.
|
protected MuleMessage |
doToRemoteComponent(String component,
Object payload,
Map messageProperties,
boolean synchronous)
Deprecated.
|
WireFormat |
getWireFormat()
Deprecated.
|
MuleMessage |
receiveRemote(String endpoint,
int timeout)
Deprecated.
|
protected WireFormat |
requestWireFormat()
Deprecated.
|
FutureMessageResult |
sendAsyncRemote(String endpoint,
Object payload,
Map messageProperties)
Deprecated.
|
FutureMessageResult |
sendAsyncToRemoteComponent(String component,
String transformers,
Object payload,
Map messageProperties)
Deprecated.
sends an event to a components on a remote Mule instance, while making the
result of the event trigger available as a Future result that can be accessed
later by client code.
|
MuleMessage |
sendRemote(String endpoint,
Object payload,
Map messageProperties)
Deprecated.
|
MuleMessage |
sendRemote(String endpoint,
Object payload,
Map messageProperties,
int timeout)
Deprecated.
|
MuleMessage |
sendToRemoteComponent(String component,
Object payload,
Map messageProperties)
Deprecated.
sends an event synchronously to a components on a remote Mule instance.
|
protected void |
setCredentials(MuleMessage message)
Deprecated.
|
protected void |
setExecutor(Executor e)
Deprecated.
|
void |
setWireFormat(WireFormat wireFormat)
Deprecated.
|
protected void |
updateContext(MuleMessage message,
ImmutableEndpoint endpoint,
boolean synchronous)
Deprecated.
|
protected static final org.apache.commons.logging.Log logger
protected RemoteDispatcher(String endpoint, Credentials credentials, MuleContext muleContext) throws MuleException
MuleExceptionprotected RemoteDispatcher(String endpoint, MuleContext muleContext) throws MuleException
MuleExceptionprotected WireFormat requestWireFormat() throws MuleException
MuleExceptionprotected void setExecutor(Executor e)
public void dispatchToRemoteComponent(String component, Object payload, Map messageProperties) throws MuleException
component - the name of the Mule components to dispatch topayload - the object that is the payload of the eventmessageProperties - any properties to be associated with the payload. as
nullMuleException - if the dispatch fails or the components or
transfromers cannot be foundpublic MuleMessage sendToRemoteComponent(String component, Object payload, Map messageProperties) throws MuleException
component - the name of the Mule components to send topayload - the object that is the payload of the eventmessageProperties - any properties to be associated with the payload. as
nullMuleException - if the dispatch fails or the components or
transfromers cannot be foundpublic FutureMessageResult sendAsyncToRemoteComponent(String component, String transformers, Object payload, Map messageProperties) throws MuleException
component - the name of the Mule components to send totransformers - a comma separated list of transformers to apply to the
result messagepayload - the object that is the payload of the eventmessageProperties - any properties to be associated with the payload. as
nullMuleException - if the dispatch fails or the components or
transfromers cannot be foundpublic MuleMessage sendRemote(String endpoint, Object payload, Map messageProperties, int timeout) throws MuleException
MuleExceptionpublic MuleMessage sendRemote(String endpoint, Object payload, Map messageProperties) throws MuleException
MuleExceptionpublic void dispatchRemote(String endpoint, Object payload, Map messageProperties) throws MuleException
MuleExceptionpublic FutureMessageResult sendAsyncRemote(String endpoint, Object payload, Map messageProperties) throws MuleException
MuleExceptionpublic MuleMessage receiveRemote(String endpoint, int timeout) throws MuleException
MuleExceptionpublic FutureMessageResult asyncReceiveRemote(String endpoint, int timeout) throws MuleException
MuleExceptionprotected MuleMessage doToRemoteComponent(String component, Object payload, Map messageProperties, boolean synchronous) throws MuleException
MuleExceptionprotected MuleMessage doToRemote(String endpoint, Object payload, Map messageProperties, boolean synchronous, int timeout) throws MuleException
MuleExceptionprotected MuleMessage dispatchAction(RemoteDispatcherNotification action, boolean synchronous, int timeout) throws MuleException
MuleExceptionpublic void dispose()
dispose in interface Disposableprotected void setCredentials(MuleMessage message)
public WireFormat getWireFormat()
public void setWireFormat(WireFormat wireFormat)
protected void updateContext(MuleMessage message, ImmutableEndpoint endpoint, boolean synchronous) throws MuleException
MuleExceptionCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.