|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.client.ClientParameters
public class ClientParameters
The set of parameters needed to initialize the client. These parameters are provided to the following methods.
| Field Summary | |
|---|---|
static int |
DEFAULT_HEARTBEAT_INTERVAL
|
| Constructor Summary | |
|---|---|
ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort)
Creates an instance. |
|
ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort,
String inIDPrefix)
Creates an instance. |
|
ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort,
String inIDPrefix,
int inHeartbeatInterval)
Creates an instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getHeartbeatInterval()
The time interval between heartbeats, in ms. |
String |
getHostname()
The server hostname. |
String |
getIDPrefix()
The string to prefix to the orderIDs generated by this class. |
char[] |
getPassword()
The password to use when connecting to the server. |
int |
getPort()
The port number of the server. |
String |
getURL()
The URL of the server. |
String |
getUsername()
Gets the user name to use when connecting to the server. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_HEARTBEAT_INTERVAL
| Constructor Detail |
|---|
@ConstructorProperties(value={"username","password","URL","hostname","port","IDPrefix","heartbeatInterval"})
public ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort,
String inIDPrefix,
int inHeartbeatInterval)
inUsername - the user name.inPassword - the password.inURL - the URL.inHostname - the host nameinPort - the port numberinIDPrefix - the string to prefix to the orderIDs generated
by the client based on the IDs from the server.inHeartbeatInterval - time interval between heartbeats, in ms.
public ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort,
String inIDPrefix)
inUsername - the user name.inPassword - the password.inURL - the URL.inHostname - the host nameinPort - the port numberinIDPrefix - the string to prefix to the orderIDs generated
by the client based on the IDs from the server.
public ClientParameters(String inUsername,
char[] inPassword,
String inURL,
String inHostname,
int inPort)
inUsername - the user name.inPassword - the password.inURL - the URL.inHostname - the host nameinPort - the port number| Method Detail |
|---|
public String getUsername()
public char[] getPassword()
public String getURL()
public int getPort()
public String getHostname()
public String getIDPrefix()
public int getHeartbeatInterval()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||