com.epam.mdp.adaptor.api
Interface Channel

All Known Implementing Classes:
CMEChannel

public interface Channel


Method Summary
 void findInstrumentBySecID(java.lang.String secId, SecurityDefinitionListener securityDefinitionListener)
          Finds instrument in channel.
 void findInstrumentBySymbol(java.lang.String symbol, SecurityDefinitionListener securityListener)
          Finds instrument in channel.
 void findInstruments(SecurityDefinitionListener securityDefinitionListener)
          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 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.
 

Method Detail

stop

void stop()
          throws java.io.IOException
Stop channel and close opened connections.

Throws:
java.io.IOException - - if error occurred

setInstrumentListener

void setInstrumentListener(InstrumentListener instrumentListener)
Sets instrument listener.

Parameters:
instrumentListener - the instrument listener

setMessageListener

void setMessageListener(MessageListener messageListener)
Sets message listener.

Parameters:
messageListener - the message listener

setErrorListener

void setErrorListener(ErrorListener errorListener)
Sets error listener.

Parameters:
errorListener - the error listener

findInstruments

void findInstruments(SecurityDefinitionListener securityDefinitionListener)
                     throws java.io.IOException
Finds all instrument in channel.

Parameters:
securityDefinitionListener - the callback listener.
Throws:
java.io.IOException - - if error occurred

findInstrumentBySymbol

void findInstrumentBySymbol(java.lang.String symbol,
                            SecurityDefinitionListener securityListener)
                            throws java.io.IOException
Finds instrument in channel.

Parameters:
symbol - the symbol
securityListener - the listener
Throws:
java.io.IOException - - if error occurred

findInstrumentBySecID

void findInstrumentBySecID(java.lang.String secId,
                           SecurityDefinitionListener securityDefinitionListener)
                           throws java.io.IOException
Finds instrument in channel.

Parameters:
secId - the security Id
securityDefinitionListener - the listener
Throws:
java.io.IOException - - if error occurred

subscribeAll

void subscribeAll()
                  throws java.io.IOException
Subscribe for all instruments.

Throws:
java.io.IOException - - if error occurred

unSubscribeAll

void unSubscribeAll()
                    throws java.io.IOException
UnSubscribe from instruments.

Throws:
java.io.IOException - - if error occurred

subscribeSymbol

void subscribeSymbol(java.lang.String symbol)
                     throws java.io.IOException
Subscribe to instrument.

Parameters:
symbol - the symbol
Throws:
java.io.IOException - - if error occurred

unSubscribeSymbol

void unSubscribeSymbol(java.lang.String symbol)
                       throws java.io.IOException
UnSubscribe from instrument.

Parameters:
symbol - the symbol
Throws:
java.io.IOException - - if error occurred

subscribeSecId

void subscribeSecId(java.lang.String secId)
                    throws java.io.IOException
Subscribe to instrument.

Parameters:
secId - the security ID
Throws:
java.io.IOException - - if error occurred

unSubscribeSecId

void unSubscribeSecId(java.lang.String secId)
                      throws java.io.IOException
UnSubscribe to instrument.

Parameters:
secId - the security ID
Throws:
java.io.IOException - - if error occurred

subscribeSecGroup

void subscribeSecGroup(java.lang.String secGroup)
                       throws java.io.IOException
Subscribe to instrument.

Parameters:
secGroup - the security group
Throws:
java.io.IOException - - if error occurred

unSubscribeSecGroup

void unSubscribeSecGroup(java.lang.String secGroup)
                         throws java.io.IOException
UnSubscribe to instrument.

Parameters:
secGroup - the security group
Throws:
java.io.IOException - - if error occurred

subscribeChannel

boolean subscribeChannel(java.lang.String channelID)
                         throws java.io.IOException
Subscribe to instruments on channel.

Parameters:
channelID - unique id of channel
Throws:
java.io.IOException - - if error occurred

unSubscribeChannel

void unSubscribeChannel(java.lang.String channelID)
                        throws java.io.IOException
Unsubscribe from instruments on channel.

Parameters:
channelID - unique id of channel
Throws:
java.io.IOException - - if error occurred


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.