|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractConnector
org.mule.transport.vm.VMConnector
public class VMConnector
VMConnector A simple endpoint wrapper to allow a Mule service to
| Field Summary | |
|---|---|
static String |
VM
|
| Fields inherited from class org.mule.transport.AbstractConnector |
|---|
connected, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, exceptionListener, initialised, initialStateStopped, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect |
| Fields inherited from interface org.mule.api.transport.Connector |
|---|
INT_VALUE_NOT_SET |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Startable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Stoppable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
VMConnector()
|
|
| Method Summary | |
|---|---|
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 |
isResponseEnabled()
|
void |
setQueueProfile(QueueProfile queueProfile)
|
void |
setQueueTimeout(int queueTimeout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String VM
| Constructor Detail |
|---|
public VMConnector()
| Method Detail |
|---|
protected void doInitialise()
throws InitialisationException
doInitialise in class AbstractConnectorInitialisationExceptionprotected void doDispose()
AbstractConnector
doDispose in class AbstractConnector
protected void doConnect()
throws Exception
AbstractConnector
doConnect in class AbstractConnectorException
protected void doDisconnect()
throws Exception
AbstractConnector
doDisconnect in class AbstractConnectorException
protected void doStart()
throws MuleException
AbstractConnector
doStart in class AbstractConnectorMuleException - if the method fails
protected void doStop()
throws MuleException
AbstractConnector
doStop in class AbstractConnectorMuleException - if the method fails
public MessageReceiver createReceiver(Service service,
InboundEndpoint endpoint)
throws Exception
AbstractConnector
createReceiver in class AbstractConnectorservice - the service that will receive events from this receiver,
the listenerendpoint - the endpoint that defies this inbound communication
TransportServiceDescriptor
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 thrown
public MessageAdapter getMessageAdapter(Object message)
throws MuleException
AbstractConnectorMessageAdapter for the endpoint for the given message
(data)
getMessageAdapter in interface ConnectorgetMessageAdapter in class AbstractConnectormessage - the data with which to initialise the
MessageAdapter
MessageAdapter for the endpoint
MessageTypeNotSupportedException - if the message parameter is not supported
MuleException - if there is a problem creating the AdapterMessageAdapterpublic String getProtocol()
public QueueProfile getQueueProfile()
public void setQueueProfile(QueueProfile queueProfile)
protected MessageReceiver getReceiverByEndpoint(EndpointURI endpointUri)
throws EndpointException
EndpointExceptionpublic boolean isResponseEnabled()
isResponseEnabled in interface ConnectorisResponseEnabled in class AbstractConnectorpublic int getQueueTimeout()
public void setQueueTimeout(int queueTimeout)
public QueueManager getQueueManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||