org.marketcetera.saclient
Class SAClientParameters

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

public class SAClientParameters
extends Object

The set of parameters needed to initialize the client connection to the strategy agent.

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

Constructor Summary
SAClientParameters(String inUsername, char[] inPassword, String inURL, String inHostname, int inPort)
          Creates an instance.
SAClientParameters(String inUsername, char[] inPassword, String inURL, String inHostname, int inPort, Class<?>... inContextClasses)
          Create a new SAClientParameters instance.
 
Method Summary
 boolean equals(Object o)
           
 Class<?>[] getContextClasses()
           
 String getHostname()
          The strategy agent hostname.
 char[] getPassword()
          The password to use when connecting to the strategy agent.
 int getPort()
          The port number of the strategy agent.
 String getURL()
          The URL of the strategy agent.
 String getUsername()
          Gets the user name to use when connecting to the strategy agent.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SAClientParameters

@ConstructorProperties(value={"username","password","URL","hostname","port"})
public SAClientParameters(String inUsername,
                                                     char[] inPassword,
                                                     String inURL,
                                                     String inHostname,
                                                     int inPort)
Creates an instance.

Parameters:
inUsername - the user name.
inPassword - the password.
inURL - the URL.
inHostname - the host name
inPort - the port number

SAClientParameters

@ConstructorProperties(value={"username","password","URL","hostname","port","contextClasses"})
public SAClientParameters(String inUsername,
                                                     char[] inPassword,
                                                     String inURL,
                                                     String inHostname,
                                                     int inPort,
                                                     Class<?>... inContextClasses)
Create a new SAClientParameters instance.

Parameters:
inUsername - a String value
inPassword - a char[] value
inURL - a String value
inHostname - a String value
inPort - an int value
inContextClasses - a Class<?>... value
Method Detail

getUsername

public String getUsername()
Gets the user name to use when connecting to the strategy agent.

Returns:
the user name.

getPassword

public char[] getPassword()
The password to use when connecting to the strategy agent.

Returns:
the password.

getURL

public String getURL()
The URL of the strategy agent.

Returns:
the URL of the strategy agent.

getPort

public int getPort()
The port number of the strategy agent.

Returns:
the strategy agent port number.

getHostname

public String getHostname()
The strategy agent hostname.

Returns:
the strategy agent hostname.

getContextClasses

public Class<?>[] getContextClasses()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.