|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.createtank.elemenope.transports.DirectCallConnector
public class DirectCallConnector
Blocking Call implementation of the elemenope Connector interface
For an example configuration, see direct.xml
| Constructor Summary | |
|---|---|
DirectCallConnector()
Creates a new instance of DirectCallConnector |
|
| Method Summary | |
|---|---|
void |
connect()
makes initial connection to entity |
void |
disconnect()
closes connection to entity |
java.lang.Object |
executeBlockingCall(java.lang.String operationType,
java.lang.Object object)
Blocking call implementation specific method to allow dispatcher to send message. |
java.lang.Object |
getConnection()
Get connection implementation specific object. |
java.util.Map |
getConnectionAttributes()
sets connectivity attributes |
boolean |
isActive()
May be used by DispatcherFailover [DFO] implementations to ascertain whether a connection is currently viable. |
void |
releaseComponents()
Should be called upon shutdown, in order for elemenope component classes clean up after themselves. |
void |
setBroker(Broker broker)
|
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 |
void |
start()
starts the connection to entity |
void |
stop()
stops the connection to entity |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectCallConnector()
| Method Detail |
|---|
public void setComponents(ElemenopeComponents components)
ElemenopeComponentShould ususally be called at the end of the initialization cycle, when all components have been instantiated.
setComponents in interface ElemenopeComponentpublic void releaseComponents()
ElemenopeComponent
releaseComponents in interface ElemenopeComponent
public void connect()
throws ElemenopeConnectionException
connect in interface Connectorjava.lang.Exception - Exception thrown when problems occur connecting.
ElemenopeConnectionException
public void disconnect()
throws ElemenopeConnectionException
disconnect in interface Connectorjava.lang.Exception - Exception thrown when problems occur connecting.
ElemenopeConnectionException
public java.lang.Object getConnection()
throws ElemenopeException
ConnectorUsed by some implementations to pass connection for use by Broker or Dispatcher.
getConnection in interface ConnectorElemenopeException
public java.util.Map getConnectionAttributes()
throws ElemenopeException
getConnectionAttributes in interface ElemenopeConnectionEntityatts - Map of connectivity attributes
java.lang.Exception - exception
ElemenopeException
public void setConnectionAttributes(java.util.Map atts)
throws ElemenopeException
setConnectionAttributes in interface ElemenopeConnectionEntityatts - Map of connectivity attributes
java.lang.Exception - exception
ElemenopeException
public java.lang.Object executeBlockingCall(java.lang.String operationType,
java.lang.Object object)
throws ElemenopeException
operationType - object -
ElemenopeExceptionpublic void setBroker(Broker broker)
broker - public void start()
Connector
start in interface Connectorpublic void stop()
Connector
stop in interface Connectorpublic boolean isActive()
Connector
isActive in interface Connector
public void setConfigurationAttributes(java.util.Map atts)
throws ElemenopeException
ElemenopeComponent
setConfigurationAttributes in interface ElemenopeComponentatts - Map of connectivity attributes
ElemenopeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||