public class TestConnector extends AbstractConnector
TestConnector use a mock connector| Modifier and Type | Field and Description |
|---|---|
static String |
TEST |
connecting, createMultipleTransactedReceivers, DEFAULT_CONTEXT_START_TIMEOUT, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, MULE_CONTEXT_START_TIMEOUT_SYSTEM_PROPERTY, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnectINT_VALUE_NOT_SET| Constructor and Description |
|---|
TestConnector(org.mule.runtime.core.api.MuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
MessageReceiver |
createReceiver(org.mule.runtime.core.api.construct.FlowConstruct flowConstuct,
InboundEndpoint endpoint) |
void |
destroyReceiver(MessageReceiver receiver,
InboundEndpoint endpoint) |
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispose() |
protected void |
doInitialise() |
protected void |
doStart() |
protected void |
doStop() |
int |
getConnectCount() |
int |
getDisconnectCount() |
ConfigurableKeyedObjectPool |
getDispatchers() |
int |
getDisposeCount() |
int |
getInitialiseCount() |
org.mule.runtime.core.api.processor.Processor |
getOutboundEndpointMessageProcessor(OutboundEndpoint endpoint) |
String |
getProtocol() |
protected Object |
getReceiverKey(org.mule.runtime.core.api.construct.FlowConstruct flowConstruct,
InboundEndpoint endpoint) |
TransportServiceDescriptor |
getServiceDescriptor()
Open up the access to the service descriptor for testing purposes.
|
String |
getSomeProperty() |
int |
getStartCount() |
int |
getStopCount() |
boolean |
isFailAtStartup() |
void |
setFailAtStartup(boolean failAtStartup) |
void |
setSomeProperty(String someProperty) |
borrowDispatcher, clearDispatchers, clearRequesters, configureDispatcherPool, connect, connectConnectorAndReceivers, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, fireNotification, getCanonicalURI, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getInternalScheduler, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOperationResourceFactory, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getServiceOverrides, getSessionHandler, getSupportedProtocols, getTransactionalResource, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isEnableMessageEvents, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, returnDispatcher, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupRequestReturn, setValidateConnections, shutdownInternalScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStartedpublic static final String TEST
public TestConnector(org.mule.runtime.core.api.MuleContext context)
public String getProtocol()
protected void doInitialise()
doInitialise in class AbstractConnectorprotected void doConnect()
doConnect in class AbstractConnectorprotected void doStart()
doStart in class AbstractConnectorprotected void doStop()
doStop in class AbstractConnectorprotected void doDisconnect()
doDisconnect in class AbstractConnectorprotected void doDispose()
doDispose in class AbstractConnectorpublic String getSomeProperty()
public void setSomeProperty(String someProperty)
protected Object getReceiverKey(org.mule.runtime.core.api.construct.FlowConstruct flowConstruct, InboundEndpoint endpoint)
getReceiverKey in class AbstractConnectorpublic MessageReceiver createReceiver(org.mule.runtime.core.api.construct.FlowConstruct flowConstuct, InboundEndpoint endpoint) throws Exception
createReceiver in class AbstractConnectorExceptionpublic TransportServiceDescriptor getServiceDescriptor()
getServiceDescriptor in class AbstractConnectorpublic void destroyReceiver(MessageReceiver receiver, InboundEndpoint endpoint) throws Exception
Exceptionpublic ConfigurableKeyedObjectPool getDispatchers()
public int getInitialiseCount()
public int getConnectCount()
public int getStartCount()
public int getStopCount()
public int getDisconnectCount()
public int getDisposeCount()
public org.mule.runtime.core.api.processor.Processor getOutboundEndpointMessageProcessor(OutboundEndpoint endpoint) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void setFailAtStartup(boolean failAtStartup)
public boolean isFailAtStartup()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.