Java Doc for AbstractConnector.java in  » ESB » mule » org » mule » transport » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » mule » org.mule.transport 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mule.transport.AbstractConnector

All known Subclasses:   org.mule.transport.ftp.FtpConnector,  org.mule.transport.cxf.CxfConnector,  org.mule.transport.file.FileConnector,  org.mule.transport.quartz.QuartzConnector,  org.mule.transport.bpm.ProcessConnector,  org.mule.transport.email.AbstractMailConnector,  org.mule.transport.jms.JmsConnector,  org.mule.transport.stdio.StdioConnector,  org.mule.transport.tcp.TcpConnector,  org.mule.transport.AbstractJndiConnector,  org.mule.transport.udp.UdpConnector,  org.mule.transport.soap.axis.AxisConnector,  org.mule.transport.http.servlet.ServletConnector,  org.mule.transport.vm.VMConnector,  org.mule.transport.jdbc.JdbcConnector,  org.mule.transport.xmpp.XmppConnector,
AbstractConnector
abstract public class AbstractConnector implements Connector,ExceptionListener,Connectable,WorkListener(Code)
AbstractConnector provides base functionality for all connectors provided with Mule. Connectors are the mechanism used to connect to external systems and protocols in order to send and receive data.

The AbstractConnector provides getter and setter methods for endpoint name, transport name and protocol. It also provides methods to stop and start connecotors and sets up a dispatcher threadpool which allows deriving connectors the possibility to dispatch work to separate threads. This functionality is controlled with the doThreading property on the threadingProfiles for dispachers and receivers. The lifecycle for a connector is -

  1. Create
  2. Initialise
  3. Connect
  4. Connect receivers
  5. Start
  6. Start Receivers
  7. Stop
  8. Stop Receivers
  9. Disconnect
  10. Disconnect Receivers
  11. Dispose
  12. Dispose Receivers


Field Summary
final public static  intDEFAULT_NUM_CONCURRENT_TX_RECEIVERS
     Default number of concurrent transactional receivers.
final protected  WaitableBooleanconnected
    
final protected  WaitableBooleanconnecting
    
protected volatile  ConnectionStrategyconnectionStrategy
    
protected volatile  booleancreateMultipleTransactedReceivers
    
protected volatile  MessageDispatcherFactorydispatcherFactory
    
final protected  GenericKeyedObjectPooldispatchers
    
final protected  AtomicBooleandisposed
    
final protected  AtomicBooleandisposing
    
protected volatile  ExceptionListenerexceptionListener
    
final protected  AtomicBooleaninitialised
    
final protected  Loglogger
    
protected  MuleContextmuleContext
    
protected volatile  Stringname
    
protected volatile  intnumberOfConcurrentTransactedReceivers
    
final protected  ConcurrentMapreceivers
     The collection of listeners on this connector.
protected volatile  MessageRequesterFactoryrequesterFactory
    
final protected  GenericKeyedObjectPoolrequesters
    
protected volatile  TransportServiceDescriptorserviceDescriptor
    
protected volatile  PropertiesserviceOverrides
    
protected volatile  SessionHandlersessionHandler
    
final protected  WaitableBooleanstartOnConnect
    
final protected  AtomicBooleanstarted
    

Constructor Summary
public  AbstractConnector()
    

Method Summary
protected  voidcheckDisposed()
    
public  voidconnect()
    
protected  MessageReceivercreateReceiver(Service service, InboundEndpoint endpoint)
     Create a Message receiver for this connector
Parameters:
  service - the service that will receive events from this receiver,the listener
Parameters:
  endpoint - the endpoint that defies this inbound communication an instance of the message receiver defined in this connectors'org.mule.transport.service.TransportServiceDescriptorinitialised using the service and endpoint.
throws:
  Exception - if there is a problem creating the receiver.
public  voiddestroyReceiver(MessageReceiver receiver, InboundEndpoint endpoint)
    
public  voiddisconnect()
    
public  voiddispatch(OutboundEndpoint endpoint, MuleEvent event)
    
final public synchronized  voiddispose()
    
protected  voiddisposeDispatchers()
    
protected  voiddisposeReceivers()
    
protected  voiddisposeRequesters()
    
protected  voiddisposeWorkManagers()
    
abstract protected  voiddoConnect()
    
abstract protected  voiddoDisconnect()
    
abstract protected  voiddoDispose()
    
abstract protected  voiddoInitialise()
    
abstract protected  voiddoStart()
    
abstract protected  voiddoStop()
    
public  voidexceptionThrown(Exception e)
    
public  voidfireNotification(ServerNotification notification)
    
protected  StringgetConnectEventId()
    
public  StringgetConnectionDescription()
    
public  ConnectionStrategygetConnectionStrategy()
     Getter for property 'connectionStrategy'.
public  ListgetDefaultInboundTransformers()
    
public  ListgetDefaultOutboundTransformers()
    
public  ListgetDefaultResponseTransformers()
    
public  MessageDispatcherFactorygetDispatcherFactory()
    
public  ThreadingProfilegetDispatcherThreadingProfile()
     Getter for property 'dispatcherThreadingProfile'.
protected  WorkManagergetDispatcherWorkManager()
     Returns a work manager for message dispatchers.
public  ExceptionListenergetExceptionListener()
    
public  intgetMaxDispatchersActive()
     Returns the maximum number of dispatchers that can be concurrently active per endpoint. max.
public  intgetMaxRequestersActive()
     Returns the maximum number of requesters that can be concurrently active per endpoint. max.
public  MessageAdaptergetMessageAdapter(Object message)
    
public  MuleContextgetMuleContext()
    
public  StringgetName()
    
public  intgetNumberOfConcurrentTransactedReceivers()
     Returns the number of concurrent receivers that will be launched when AbstractConnector.isCreateMultipleTransactedReceivers() returns true.
public  OutputStreamgetOutputStream(OutboundEndpoint endpoint, MuleMessage message)
     Will get the output stream for this type of transport.
public  MessageReceivergetReceiver(Service service, InboundEndpoint endpoint)
    
protected  ObjectgetReceiverKey(Service service, InboundEndpoint endpoint)
     The method determines the key used to store the receiver against.
public  ThreadingProfilegetReceiverThreadingProfile()
     Getter for property 'receiverThreadingProfile'.
protected  WorkManagergetReceiverWorkManager(String receiverName)
     Returns a work manager for message receivers.
public  MapgetReceivers()
     Getter for property 'receivers'.
public  MessageReceiver[]getReceivers(String wildcardExpression)
    
public  ReplyToHandlergetReplyToHandler()
     Getter for property 'replyToHandler'.
public  MessageRequesterFactorygetRequesterFactory()
    
public  ThreadingProfilegetRequesterThreadingProfile()
     Getter for property 'requesterThreadingProfile'.
protected  WorkManagergetRequesterWorkManager()
     Returns a work manager for message requesters.
public  ScheduledExecutorServicegetScheduler()
     Returns a Scheduler service for periodic tasks, currently limited to internal use.
protected  TransportServiceDescriptorgetServiceDescriptor()
     Get the TransportServiceDescriptor for this connector.
public  MapgetServiceOverrides()
    
public  SessionHandlergetSessionHandler()
     Getter for property 'sessionHandler'.
public  ListgetSupportedProtocols()
    
public  voidhandleException(Exception exception)
    
protected  voidhandleWorkException(WorkEvent event, String type)
    
protected synchronized  voidinitFromServiceDescriptor()
     Initialises this connector from its TransportServiceDescriptor This will be called before the AbstractConnector.doInitialise() method is called.
protected  voidinitWorkManagers()
    
final public synchronized  LifecycleTransitionResultinitialise()
    
public  voidinitialiseFromUrl(EndpointURI endpointUri)
     When this connector is created via the org.mule.transport.service.TransportFactory the endpoint used to determine the connector type is passed to this method so that any properties set on the endpoint that can be used to initialise the connector are made available.
final public  booleanisConnected()
    
public  booleanisCreateMultipleTransactedReceivers()
     For better throughput when using TransactedMessageReceivers this will enable a number of concurrent receivers, based on the value returned by AbstractConnector.getNumberOfConcurrentTransactedReceivers() .
public  booleanisDisposed()
    
public  booleanisDisposing()
    
public  booleanisEnableMessageEvents()
    
public  booleanisRemoteSyncEnabled()
    
public  booleanisStarted()
    
public  booleanisSyncEnabled(String protocol)
    
public  MessageReceiverlookupReceiver(String key)
    
public  MessageReceiverregisterListener(Service service, InboundEndpoint endpoint)
    
public  voidregisterSupportedProtocol(String protocol)
     Registers other protocols 'understood' by this connector.
protected  voidregisterSupportedProtocolWithoutPrefix(String protocol)
     Registers other protocols 'understood' by this connector.
public  MuleMessagerequest(String uri, long timeout)
    
public  MuleMessagerequest(InboundEndpoint endpoint, long timeout)
    
public  MuleMessagesend(OutboundEndpoint endpoint, MuleEvent event)
    
public  voidsetConnectionStrategy(ConnectionStrategy connectionStrategy)
     Setter for property 'connectionStrategy'.
public  voidsetCreateMultipleTransactedReceivers(boolean createMultipleTransactedReceivers)
    
public  voidsetDispatcherFactory(MessageDispatcherFactory dispatcherFactory)
    
public  voidsetDispatcherThreadingProfile(ThreadingProfile dispatcherThreadingProfile)
     Setter for property 'dispatcherThreadingProfile'.
public  voidsetDynamicNotification(boolean dynamic)
    
public  voidsetExceptionListener(ExceptionListener listener)
    
public  voidsetMaxDispatchersActive(int maxActive)
     Configures the maximum number of dispatchers that can be concurrently active per endpoint
Parameters:
  maxActive - max.
public  voidsetMaxRequestersActive(int maxActive)
     Configures the maximum number of requesters that can be concurrently active per endpoint
Parameters:
  maxActive - max.
public  voidsetMuleContext(MuleContext context)
    
public  voidsetName(String newName)
    
public  voidsetNumberOfConcurrentTransactedReceivers(int count)
    
public  voidsetReceiverThreadingProfile(ThreadingProfile receiverThreadingProfile)
     Setter for property 'receiverThreadingProfile'.
public  voidsetRequesterFactory(MessageRequesterFactory requesterFactory)
    
public  voidsetRequesterThreadingProfile(ThreadingProfile requesterThreadingProfile)
     Setter for property 'requesterThreadingProfile'.
public  voidsetServiceOverrides(Map serviceOverrides)
     Set the Service overrides on this connector.
public  voidsetSessionHandler(SessionHandler sessionHandler)
     Setter for property 'sessionHandler'.
public  voidsetSupportedProtocols(List supportedProtocols)
    
protected  voidsetupDispatchReturn(OutboundEndpoint endpoint, MessageDispatcher dispatcher, MuleMessage result)
     This method will return the dispatcher to the pool or, if the payload is an inputstream, replace the payload with a new DelegatingInputStream which returns the dispatcher to the pool when the stream is closed.
protected  voidsetupRequestReturn(InboundEndpoint endpoint, MessageRequester requester, MuleMessage result)
     This method will return the requester to the pool or, if the payload is an inputstream, replace the payload with a new DelegatingInputStream which returns the requester to the pool when the stream is closed.
final public synchronized  LifecycleTransitionResultstart()
    
final public synchronized  LifecycleTransitionResultstop()
    
public  booleansupportsProtocol(String protocol)
    
public  StringtoString()
    
final public  voidunregisterListener(Service service, InboundEndpoint endpoint)
    
public  voidunregisterSupportedProtocol(String protocol)
    
protected  voidupdateCachedNotificationHandler()
    
public  voidworkAccepted(WorkEvent event)
    
public  voidworkCompleted(WorkEvent event)
    
public  voidworkRejected(WorkEvent event)
    
public  voidworkStarted(WorkEvent event)
    

Field Detail
DEFAULT_NUM_CONCURRENT_TX_RECEIVERS
final public static int DEFAULT_NUM_CONCURRENT_TX_RECEIVERS(Code)
Default number of concurrent transactional receivers.



connected
final protected WaitableBoolean connected(Code)



connecting
final protected WaitableBoolean connecting(Code)



connectionStrategy
protected volatile ConnectionStrategy connectionStrategy(Code)



createMultipleTransactedReceivers
protected volatile boolean createMultipleTransactedReceivers(Code)

See Also:    AbstractConnector.isCreateMultipleTransactedReceivers()



dispatcherFactory
protected volatile MessageDispatcherFactory dispatcherFactory(Code)
Factory used to create dispatchers for this connector



dispatchers
final protected GenericKeyedObjectPool dispatchers(Code)
A pool of dispatchers for this connector, keyed by endpoint



disposed
final protected AtomicBoolean disposed(Code)
Determines in the connector is alive and well



disposing
final protected AtomicBoolean disposing(Code)
Determines in connector has been told to dispose



exceptionListener
protected volatile ExceptionListener exceptionListener(Code)
The exception strategy used by this connector



initialised
final protected AtomicBoolean initialised(Code)
True once the endpoint has been initialsed



logger
final protected Log logger(Code)
logger used by this class



muleContext
protected MuleContext muleContext(Code)



name
protected volatile String name(Code)
The name that identifies the endpoint



numberOfConcurrentTransactedReceivers
protected volatile int numberOfConcurrentTransactedReceivers(Code)

See Also:    AbstractConnector.getNumberOfConcurrentTransactedReceivers()



receivers
final protected ConcurrentMap receivers(Code)
The collection of listeners on this connector. Keyed by entrypoint



requesterFactory
protected volatile MessageRequesterFactory requesterFactory(Code)
Factory used to create requesters for this connector



requesters
final protected GenericKeyedObjectPool requesters(Code)
A pool of requesters for this connector, keyed by endpoint



serviceDescriptor
protected volatile TransportServiceDescriptor serviceDescriptor(Code)
Holds the service configuration for this connector



serviceOverrides
protected volatile Properties serviceOverrides(Code)
The map of service overrides that can be used to extend the capabilities of the connector



sessionHandler
protected volatile SessionHandler sessionHandler(Code)
The strategy used for reading and writing session information to and fromt he transport



startOnConnect
final protected WaitableBoolean startOnConnect(Code)
If the connect method was called via the start method, this will be set so that when the connector comes on line it will be started



started
final protected AtomicBoolean started(Code)
Specifies if the endpoint started




Constructor Detail
AbstractConnector
public AbstractConnector()(Code)




Method Detail
checkDisposed
protected void checkDisposed() throws DisposeException(Code)



connect
public void connect() throws Exception(Code)



createReceiver
protected MessageReceiver createReceiver(Service service, InboundEndpoint endpoint) throws Exception(Code)
Create a Message receiver for this connector
Parameters:
  service - the service that will receive events from this receiver,the listener
Parameters:
  endpoint - the endpoint that defies this inbound communication an instance of the message receiver defined in this connectors'org.mule.transport.service.TransportServiceDescriptorinitialised using the service and endpoint.
throws:
  Exception - if there is a problem creating the receiver. This exceptionreally depends on the underlying transport, thus any exceptioncould be thrown



destroyReceiver
public void destroyReceiver(MessageReceiver receiver, InboundEndpoint endpoint) throws Exception(Code)



disconnect
public void disconnect() throws Exception(Code)



dispatch
public void dispatch(OutboundEndpoint endpoint, MuleEvent event) throws DispatchException(Code)



dispose
final public synchronized void dispose()(Code)



disposeDispatchers
protected void disposeDispatchers()(Code)



disposeReceivers
protected void disposeReceivers()(Code)



disposeRequesters
protected void disposeRequesters()(Code)



disposeWorkManagers
protected void disposeWorkManagers()(Code)



doConnect
abstract protected void doConnect() throws Exception(Code)
Template method where any connections should be made for the connector
throws:
  Exception -



doDisconnect
abstract protected void doDisconnect() throws Exception(Code)
Template method where any connected resources used by the connector should be disconnected
throws:
  Exception -



doDispose
abstract protected void doDispose()(Code)
Template method to perform any work when destroying the connectoe



doInitialise
abstract protected void doInitialise() throws InitialisationException(Code)



doStart
abstract protected void doStart() throws MuleException(Code)
Template method to perform any work when starting the connectoe
throws:
  MuleException - if the method fails



doStop
abstract protected void doStop() throws MuleException(Code)
Template method to perform any work when stopping the connectoe
throws:
  MuleException - if the method fails



exceptionThrown
public void exceptionThrown(Exception e)(Code)



fireNotification
public void fireNotification(ServerNotification notification)(Code)
Fires a server notification to all registered listeners
Parameters:
  notification - the notification to fire.



getConnectEventId
protected String getConnectEventId()(Code)
The resource id used when firing ConnectEvents from this connector the resource id used when firing ConnectEvents from this connector



getConnectionDescription
public String getConnectionDescription()(Code)



getConnectionStrategy
public ConnectionStrategy getConnectionStrategy()(Code)
Getter for property 'connectionStrategy'. Value for property 'connectionStrategy'.



getDefaultInboundTransformers
public List getDefaultInboundTransformers()(Code)



getDefaultOutboundTransformers
public List getDefaultOutboundTransformers()(Code)



getDefaultResponseTransformers
public List getDefaultResponseTransformers()(Code)



getDispatcherFactory
public MessageDispatcherFactory getDispatcherFactory()(Code)
Returns the dispatcherFactory.



getDispatcherThreadingProfile
public ThreadingProfile getDispatcherThreadingProfile()(Code)
Getter for property 'dispatcherThreadingProfile'. Value for property 'dispatcherThreadingProfile'.



getDispatcherWorkManager
protected WorkManager getDispatcherWorkManager() throws MuleException(Code)
Returns a work manager for message dispatchers.
throws:
  MuleException - in case of error



getExceptionListener
public ExceptionListener getExceptionListener()(Code)
the ExceptionStrategy for this endpoint
See Also:   ExceptionListener



getMaxDispatchersActive
public int getMaxDispatchersActive()(Code)
Returns the maximum number of dispatchers that can be concurrently active per endpoint. max. number of active dispatchers



getMaxRequestersActive
public int getMaxRequestersActive()(Code)
Returns the maximum number of requesters that can be concurrently active per endpoint. max. number of active requesters



getMessageAdapter
public MessageAdapter getMessageAdapter(Object message) throws MessagingException(Code)
Gets a MessageAdapter for the endpoint for the given message (data)
Parameters:
  message - the data with which to initialise theMessageAdapter the MessageAdapter for the endpoint
throws:
  org.mule.api.MessagingException - if the message parameter is notsupported
See Also:   org.mule.api.transport.MessageAdapter



getMuleContext
public MuleContext getMuleContext()(Code)



getName
public String getName()(Code)



getNumberOfConcurrentTransactedReceivers
public int getNumberOfConcurrentTransactedReceivers()(Code)
Returns the number of concurrent receivers that will be launched when AbstractConnector.isCreateMultipleTransactedReceivers() returns true.
See Also:   AbstractConnector.DEFAULT_NUM_CONCURRENT_TX_RECEIVERS



getOutputStream
public OutputStream getOutputStream(OutboundEndpoint endpoint, MuleMessage message) throws MuleException(Code)
Will get the output stream for this type of transport. Typically this will be called only when Streaming is being used on an outbound endpoint. If Streaming is not supported by this transport an UnsupportedOperationException is thrown. Note that the stream MUST release resources on close. For help doing so, see org.mule.model.streaming.CallbackOutputStream .
Parameters:
  endpoint - the endpoint that releates to this Dispatcher
Parameters:
  message - the current message being processed the output stream to use for this request
throws:
  MuleException - in case of any error



getReceiver
public MessageReceiver getReceiver(Service service, InboundEndpoint endpoint)(Code)



getReceiverKey
protected Object getReceiverKey(Service service, InboundEndpoint endpoint)(Code)
The method determines the key used to store the receiver against.
Parameters:
  service - the service for which the endpoint is being registered
Parameters:
  endpoint - the endpoint being registered for the service the key to store the newly created receiver against



getReceiverThreadingProfile
public ThreadingProfile getReceiverThreadingProfile()(Code)
Getter for property 'receiverThreadingProfile'. Value for property 'receiverThreadingProfile'.



getReceiverWorkManager
protected WorkManager getReceiverWorkManager(String receiverName) throws MuleException(Code)
Returns a work manager for message receivers.



getReceivers
public Map getReceivers()(Code)
Getter for property 'receivers'. Value for property 'receivers'.



getReceivers
public MessageReceiver[] getReceivers(String wildcardExpression)(Code)



getReplyToHandler
public ReplyToHandler getReplyToHandler()(Code)
Getter for property 'replyToHandler'. Value for property 'replyToHandler'.



getRequesterFactory
public MessageRequesterFactory getRequesterFactory()(Code)
Returns the requesterFactory.



getRequesterThreadingProfile
public ThreadingProfile getRequesterThreadingProfile()(Code)
Getter for property 'requesterThreadingProfile'. Value for property 'requesterThreadingProfile'.



getRequesterWorkManager
protected WorkManager getRequesterWorkManager() throws MuleException(Code)
Returns a work manager for message requesters.
throws:
  MuleException - in case of error



getScheduler
public ScheduledExecutorService getScheduler()(Code)
Returns a Scheduler service for periodic tasks, currently limited to internal use. Note: getScheduler() currently conflicts with the same method in the Quartz transport



getServiceDescriptor
protected TransportServiceDescriptor getServiceDescriptor()(Code)
Get the TransportServiceDescriptor for this connector. This will be null if the connector was created by the developer. To create a connector the proper way the developer should use the TransportFactory and pass in an endpoint. the TransportServiceDescriptor for this connector



getServiceOverrides
public Map getServiceOverrides()(Code)
A map of fully qualified class names that should override those in the connectors' service descriptor This map will be null if there are no overrides a map of override values or null



getSessionHandler
public SessionHandler getSessionHandler()(Code)
Getter for property 'sessionHandler'. Value for property 'sessionHandler'.



getSupportedProtocols
public List getSupportedProtocols()(Code)
Returns an unmodifiable list of the protocols supported by this connector an unmodifiable list of the protocols supported by this connector



handleException
public void handleException(Exception exception)(Code)



handleWorkException
protected void handleWorkException(WorkEvent event, String type)(Code)



initFromServiceDescriptor
protected synchronized void initFromServiceDescriptor() throws InitialisationException(Code)
Initialises this connector from its TransportServiceDescriptor This will be called before the AbstractConnector.doInitialise() method is called.
throws:
  InitialisationException - InitialisationException If there are anyproblems with the configuration or if another exception is thrownit is wrapped in an InitialisationException.



initWorkManagers
protected void initWorkManagers() throws MuleException(Code)



initialise
final public synchronized LifecycleTransitionResult initialise() throws InitialisationException(Code)



initialiseFromUrl
public void initialiseFromUrl(EndpointURI endpointUri) throws InitialisationException(Code)
When this connector is created via the org.mule.transport.service.TransportFactory the endpoint used to determine the connector type is passed to this method so that any properties set on the endpoint that can be used to initialise the connector are made available.
Parameters:
  endpointUri - the EndpointURI use to create this connector
throws:
  InitialisationException - If there are any problems with theconfiguration set on the Endpoint or if another exception isthrown it is wrapped in an InitialisationException.



isConnected
final public boolean isConnected()(Code)



isCreateMultipleTransactedReceivers
public boolean isCreateMultipleTransactedReceivers()(Code)
For better throughput when using TransactedMessageReceivers this will enable a number of concurrent receivers, based on the value returned by AbstractConnector.getNumberOfConcurrentTransactedReceivers() . This property is used by transports that support transactions, specifically receivers that extend the TransactedPollingMessageReceiver. true if multiple receivers will be enabled for this connection



isDisposed
public boolean isDisposed()(Code)



isDisposing
public boolean isDisposing()(Code)



isEnableMessageEvents
public boolean isEnableMessageEvents()(Code)



isRemoteSyncEnabled
public boolean isRemoteSyncEnabled()(Code)



isStarted
public boolean isStarted()(Code)



isSyncEnabled
public boolean isSyncEnabled(String protocol)(Code)



lookupReceiver
public MessageReceiver lookupReceiver(String key)(Code)



registerListener
public MessageReceiver registerListener(Service service, InboundEndpoint endpoint) throws Exception(Code)



registerSupportedProtocol
public void registerSupportedProtocol(String protocol)(Code)
Registers other protocols 'understood' by this connector. These must contain scheme meta info. Any protocol registered must begin with the protocol of this connector, i.e. If the connector is axis the protocol for jms over axis will be axis:jms. Here, 'axis' is the scheme meta info and 'jms' is the protocol. If the protocol argument does not start with the connector's protocol, it will be appended.
Parameters:
  protocol - the supported protocol to register



registerSupportedProtocolWithoutPrefix
protected void registerSupportedProtocolWithoutPrefix(String protocol)(Code)
Registers other protocols 'understood' by this connector. These must contain scheme meta info. Unlike the AbstractConnector.registerSupportedProtocol(String) method, this allows you to register protocols that are not prefixed with the connector protocol. This is useful where you use a Service Finder to discover which Transport implementation to use. For example the 'wsdl' transport is a generic 'finder' transport that will use Axis, Xfire or Glue to create the WSDL client. These transport protocols would be wsdl-axis, wsdl-xfire and wsdl-glue, but they can all support 'wsdl' protocol too.
Parameters:
  protocol - the supported protocol to register



request
public MuleMessage request(String uri, long timeout) throws Exception(Code)



request
public MuleMessage request(InboundEndpoint endpoint, long timeout) throws Exception(Code)



send
public MuleMessage send(OutboundEndpoint endpoint, MuleEvent event) throws DispatchException(Code)



setConnectionStrategy
public void setConnectionStrategy(ConnectionStrategy connectionStrategy)(Code)
Setter for property 'connectionStrategy'.
Parameters:
  connectionStrategy - Value to set for property 'connectionStrategy'.



setCreateMultipleTransactedReceivers
public void setCreateMultipleTransactedReceivers(boolean createMultipleTransactedReceivers)(Code)

See Also:    AbstractConnector.isCreateMultipleTransactedReceivers()
Parameters:
  createMultipleTransactedReceivers - if true, multiple receivers will becreated for this connection



setDispatcherFactory
public void setDispatcherFactory(MessageDispatcherFactory dispatcherFactory)(Code)

Parameters:
  dispatcherFactory - The dispatcherFactory to set.



setDispatcherThreadingProfile
public void setDispatcherThreadingProfile(ThreadingProfile dispatcherThreadingProfile)(Code)
Setter for property 'dispatcherThreadingProfile'.
Parameters:
  dispatcherThreadingProfile - Value to set for property'dispatcherThreadingProfile'.



setDynamicNotification
public void setDynamicNotification(boolean dynamic)(Code)



setExceptionListener
public void setExceptionListener(ExceptionListener listener)(Code)

Parameters:
  listener - the ExceptionStrategy to use with this endpoint
See Also:   ExceptionListener



setMaxDispatchersActive
public void setMaxDispatchersActive(int maxActive)(Code)
Configures the maximum number of dispatchers that can be concurrently active per endpoint
Parameters:
  maxActive - max. number of active dispatchers



setMaxRequestersActive
public void setMaxRequestersActive(int maxActive)(Code)
Configures the maximum number of requesters that can be concurrently active per endpoint
Parameters:
  maxActive - max. number of active requesters



setMuleContext
public void setMuleContext(MuleContext context)(Code)



setName
public void setName(String newName)(Code)



setNumberOfConcurrentTransactedReceivers
public void setNumberOfConcurrentTransactedReceivers(int count)(Code)

See Also:    AbstractConnector.getNumberOfConcurrentTransactedReceivers()
Parameters:
  count - the number of concurrent transacted receivers to start



setReceiverThreadingProfile
public void setReceiverThreadingProfile(ThreadingProfile receiverThreadingProfile)(Code)
Setter for property 'receiverThreadingProfile'.
Parameters:
  receiverThreadingProfile - Value to set for property'receiverThreadingProfile'.



setRequesterFactory
public void setRequesterFactory(MessageRequesterFactory requesterFactory)(Code)

Parameters:
  requesterFactory - The requesterFactory to set.



setRequesterThreadingProfile
public void setRequesterThreadingProfile(ThreadingProfile requesterThreadingProfile)(Code)
Setter for property 'requesterThreadingProfile'.
Parameters:
  requesterThreadingProfile - Value to set for property'requesterThreadingProfile'.



setServiceOverrides
public void setServiceOverrides(Map serviceOverrides)(Code)
Set the Service overrides on this connector.
Parameters:
  serviceOverrides - the override values to use



setSessionHandler
public void setSessionHandler(SessionHandler sessionHandler)(Code)
Setter for property 'sessionHandler'.
Parameters:
  sessionHandler - Value to set for property 'sessionHandler'.



setSupportedProtocols
public void setSupportedProtocols(List supportedProtocols)(Code)
Sets A list of protocols that the connector can accept
Parameters:
  supportedProtocols -



setupDispatchReturn
protected void setupDispatchReturn(OutboundEndpoint endpoint, MessageDispatcher dispatcher, MuleMessage result)(Code)
This method will return the dispatcher to the pool or, if the payload is an inputstream, replace the payload with a new DelegatingInputStream which returns the dispatcher to the pool when the stream is closed.
Parameters:
  endpoint -
Parameters:
  dispatcher -
Parameters:
  result -



setupRequestReturn
protected void setupRequestReturn(InboundEndpoint endpoint, MessageRequester requester, MuleMessage result)(Code)
This method will return the requester to the pool or, if the payload is an inputstream, replace the payload with a new DelegatingInputStream which returns the requester to the pool when the stream is closed.
Parameters:
  endpoint -
Parameters:
  requester -
Parameters:
  result -



start
final public synchronized LifecycleTransitionResult start() throws MuleException(Code)



stop
final public synchronized LifecycleTransitionResult stop() throws MuleException(Code)



supportsProtocol
public boolean supportsProtocol(String protocol)(Code)
true if the protocol is supported by this connector.



toString
public String toString()(Code)



unregisterListener
final public void unregisterListener(Service service, InboundEndpoint endpoint) throws Exception(Code)



unregisterSupportedProtocol
public void unregisterSupportedProtocol(String protocol)(Code)



updateCachedNotificationHandler
protected void updateCachedNotificationHandler()(Code)



workAccepted
public void workAccepted(WorkEvent event)(Code)



workCompleted
public void workCompleted(WorkEvent event)(Code)



workRejected
public void workRejected(WorkEvent event)(Code)



workStarted
public void workStarted(WorkEvent event)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.