|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.extras.client.RemoteDispatcher
RemoteDispatcher
is used to make and recieve requests to a remote
Mule instance. It is used to proxy requests to Mule using the Server Url as the
the transport channel.
Field Summary | |
protected static Log |
logger
logger used by this class |
Method Summary | |
FutureMessageResult |
asyncReceiveRemote(java.lang.String endpoint,
int timeout)
|
protected UMOMessage |
dispatchAction(AdminEvent action,
boolean synchronous,
int timeout)
|
void |
dispatchRemote(java.lang.String endpoint,
java.lang.Object payload,
java.util.Map messageProperties)
|
void |
dispatchToRemoteComponent(java.lang.String component,
java.lang.Object payload,
java.util.Map messageProperties)
Dispatcher an event asynchronously to a components on a remote Mule instance. |
void |
dispose()
A lifecycle method where implementor should fee up any resources If an exception is thrown it should just be logged and processing should continue. |
protected UMOMessage |
doToRemote(java.lang.String endpoint,
java.lang.Object payload,
java.util.Map messageProperties,
boolean synchronous)
|
protected UMOMessage |
doToRemoteComponent(java.lang.String component,
java.lang.Object payload,
java.util.Map messageProperties,
boolean synchronous)
|
UMOMessage |
receiveRemote(java.lang.String endpoint,
int timeout)
|
FutureMessageResult |
sendAsyncRemote(java.lang.String endpoint,
java.lang.Object payload,
java.util.Map messageProperties)
|
FutureMessageResult |
sendAsyncToRemoteComponent(java.lang.String component,
java.lang.String transformers,
java.lang.Object payload,
java.util.Map messageProperties)
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. |
UMOMessage |
sendRemote(java.lang.String endpoint,
java.lang.Object payload,
java.util.Map messageProperties)
|
UMOMessage |
sendToRemoteComponent(java.lang.String component,
java.lang.Object payload,
java.util.Map messageProperties)
sends an event synchronously to a components on a remote Mule instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static transient Log logger
Method Detail |
public void dispatchToRemoteComponent(java.lang.String component, java.lang.Object payload, java.util.Map messageProperties) throws UMOException
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 null
UMOException
- if the dispatch fails or the components or transfromers cannot be foundpublic UMOMessage sendToRemoteComponent(java.lang.String component, java.lang.Object payload, java.util.Map messageProperties) throws UMOException
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 null
UMOException
- if the dispatch fails or the components or transfromers cannot be foundpublic FutureMessageResult sendAsyncToRemoteComponent(java.lang.String component, java.lang.String transformers, java.lang.Object payload, java.util.Map messageProperties) throws UMOException
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 null
UMOException
- if the dispatch fails or the components or transfromers cannot be foundpublic UMOMessage sendRemote(java.lang.String endpoint, java.lang.Object payload, java.util.Map messageProperties) throws UMOException
UMOException
public void dispatchRemote(java.lang.String endpoint, java.lang.Object payload, java.util.Map messageProperties) throws UMOException
UMOException
public FutureMessageResult sendAsyncRemote(java.lang.String endpoint, java.lang.Object payload, java.util.Map messageProperties) throws UMOException
UMOException
public UMOMessage receiveRemote(java.lang.String endpoint, int timeout) throws UMOException
UMOException
public FutureMessageResult asyncReceiveRemote(java.lang.String endpoint, int timeout) throws UMOException
UMOException
protected UMOMessage doToRemoteComponent(java.lang.String component, java.lang.Object payload, java.util.Map messageProperties, boolean synchronous) throws UMOException
UMOException
protected UMOMessage doToRemote(java.lang.String endpoint, java.lang.Object payload, java.util.Map messageProperties, boolean synchronous) throws UMOException
UMOException
protected UMOMessage dispatchAction(AdminEvent action, boolean synchronous, int timeout) throws UMOException
UMOException
public void dispose()
Disposable
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |