|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epam.cmemdp.adaptor.CMEChannel
public class CMEChannel
CME implementation of FAST Channel API
| Constructor Summary | |
|---|---|
CMEChannel(CMEApplicationParam applicationParams)
|
|
CMEChannel(CMEApplicationParam applicationParams,
FastChannelReader reader)
|
|
| Method Summary | |
|---|---|
protected boolean |
doNaturalRefresh(java.lang.String secDesc,
long secID,
java.util.List<FIXFieldList> groupEntries)
|
void |
findInstrumentBySecID(java.lang.String secId,
SecurityDefinitionListener securityListener)
Finds instrument in channel. |
void |
findInstrumentBySymbol(java.lang.String symbol,
SecurityDefinitionListener securityListener)
Finds instrument in channel. |
void |
findInstruments(SecurityDefinitionListener securityListener)
Finds all instrument in channel. |
void |
setErrorListener(ErrorListener errorListener)
Sets error listener. |
void |
setInstrumentListener(InstrumentListener instrumentListener)
Sets instrument listener. |
void |
setMessageListener(MessageListener messageListener)
Sets message listener. |
void |
stop()
Stop channel and close opened connections. |
void |
stopFindInstrumentBySecID(java.lang.String secId,
SecurityDefinitionListener securityListener)
|
void |
stopFindInstrumentBySymbol(java.lang.String symbol,
SecurityDefinitionListener securityListener)
|
void |
stopFindInstruments(SecurityDefinitionListener securityListener)
|
void |
subscribeAll()
Subscribe for all instruments. |
boolean |
subscribeChannel(java.lang.String channelID)
Subscribe to instruments on channel. |
void |
subscribeSecGroup(java.lang.String secGroup)
Subscribe to instrument. |
void |
subscribeSecId(java.lang.String secId)
Subscribe to instrument. |
void |
subscribeSymbol(java.lang.String symbol)
Subscribe to instrument. |
void |
unSubscribeAll()
UnSubscribe from instruments. |
void |
unSubscribeChannel(java.lang.String channelID)
Unsubscribe from instruments on channel. |
void |
unSubscribeSecGroup(java.lang.String secGroup)
UnSubscribe to instrument. |
void |
unSubscribeSecId(java.lang.String secId)
UnSubscribe to instrument. |
void |
unSubscribeSymbol(java.lang.String symbol)
UnSubscribe from instrument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CMEChannel(CMEApplicationParam applicationParams)
public CMEChannel(CMEApplicationParam applicationParams,
FastChannelReader reader)
| Method Detail |
|---|
public void setInstrumentListener(InstrumentListener instrumentListener)
Channel
setInstrumentListener in interface ChannelinstrumentListener - the instrument listenerpublic void setMessageListener(MessageListener messageListener)
Channel
setMessageListener in interface ChannelmessageListener - the message listenerpublic void setErrorListener(ErrorListener errorListener)
Channel
setErrorListener in interface ChannelerrorListener - the error listener
public void findInstruments(SecurityDefinitionListener securityListener)
throws java.io.IOException
Channel
findInstruments in interface ChannelsecurityListener - the callback listener.
java.io.IOException - - if error occurred
public void stopFindInstruments(SecurityDefinitionListener securityListener)
throws java.io.IOException
java.io.IOException
public void findInstrumentBySymbol(java.lang.String symbol,
SecurityDefinitionListener securityListener)
throws java.io.IOException
Channel
findInstrumentBySymbol in interface Channelsymbol - the symbolsecurityListener - the listener
java.io.IOException - - if error occurred
public void stopFindInstrumentBySymbol(java.lang.String symbol,
SecurityDefinitionListener securityListener)
throws java.io.IOException
java.io.IOException
public void findInstrumentBySecID(java.lang.String secId,
SecurityDefinitionListener securityListener)
throws java.io.IOException
Channel
findInstrumentBySecID in interface ChannelsecId - the security IdsecurityListener - the listener
java.io.IOException - - if error occurred
public void stopFindInstrumentBySecID(java.lang.String secId,
SecurityDefinitionListener securityListener)
throws java.io.IOException
java.io.IOException
public void subscribeAll()
throws java.io.IOException
Channel
subscribeAll in interface Channeljava.io.IOException - - if error occurred
public void unSubscribeAll()
throws java.io.IOException
Channel
unSubscribeAll in interface Channeljava.io.IOException - - if error occurred
public void subscribeSymbol(java.lang.String symbol)
throws java.io.IOException
Channel
subscribeSymbol in interface Channelsymbol - the symbol
java.io.IOException - - if error occurredpublic void unSubscribeSymbol(java.lang.String symbol)
Channel
unSubscribeSymbol in interface Channelsymbol - the symbol
public void subscribeSecId(java.lang.String secId)
throws java.io.IOException
Channel
subscribeSecId in interface ChannelsecId - the security ID
java.io.IOException - - if error occurredpublic void unSubscribeSecId(java.lang.String secId)
Channel
unSubscribeSecId in interface ChannelsecId - the security ID
public boolean subscribeChannel(java.lang.String channelID)
throws java.io.IOException
Channel
subscribeChannel in interface ChannelchannelID - unique id of channel
java.io.IOException - - if error occurred
public void unSubscribeChannel(java.lang.String channelID)
throws java.io.IOException
Channel
unSubscribeChannel in interface ChannelchannelID - unique id of channel
java.io.IOException - - if error occurred
public void subscribeSecGroup(java.lang.String secGroup)
throws java.io.IOException
Channel
subscribeSecGroup in interface ChannelsecGroup - the security group
java.io.IOException - - if error occurredpublic void unSubscribeSecGroup(java.lang.String secGroup)
Channel
unSubscribeSecGroup in interface ChannelsecGroup - the security group
protected boolean doNaturalRefresh(java.lang.String secDesc,
long secID,
java.util.List<FIXFieldList> groupEntries)
public void stop()
Channel
stop in interface Channel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||