public class VMConnector extends AbstractConnector
VMConnector A simple endpoint wrapper to allow a Mule service to
be accessed from an endpoint| Modifier and Type | Field and Description |
|---|---|
static String |
VM |
connected, connectedSemaphore, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnectINT_VALUE_NOT_SETPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
VMConnector() |
| Modifier and Type | Method and Description |
|---|---|
MessageReceiver |
createReceiver(Service service,
InboundEndpoint endpoint)
Create a Message receiver for this connector
|
protected void |
doConnect()
Template method where any connections should be made for the connector
|
protected void |
doDisconnect()
Template method where any connected resources used by the connector should be
disconnected
|
protected void |
doDispose()
Template method to perform any work when destroying the connectoe
|
protected void |
doInitialise() |
protected void |
doStart()
Template method to perform any work when starting the connectoe
|
protected void |
doStop()
Template method to perform any work when stopping the connectoe
|
MessageAdapter |
getMessageAdapter(Object message)
Gets a
MessageAdapter for the endpoint for the given message
(data) |
String |
getProtocol() |
QueueManager |
getQueueManager() |
QueueProfile |
getQueueProfile() |
int |
getQueueTimeout() |
protected MessageReceiver |
getReceiverByEndpoint(EndpointURI endpointUri) |
boolean |
isQueueEvents() |
boolean |
isRemoteSyncEnabled() |
void |
setQueueEvents(boolean queueEvents) |
void |
setQueueProfile(QueueProfile queueProfile) |
void |
setQueueTimeout(int queueTimeout) |
checkDisposed, connect, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeRequesters, disposeWorkManagers, exceptionThrown, fireNotification, getConnectedSemaphore, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMaxRequestersActive, getMuleContext, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isStarted, isSyncEnabled, lookupReceiver, registerListener, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherThreadingProfile, setDynamicNotification, setExceptionListener, setMaxDispatchersActive, setMaxRequestersActive, setMuleContext, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, start, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, workAccepted, workCompleted, workRejected, workStartedpublic static final String VM
protected void doInitialise()
throws InitialisationException
doInitialise in class AbstractConnectorInitialisationExceptionprotected void doDispose()
AbstractConnectordoDispose in class AbstractConnectorprotected void doConnect()
throws Exception
AbstractConnectordoConnect in class AbstractConnectorExceptionprotected void doDisconnect()
throws Exception
AbstractConnectordoDisconnect in class AbstractConnectorExceptionprotected void doStart()
throws MuleException
AbstractConnectordoStart in class AbstractConnectorMuleException - if the method failsprotected void doStop()
throws MuleException
AbstractConnectordoStop in class AbstractConnectorMuleException - if the method failspublic MessageReceiver createReceiver(Service service, InboundEndpoint endpoint) throws Exception
AbstractConnectorcreateReceiver in class AbstractConnectorservice - the service that will receive events from this receiver,
the listenerendpoint - the endpoint that defies this inbound communicationTransportServiceDescriptor
initialised using the service and endpoint.Exception - if there is a problem creating the receiver. This exception
really depends on the underlying transport, thus any exception
could be thrownpublic MessageAdapter getMessageAdapter(Object message) throws MessagingException
AbstractConnectorMessageAdapter for the endpoint for the given message
(data)getMessageAdapter in interface ConnectorgetMessageAdapter in class AbstractConnectormessage - the data with which to initialise the
MessageAdapterMessageAdapter for the endpointMessagingException - if the message parameter is not supportedMessageAdapterpublic String getProtocol()
public boolean isQueueEvents()
public void setQueueEvents(boolean queueEvents)
public QueueProfile getQueueProfile()
public void setQueueProfile(QueueProfile queueProfile)
protected MessageReceiver getReceiverByEndpoint(EndpointURI endpointUri) throws EndpointException
EndpointExceptionpublic boolean isRemoteSyncEnabled()
isRemoteSyncEnabled in interface ConnectorisRemoteSyncEnabled in class AbstractConnectorpublic int getQueueTimeout()
public void setQueueTimeout(int queueTimeout)
public QueueManager getQueueManager()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.