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

java.lang.Object
  extended by com.epam.mdp.full.session.client.StreamClientFactory

public final class StreamClientFactory
extends java.lang.Object

Factory for create and initialize FastChannel.

Author:
Serhiy_Zahriychuk Date: Apr 3, 2009

Constructor Summary
StreamClientFactory(java.net.URI pathToTemplates)
           
 
Method Summary
 void assignTemplate(java.io.InputStream template)
          Assign new template for decoding to CME FAST client.
 IStreamChannel createFASTChannel(Transport transport, FIXStreamListener listener, ChannelVersion chanelVersion, com.epam.mdp.full.coders.stream.SeqNumHelper secNumHelper, TransportType transportType)
          Creates the instance of FastChannel.
 IStreamChannel createFASTChannel(Transport transport, FIXStreamListener listener, TransportType transportType)
          Creates the instance of FastChannel.
 IStreamChannel createFASTChannel(Transport primaryTransport, Transport backupTransport, FIXStreamListener listener, ChannelVersion chanelVersion, com.epam.mdp.full.coders.stream.SeqNumHelper secNumHelper, TransportType transportType)
          Creates the instance of FastChannel.
static StreamClientFactory createFASTFactory()
           
static StreamClientFactory createFASTFactory(java.io.InputStream streamOfTemplates)
          Creates factory with messages templates.
static StreamClientFactory createFASTFactory(java.net.URI pathToTemplate)
          Creates factory with messages templates.
 FASTDecoderFactory getDecoderFactory(ChannelVersion chanelVersion)
           
 TemplateContainer getTemplateContainer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamClientFactory

public StreamClientFactory(java.net.URI pathToTemplates)
Method Detail

createFASTFactory

public static StreamClientFactory createFASTFactory()

createFASTFactory

public static StreamClientFactory createFASTFactory(java.net.URI pathToTemplate)
Creates factory with messages templates.

Parameters:
pathToTemplate - Path to resource wich contains xml templates.
Returns:
Instance of FASTClientFactory.

createFASTFactory

public static StreamClientFactory createFASTFactory(java.io.InputStream streamOfTemplates)
Creates factory with messages templates.

Parameters:
streamOfTemplates - Instance of InputStream wich contains xml templates.
Returns:
Instance of FASTClientFactory.

assignTemplate

public void assignTemplate(java.io.InputStream template)
Assign new template for decoding to CME FAST client.

Parameters:
template - input stream.

createFASTChannel

public IStreamChannel createFASTChannel(Transport transport,
                                        FIXStreamListener listener,
                                        TransportType transportType)
Creates the instance of FastChannel.

Parameters:
transport - Instance of Transport.
listener - Instance of FIXFASTListener.
Returns:
Instance of FastChannel.

getTemplateContainer

public TemplateContainer getTemplateContainer()

createFASTChannel

public IStreamChannel createFASTChannel(Transport transport,
                                        FIXStreamListener listener,
                                        ChannelVersion chanelVersion,
                                        com.epam.mdp.full.coders.stream.SeqNumHelper secNumHelper,
                                        TransportType transportType)
Creates the instance of FastChannel.

Parameters:
transport - Instance of Transport.
listener - Instance of FIXFASTListener.
chanelVersion - the chanel version
secNumHelper -
Returns:
Instance of FastChannel.

createFASTChannel

public IStreamChannel createFASTChannel(Transport primaryTransport,
                                        Transport backupTransport,
                                        FIXStreamListener listener,
                                        ChannelVersion chanelVersion,
                                        com.epam.mdp.full.coders.stream.SeqNumHelper secNumHelper,
                                        TransportType transportType)
Creates the instance of FastChannel.

Parameters:
primaryTransport - Instance of Transport.
backupTransport - Instance of Transport.
listener - Instance of FIXFASTListener.
chanelVersion - the chanel version
secNumHelper -
Returns:
Instance of FastChannel.

getDecoderFactory

public FASTDecoderFactory getDecoderFactory(ChannelVersion chanelVersion)


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