IGApplicationConfiguration.IGServerInfo
, java.io.Serializable
, java.lang.Cloneable
GCOMApplicationConfiguration.GCOMServerInfo
public static class GApplicationConfiguration.GServerInfo extends java.lang.Object implements IGApplicationConfiguration.IGServerInfo, java.lang.Cloneable, java.io.Serializable
CfgServer
,
Serialized FormConstructor | Description |
---|---|
GServerInfo() |
Default empty constructor.
|
GServerInfo(IGApplicationConfiguration.IGServerInfo conf) |
Modifier and Type | Method | Description |
---|---|---|
GApplicationConfiguration.GServerInfo |
clone() |
|
protected java.lang.String |
contentToString() |
This method is used from
toString() to build
string representation of the internal content (configuration properties names and values). |
boolean |
equals(java.lang.Object obj) |
|
java.lang.Integer |
getAttempts() |
Returns number of attempts to connect to this server before trying
to connect to the backup server.
|
IGApplicationConfiguration |
getBackup() |
Returns description of server which is to be contacted if connection to this server fails.
|
IGApplicationConfiguration.IGHost |
getHost() |
Returns reference to structure describing host where this server resides.
|
java.lang.String |
getPort() |
Returns name of the port to connect to on the target server.
|
java.lang.Integer |
getTimeout() |
Returns reconnect timeout for connection to the target application.
|
int |
hashCode() |
|
void |
setAttempts(java.lang.Integer attempts) |
Sets number of attempts to connect to this server before trying
to connect to the backup server.
|
void |
setBackup(IGApplicationConfiguration backup) |
Sets reference to description of server which is to be contacted if connection to this server fails.
|
void |
setHost(IGApplicationConfiguration.IGHost host) |
Sets reference to structure describing host where this server resides.
|
void |
setPort(java.lang.String port) |
Sets name of the port to connect to on the target server.
|
void |
setTimeout(java.lang.Integer timeout) |
Sets reconnect timeout for connection to the target application.
|
java.lang.String |
toString() |
public GServerInfo()
public GServerInfo(IGApplicationConfiguration.IGServerInfo conf)
conf
- original configurationpublic java.lang.String getPort()
getPort
in interface IGApplicationConfiguration.IGServerInfo
CfgServer.getPort()
public java.lang.Integer getTimeout()
getTimeout
in interface IGApplicationConfiguration.IGServerInfo
CfgServer.getTimeout()
public java.lang.Integer getAttempts()
getAttempts
in interface IGApplicationConfiguration.IGServerInfo
CfgServer.getAttempts()
public IGApplicationConfiguration getBackup()
getBackup
in interface IGApplicationConfiguration.IGServerInfo
CfgServer.getBackupServer()
public IGApplicationConfiguration.IGHost getHost()
getHost
in interface IGApplicationConfiguration.IGServerInfo
IGApplicationConfiguration.IGHost
,
CfgServer.getHost()
public void setPort(java.lang.String port)
port
- target port name/idCfgServer.getPort()
public void setTimeout(java.lang.Integer timeout)
timeout
- reconnect timeout in secondsCfgServer.getTimeout()
public void setAttempts(java.lang.Integer attempts)
attempts
- reconnect attempts number or nullCfgServer.getAttempts()
public void setBackup(IGApplicationConfiguration backup)
backup
- reference to description of backup server application or nullCfgServer.getBackupServer()
public void setHost(IGApplicationConfiguration.IGHost host)
host
- the host description structureIGApplicationConfiguration.IGHost
,
CfgServer.getHost()
public GApplicationConfiguration.GServerInfo clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String contentToString()
toString()
to build
string representation of the internal content (configuration properties names and values).toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.