com.epam.mdp.full.session.client
Class TwinBovespaStreamChannel

java.lang.Object
  extended by com.epam.mdp.full.session.client.TwinBovespaStreamChannel
All Implemented Interfaces:
IStreamChannel, ITwinStreamChannel

Deprecated.

@Deprecated
public class TwinBovespaStreamChannel
extends java.lang.Object
implements ITwinStreamChannel

This class provides the functionality to establish a connection with FAST servers, reading data and transforming them into FIX message.

Author:
Volodymyr_Biloshkurskyi Date: Apr 19, 20011

Constructor Summary
TwinBovespaStreamChannel(Transport primaryTransport, Transport backupTransport, FIXStreamListener listener, TemplateContainer templateContainer)
          Deprecated. Constructor for create instance of FastClient.
TwinBovespaStreamChannel(Transport primaryTransport, Transport backupTransport, FIXStreamListener listener, TemplateContainer templateContainer, ChannelVersion chanelVersion)
          Deprecated. Creates the FastChannel with specified version.
 
Method Summary
 void connect()
          Deprecated. Connect all transports to the servers.
 void disconnect()
          Deprecated. Disconnect all transports.
 int getBackupPort()
          Deprecated. Returns Port of client transport.
 FASTDecoderFactory getDecoderFactory()
          Deprecated. Returns decoder associate with this channel.
 int getPort()
          Deprecated. Returns Port of client transport.
 int getPrimaryPort()
          Deprecated. Returns Port of client transport.
 Decoder getSecondDecoder()
          Deprecated.  
 boolean isStarted()
          Deprecated. Returns true if at least one transport connected.
 void resetSeqNum(long newSeqNum)
          Deprecated. Resets channel data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwinBovespaStreamChannel

public TwinBovespaStreamChannel(Transport primaryTransport,
                                Transport backupTransport,
                                FIXStreamListener listener,
                                TemplateContainer templateContainer)
Deprecated. 
Constructor for create instance of FastClient.

Parameters:
primaryTransport - Instance of Client transport.
backupTransport - Instance of Client transport.
listener - Instance of FAST listener.
templateContainer - Container of FAST templates.

TwinBovespaStreamChannel

public TwinBovespaStreamChannel(Transport primaryTransport,
                                Transport backupTransport,
                                FIXStreamListener listener,
                                TemplateContainer templateContainer,
                                ChannelVersion chanelVersion)
Deprecated. 
Creates the FastChannel with specified version.

Parameters:
primaryTransport - Instance of Client transport.
backupTransport - Instance of Client transport.
listener - Instance of FAST listener.
templateContainer - Container of FAST templates.
Method Detail

isStarted

public boolean isStarted()
Deprecated. 
Returns true if at least one transport connected.

Specified by:
isStarted in interface IStreamChannel
Returns:
true if at least one transport connected.

getPort

public int getPort()
Deprecated. 
Returns Port of client transport.

Specified by:
getPort in interface IStreamChannel
Returns:
Port of client transport.

getPrimaryPort

public int getPrimaryPort()
Deprecated. 
Returns Port of client transport.

Returns:
Port of client transport.

getBackupPort

public int getBackupPort()
Deprecated. 
Returns Port of client transport.

Returns:
Port of client transport.

connect

public void connect()
             throws java.io.IOException
Deprecated. 
Connect all transports to the servers.

Specified by:
connect in interface IStreamChannel
Throws:
java.io.IOException - If connect does not establish.

disconnect

public void disconnect()
                throws java.io.IOException
Deprecated. 
Disconnect all transports.

Specified by:
disconnect in interface IStreamChannel
Throws:
java.io.IOException - If connect does not closed.

getSecondDecoder

public Decoder getSecondDecoder()
Deprecated. 

getDecoderFactory

public FASTDecoderFactory getDecoderFactory()
Deprecated. 
Description copied from interface: IStreamChannel
Returns decoder associate with this channel.

Specified by:
getDecoderFactory in interface IStreamChannel
Returns:
Decoder

resetSeqNum

public void resetSeqNum(long newSeqNum)
Deprecated. 
Description copied from interface: IStreamChannel
Resets channel data.

Specified by:
resetSeqNum in interface IStreamChannel
Parameters:
newSeqNum - the new seq num


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