public static class LoginConnectionConfig.ServerInfo
extends java.lang.Object
| Constructor and Description |
|---|
ServerInfo()
Instantiates a new server info.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyHasLoadFactor()
Applies loadFactor presence flag.
|
void |
applyHasType()
Applies serverType presence flag.
|
boolean |
checkHasLoadFactor()
Checks the presence of loadFactor field.
|
boolean |
checkHasType()
Checks the presence of serverType field.
|
void |
clear()
Clears the current contents of the server info object and prepares it
for re-use.
|
int |
copy(LoginConnectionConfig.ServerInfo destServerInfo)
Performs a deep copy of
LoginConnectionConfig.ServerInfo object. |
int |
flags()
Returns the server info flags.
|
void |
flags(int flags)
Sets the server info flags.
|
com.thomsonreuters.upa.codec.Buffer |
hostName()
Returns hostName for the server.
|
void |
hostName(com.thomsonreuters.upa.codec.Buffer hostName)
Sets hostName for the server.
|
long |
loadFactor()
Returns Server's loadFactor.
|
void |
loadFactor(long loadFactor)
Sets Server's loadFactor.
|
long |
port()
Returns port for the server.
|
void |
port(long port)
Sets port for the server.
|
long |
serverIndex()
Returns an index for the server.
|
void |
serverIndex(long serverIndex)
Sets an index for the server.
|
int |
serverType()
Returns Server's serverType.
|
void |
serverType(int serverType)
Sets Server's serverType.
|
java.lang.String |
toString() |
public void flags(int flags)
LoginConnectionConfig.ServerInfoFlags.flags - the flagspublic int flags()
LoginConnectionConfig.ServerInfoFlags.public int copy(LoginConnectionConfig.ServerInfo destServerInfo)
LoginConnectionConfig.ServerInfo object.destServerInfo - ServerInfo object to copy this object into. It
cannot be null.public java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
public com.thomsonreuters.upa.codec.Buffer hostName()
public void hostName(com.thomsonreuters.upa.codec.Buffer hostName)
hostName - to connect to.public long port()
public void port(long port)
port - to connect to.public long loadFactor()
public void loadFactor(long loadFactor)
loadFactor - the load factorpublic void applyHasLoadFactor()
flags(int)public boolean checkHasLoadFactor()
flags()public int serverType()
public void serverType(int serverType)
serverType - the server typepublic void applyHasType()
flags(int)public boolean checkHasType()
flags()public void serverIndex(long serverIndex)
serverIndex - the server indexpublic long serverIndex()
Copyright @ 2019 Thomson Reuters. All Rights Reserved.