|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
EndpointReference[] |
getEPRsForService(String serviceName,
String ip)
Returns EPRs for the given service and IP over the FIX transport |
void |
init(ConfigurationContext cfgCtx,
TransportInDescription trpInDesc)
This is the TransportListener initialization method invoked by Axis2 |
void |
startListeningForService(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(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, 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(ConfigurationContext cfgCtx, TransportInDescription trpInDesc) throws AxisFault
init
in interface TransportListener
init
in class org.apache.axis2.transport.base.AbstractTransportListener
cfgCtx
- the Axis configuration contexttrpInDesc
- the TransportIn description
AxisFault
public void startListeningForService(AxisService service)
startListeningForService
in class org.apache.axis2.transport.base.AbstractTransportListener
service
- the service for which to listen for messagesprotected void stopListeningForService(AxisService service)
stopListeningForService
in class org.apache.axis2.transport.base.AbstractTransportListener
service
- the service that was undeployed or stoppedpublic EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault
getEPRsForService
in interface TransportListener
getEPRsForService
in class org.apache.axis2.transport.base.AbstractTransportListener
serviceName
- service nameip
- ignored
AxisFault
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |