com.createtank.elemenope.transports
Class XmlRpcElemenopeDispatcher

java.lang.Object
  extended by com.createtank.elemenope.DispatcherFailoverImpl
      extended by com.createtank.elemenope.transports.XmlRpcElemenopeDispatcher
All Implemented Interfaces:
Dispatcher, ElemenopeComponent, ElemenopeConnectionEntity, FailoverDispatcher

public class XmlRpcElemenopeDispatcher
extends DispatcherFailoverImpl

XML-RPC implementation of the elemenope Dispatcher interface

For use in creating an elemenope centric XML-RPC client, i.e. to allow connectivity to elemenope based services.

For an example configuration, see xmlrpc.xml

Author:
John Joseph Roets [joe@createtank.com]

Constructor Summary
XmlRpcElemenopeDispatcher()
          Creates a new instance of XmlRpcElemenopeDispatcher
 
Method Summary
 void connect(Connector connector)
           
 java.lang.Object dispatchCallback(java.lang.String operationType, java.lang.Object object)
          Implementation specific sending functionality called from generic failover implmentation.
 java.lang.Object dispatchCallback(java.lang.String operationType, java.lang.Object object, java.util.Map atts)
          Implementation specific sending functionality called from generic failover implmentation.
 java.util.Map getConnectionAttributes()
          gets connectivity attributes
 void releaseComponents()
          Should be called upon shutdown, in order for elemenope component classes clean up after themselves.
 void setComponents(ElemenopeComponents components)
          Passes all configured components to implementing Object.
 void setConfigurationAttributes(java.util.Map atts)
          sets configuration attributes
 void setConnectionAttributes(java.util.Map atts)
          sets connectivity attributes
 
Methods inherited from class com.createtank.elemenope.DispatcherFailoverImpl
failover, failover, send, send, send, send, send
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcElemenopeDispatcher

public XmlRpcElemenopeDispatcher()
Creates a new instance of XmlRpcElemenopeDispatcher

Method Detail

setComponents

public void setComponents(ElemenopeComponents components)
Description copied from interface: ElemenopeComponent
Passes all configured components to implementing Object.

Should ususally be called at the end of the initialization cycle, when all components have been instantiated.


setConnectionAttributes

public void setConnectionAttributes(java.util.Map atts)
                             throws ElemenopeException
Description copied from interface: ElemenopeConnectionEntity
sets connectivity attributes

Parameters:
atts - Map of connectivity attributes
Throws:
ElemenopeException

connect

public void connect(Connector connector)
             throws ElemenopeConnectionException
Parameters:
connector -
Throws:
ElemenopeConnectionException

getConnectionAttributes

public java.util.Map getConnectionAttributes()
                                      throws ElemenopeException
Description copied from interface: ElemenopeConnectionEntity
gets connectivity attributes

Returns:
connectivity attributes
Throws:
ElemenopeException

dispatchCallback

public java.lang.Object dispatchCallback(java.lang.String operationType,
                                         java.lang.Object object)
                                  throws ElemenopeException
Description copied from interface: FailoverDispatcher
Implementation specific sending functionality called from generic failover implmentation.

Returns:
Throws:
ElemenopeException

dispatchCallback

public java.lang.Object dispatchCallback(java.lang.String operationType,
                                         java.lang.Object object,
                                         java.util.Map atts)
                                  throws ElemenopeException
Description copied from interface: FailoverDispatcher
Implementation specific sending functionality called from generic failover implmentation.

Returns:
Throws:
ElemenopeException

releaseComponents

public void releaseComponents()
Description copied from interface: ElemenopeComponent
Should be called upon shutdown, in order for elemenope component classes clean up after themselves.


setConfigurationAttributes

public void setConfigurationAttributes(java.util.Map atts)
                                throws ElemenopeException
Description copied from interface: ElemenopeComponent
sets configuration attributes

Parameters:
atts - Map of connectivity attributes
Throws:
ElemenopeException