org.marketcetera.saclient
Class SAClientFactory

java.lang.Object
  extended by org.marketcetera.saclient.SAClientFactory

public class SAClientFactory
extends Object

Factory for creating remote connections to the Strategy Agent.

Since:
2.0.0
Version:
$Id: SAClientFactory.java 16154 2012-07-14 16:34:05Z colin $
Author:
anshul@marketcetera.com

Constructor Summary
protected SAClientFactory()
          Creates an instance.
 
Method Summary
 SAClient create(SAClientParameters inParameters)
          Creates a client that can be used to communicate with a remote strategy agent.
static SAClientFactory getInstance()
          Returns the singleton factory instance that can be used to create clients to communicate with the remote strategy agents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAClientFactory

protected SAClientFactory()
Creates an instance.

Method Detail

create

public SAClient create(SAClientParameters inParameters)
                throws ConnectionException
Creates a client that can be used to communicate with a remote strategy agent.

Parameters:
inParameters - the connection details on how to connect to the remote strategy agent. Cannot be null.
Returns:
the client instance that can be used to communicate with the remote strategy agent.
Throws:
ConnectionException - If there were errors connecting to the remote strategy agent.

getInstance

public static SAClientFactory getInstance()
Returns the singleton factory instance that can be used to create clients to communicate with the remote strategy agents.

Returns:
the singleton factory instance.


Copyright © 2012. All Rights Reserved.