|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.transport.base.AbstractTransportListener
org.apache.synapse.transport.fix.FIXTransportListener
public class FIXTransportListener
The FIX transport listener implementation. A FIX Transport Listner will hold a FIX session factory, which would be created at initialization time. This implementation supports the creation of FIX sessions at runtime as and when required. This FIX Listener registers with Axis to be notified of service deployment/undeployment/start/stop, and enables or disables listening for FIX messages on the destinations as appropriate.
Service must state where the FIX configuration file is located so that the required FIX sessions can be initialized for the service. FIX configuration file should be a valid Quickfix/J session configuration file. A URL to the file should be provided.
| Field Summary |
|---|
| Fields inherited from class org.apache.axis2.transport.base.AbstractTransportListener |
|---|
cfgCtx, config, isNonBlocking, log, metrics, state, useAxis2ThreadPool, workerPool |
| Fields inherited from interface org.apache.axis2.transport.TransportListener |
|---|
HOST_ADDRESS, PARAM_PORT |
| Constructor Summary | |
|---|---|
FIXTransportListener()
|
|
| Method Summary | |
|---|---|
org.apache.axis2.addressing.EndpointReference[] |
getEPRsForService(String serviceName,
String ip)
Returns EPRs for the given service and IP over the FIX transport |
void |
init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportInDescription trpInDesc)
This is the TransportListener initialization method invoked by Axis2 |
void |
startListeningForService(org.apache.axis2.description.AxisService service)
Prepare to listen for FIX messages on behalf of the given service by first creating and starting a FIX session |
protected void |
stopListeningForService(org.apache.axis2.description.AxisService service)
Stops listening for messages for the service thats undeployed or stopped by stopping and disposing the appropriate FIX session |
| Methods inherited from class org.apache.axis2.transport.base.AbstractTransportListener |
|---|
createMessageContext, destroy, disableTransportForService, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getConfigurationContext, getEPRForService, getEPRsForService, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsCollector, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getSessionContext, getTimeoutsReceiving, getTimeoutsSending, getTransportInDescription, getTransportName, handleException, handleIncomingMessage, logException, maintenenceShutdown, pause, resetStatistics, resume, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FIXTransportListener()
| Method Detail |
|---|
public void init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportInDescription trpInDesc)
throws org.apache.axis2.AxisFault
init in interface org.apache.axis2.transport.TransportListenerinit in class org.apache.axis2.transport.base.AbstractTransportListenercfgCtx - the Axis configuration contexttrpInDesc - the TransportIn description
org.apache.axis2.AxisFaultpublic void startListeningForService(org.apache.axis2.description.AxisService service)
startListeningForService in class org.apache.axis2.transport.base.AbstractTransportListenerservice - the service for which to listen for messagesprotected void stopListeningForService(org.apache.axis2.description.AxisService service)
stopListeningForService in class org.apache.axis2.transport.base.AbstractTransportListenerservice - the service that was undeployed or stopped
public org.apache.axis2.addressing.EndpointReference[] getEPRsForService(String serviceName,
String ip)
throws org.apache.axis2.AxisFault
getEPRsForService in interface org.apache.axis2.transport.TransportListenergetEPRsForService in class org.apache.axis2.transport.base.AbstractTransportListenerserviceName - service nameip - ignored
org.apache.axis2.AxisFault
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||