|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.cmemdp.impl.ApplicationImpl
public class ApplicationImpl
Field Summary | |
---|---|
protected ApplicationListener |
applicationListener
|
protected java.util.Map<java.lang.String,java.util.List<Instrument>> |
channelInstruments
|
protected static java.lang.String |
DOUBLESUBSCRIBE
|
protected java.util.List<Instrument> |
instruments
|
protected java.util.Map<java.lang.String,Instrument> |
instrumentsBySecDesc
|
protected java.util.Map<java.lang.Long,Instrument> |
instrumentsBySecID
|
static int |
MAX_REVISION_DELTA
|
static int |
MAX_UDP_MIX_DELTA
|
Constructor Summary | |
---|---|
ApplicationImpl(ApplicationParams params,
ApplicationListener applicationListener)
|
|
ApplicationImpl(ApplicationParams params,
ApplicationListener applicationListener,
FastChannelReader reader)
|
Method Summary | |
---|---|
MDChannel |
findChannelByID(java.lang.String channelID)
|
ChannelContext |
getChannelContext(java.lang.String channelID)
|
java.util.List<MDChannel> |
getChannels()
|
void |
onMessage(FIXFieldList message,
java.lang.String channelID,
long firstSeqNumOfQueue34)
Invoked when fast channel received message. |
void |
onMessage(java.lang.String securityDesc,
long securityID,
FIXFieldList message,
MDChannel channel)
|
void |
resolveInstrumentBySecID(long securityID,
SecurityDefinitionListener listener)
Subscribes to instrument replay by security ID |
void |
resolveInstrumentBySecurityDescription(java.lang.String securityDescription,
SecurityDefinitionListener listener)
Subscribes to instrument replay by security description |
void |
resolveInstrumentBySecurityGroup(java.lang.String securityGroup,
SecurityDefinitionListener listener)
Subscribes to instrument replay by security group |
void |
resolveInstrumentBySymbol(java.lang.String symbol,
SecurityDefinitionListener listener)
Subscribes to instrument replay by symbol |
boolean |
resolveInstrumentsByChannelID(java.lang.String channelID,
SecurityDefinitionListener listener)
Subscribes to instrument replay by channel ID |
void |
riseOnRecoveryStopped(Instrument instrument,
RecoveryReason recoveryReason)
|
void |
start()
Starts application. |
void |
stop()
Stops application. |
void |
stopChannelListener(java.lang.String channelID,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by channel |
void |
stopSecGroupListener(java.lang.String securityGroup,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security group |
void |
stopSecIDListener(long securityID,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security ID |
void |
stopSecurityDescriptionListener(java.lang.String securityDesc,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security description |
void |
stopSymbolListener(java.lang.String symbol,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by String |
void |
subscribe(java.lang.String symbol,
InstrumentListener listener,
RecoveryOptions recovery)
|
boolean |
subscribeAll(InstrumentListener listener,
RecoveryOptions recoveryOptions)
Subscribes to the market data for all instruments on market |
void |
subscribeAll(RecoveryOptions recoveryOptions)
Deprecated. |
boolean |
subscribeByChannelID(MDChannel channel,
InstrumentListener listener,
RecoveryOptions recoveryOptions)
|
boolean |
subscribeByChannelID(java.lang.String channelID,
InstrumentListener listener,
RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security ID and channel info |
void |
subscribeBySecurityDesc(java.lang.String secDesc,
InstrumentListener instrumentListener,
RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security description |
void |
subscribeBySecurityID(long secID,
InstrumentListener listener,
RecoveryOptions recovery)
|
boolean |
subscribeBySecurityID(long secID,
java.lang.String secDesc,
java.lang.String channelID,
InstrumentListener listener,
RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security ID and channel info |
void |
unsubscribe(java.lang.String symbol)
|
void |
unsubscribeAll()
Unsubscribe from all instruments |
void |
unsubscribeByChannelID(java.lang.String channelID,
InstrumentListener listener)
Unsubscribes from market data on channel. |
void |
unsubscribeBySecDesc(java.lang.String securityDesc)
Unsubscribes from instrument by security description |
void |
unsubscribeBySecurityID(long securityID)
Unsubscribes from instrument by security ID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_UDP_MIX_DELTA
public static final int MAX_REVISION_DELTA
protected static final java.lang.String DOUBLESUBSCRIBE
protected final java.util.List<Instrument> instruments
protected final java.util.Map<java.lang.String,java.util.List<Instrument>> channelInstruments
protected final java.util.Map<java.lang.Long,Instrument> instrumentsBySecID
protected final java.util.Map<java.lang.String,Instrument> instrumentsBySecDesc
protected ApplicationListener applicationListener
Constructor Detail |
---|
public ApplicationImpl(ApplicationParams params, ApplicationListener applicationListener)
public ApplicationImpl(ApplicationParams params, ApplicationListener applicationListener, FastChannelReader reader)
Method Detail |
---|
public ChannelContext getChannelContext(java.lang.String channelID)
public java.util.List<MDChannel> getChannels()
public void start()
Application
start
in interface Application
public void subscribe(java.lang.String symbol, InstrumentListener listener, RecoveryOptions recovery)
subscribe
in interface Application
public void unsubscribe(java.lang.String symbol)
unsubscribe
in interface Application
public void subscribeBySecurityDesc(java.lang.String secDesc, InstrumentListener instrumentListener, RecoveryOptions recoveryOptions)
Application
subscribeBySecurityDesc
in interface Application
public void unsubscribeBySecDesc(java.lang.String securityDesc)
Application
unsubscribeBySecDesc
in interface Application
public void unsubscribeBySecurityID(long securityID)
Application
unsubscribeBySecurityID
in interface Application
public void subscribeBySecurityID(long secID, InstrumentListener listener, RecoveryOptions recovery)
public boolean subscribeBySecurityID(long secID, java.lang.String secDesc, java.lang.String channelID, InstrumentListener listener, RecoveryOptions recoveryOptions)
Application
subscribeBySecurityID
in interface Application
public boolean subscribeByChannelID(java.lang.String channelID, InstrumentListener listener, RecoveryOptions recoveryOptions)
Application
subscribeByChannelID
in interface Application
public boolean subscribeByChannelID(MDChannel channel, InstrumentListener listener, RecoveryOptions recoveryOptions)
public void unsubscribeByChannelID(java.lang.String channelID, InstrumentListener listener)
Application
unsubscribeByChannelID
in interface Application
Application.subscribeByChannelID(String, InstrumentListener, RecoveryOptions)
public MDChannel findChannelByID(java.lang.String channelID)
public void resolveInstrumentBySymbol(java.lang.String symbol, SecurityDefinitionListener listener)
Application
resolveInstrumentBySymbol
in interface Application
public void resolveInstrumentBySecurityDescription(java.lang.String securityDescription, SecurityDefinitionListener listener)
Application
resolveInstrumentBySecurityDescription
in interface Application
public void resolveInstrumentBySecID(long securityID, SecurityDefinitionListener listener)
Application
resolveInstrumentBySecID
in interface Application
public void resolveInstrumentBySecurityGroup(java.lang.String securityGroup, SecurityDefinitionListener listener)
Application
resolveInstrumentBySecurityGroup
in interface Application
public boolean resolveInstrumentsByChannelID(java.lang.String channelID, SecurityDefinitionListener listener)
Application
resolveInstrumentsByChannelID
in interface Application
public void stopSymbolListener(java.lang.String symbol, SecurityDefinitionListener listener)
Application
stopSymbolListener
in interface Application
public void stopSecurityDescriptionListener(java.lang.String securityDesc, SecurityDefinitionListener listener)
Application
stopSecurityDescriptionListener
in interface Application
public void stopSecIDListener(long securityID, SecurityDefinitionListener listener)
Application
stopSecIDListener
in interface Application
public void stopSecGroupListener(java.lang.String securityGroup, SecurityDefinitionListener listener)
Application
stopSecGroupListener
in interface Application
public void stopChannelListener(java.lang.String channelID, SecurityDefinitionListener listener)
Application
stopChannelListener
in interface Application
public boolean subscribeAll(InstrumentListener listener, RecoveryOptions recoveryOptions)
Application
subscribeAll
in interface Application
@Deprecated public void subscribeAll(RecoveryOptions recoveryOptions)
subscribeAll
in interface Application
public void unsubscribeAll()
Application
unsubscribeAll
in interface Application
public void onMessage(java.lang.String securityDesc, long securityID, FIXFieldList message, MDChannel channel)
public void onMessage(FIXFieldList message, java.lang.String channelID, long firstSeqNumOfQueue34)
FastChannelReaderListener
onMessage
in interface FastChannelReaderListener
message
- the messagechannelID
- the channel id witch received messagefirstSeqNumOfQueue34
- the first sequence in queuepublic void stop()
Application
stop
in interface Application
public void riseOnRecoveryStopped(Instrument instrument, RecoveryReason recoveryReason)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |