|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Channel
instrumentListener
- the instrument listenerpublic void setMessageListener(MessageListener messageListener)
Channel
setMessageListener
in interface Channel
messageListener
- the message listenerpublic void setErrorListener(ErrorListener errorListener)
Channel
setErrorListener
in interface Channel
errorListener
- the error listenerpublic void findInstruments(SecurityDefinitionListener securityListener) throws java.io.IOException
Channel
findInstruments
in interface Channel
securityListener
- the callback listener.
java.io.IOException
- - if error occurredpublic 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 Channel
symbol
- the symbolsecurityListener
- the listener
java.io.IOException
- - if error occurredpublic 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 Channel
secId
- the security IdsecurityListener
- the listener
java.io.IOException
- - if error occurredpublic 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 Channel
java.io.IOException
- - if error occurredpublic void unSubscribeAll() throws java.io.IOException
Channel
unSubscribeAll
in interface Channel
java.io.IOException
- - if error occurredpublic void subscribeSymbol(java.lang.String symbol) throws java.io.IOException
Channel
subscribeSymbol
in interface Channel
symbol
- the symbol
java.io.IOException
- - if error occurredpublic void unSubscribeSymbol(java.lang.String symbol)
Channel
unSubscribeSymbol
in interface Channel
symbol
- the symbolpublic void subscribeSecId(java.lang.String secId) throws java.io.IOException
Channel
subscribeSecId
in interface Channel
secId
- the security ID
java.io.IOException
- - if error occurredpublic void unSubscribeSecId(java.lang.String secId)
Channel
unSubscribeSecId
in interface Channel
secId
- the security IDpublic boolean subscribeChannel(java.lang.String channelID) throws java.io.IOException
Channel
subscribeChannel
in interface Channel
channelID
- unique id of channel
java.io.IOException
- - if error occurredpublic void unSubscribeChannel(java.lang.String channelID) throws java.io.IOException
Channel
unSubscribeChannel
in interface Channel
channelID
- unique id of channel
java.io.IOException
- - if error occurredpublic void subscribeSecGroup(java.lang.String secGroup) throws java.io.IOException
Channel
subscribeSecGroup
in interface Channel
secGroup
- the security group
java.io.IOException
- - if error occurredpublic void unSubscribeSecGroup(java.lang.String secGroup)
Channel
unSubscribeSecGroup
in interface Channel
secGroup
- the security groupprotected 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 |