|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.configuration.GApplicationConfiguration.GServerInfo
public static class GApplicationConfiguration.GServerInfo
This structure represents group of server type specific application properties.
CfgServer
,
Serialized FormConstructor Summary | |
---|---|
GApplicationConfiguration.GServerInfo()
Default empty constructor. |
|
GApplicationConfiguration.GServerInfo(IGApplicationConfiguration.IGServerInfo conf)
Coping constructor. Note: it does not clone referred structures Host ,
Backup , etc. |
Method Summary | |
---|---|
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). |
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GApplicationConfiguration.GServerInfo()
public GApplicationConfiguration.GServerInfo(IGApplicationConfiguration.IGServerInfo conf)
Host
,
Backup
, etc.
conf
- original configurationMethod Detail |
---|
public 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)
portName
- 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()
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |