Platform SDK Java 8.5 API Reference

com.genesyslab.platform.apptemplate.configuration
Class GApplicationConfiguration.GServerInfo

java.lang.Object
  extended by com.genesyslab.platform.apptemplate.configuration.GApplicationConfiguration.GServerInfo
All Implemented Interfaces:
IGApplicationConfiguration.IGServerInfo, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
GCOMApplicationConfiguration.GCOMServerInfo
Enclosing class:
GApplicationConfiguration

public static class GApplicationConfiguration.GServerInfo
extends java.lang.Object
implements IGApplicationConfiguration.IGServerInfo, java.lang.Cloneable, java.io.Serializable

This structure represents group of server type specific application properties.

See Also:
CfgServer, Serialized Form

Constructor 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

GApplicationConfiguration.GServerInfo

public GApplicationConfiguration.GServerInfo()
Default empty constructor. Creates uninitialized configuration object.


GApplicationConfiguration.GServerInfo

public GApplicationConfiguration.GServerInfo(IGApplicationConfiguration.IGServerInfo conf)
Coping constructor.
Note: it does not clone referred structures Host, Backup, etc.

Parameters:
conf - original configuration
Method Detail

getPort

public java.lang.String getPort()
Returns name of the port to connect to on the target server.

Specified by:
getPort in interface IGApplicationConfiguration.IGServerInfo
Returns:
target port name/id
See Also:
CfgServer.getPort()

getTimeout

public java.lang.Integer getTimeout()
Returns reconnect timeout for connection to the target application.

Specified by:
getTimeout in interface IGApplicationConfiguration.IGServerInfo
Returns:
reconnect timeout in seconds
See Also:
CfgServer.getTimeout()

getAttempts

public java.lang.Integer getAttempts()
Returns number of attempts to connect to this server before trying to connect to the backup server.

Specified by:
getAttempts in interface IGApplicationConfiguration.IGServerInfo
Returns:
reconnect attempts number or null
See Also:
CfgServer.getAttempts()

getBackup

public IGApplicationConfiguration getBackup()
Returns description of server which is to be contacted if connection to this server fails.

Specified by:
getBackup in interface IGApplicationConfiguration.IGServerInfo
Returns:
reference to description of backup server application or null
See Also:
CfgServer.getBackupServer()

getHost

public IGApplicationConfiguration.IGHost getHost()
Returns reference to structure describing host where this server resides.

Specified by:
getHost in interface IGApplicationConfiguration.IGServerInfo
Returns:
the host description structure
See Also:
IGApplicationConfiguration.IGHost, CfgServer.getHost()

setPort

public void setPort(java.lang.String port)
Sets name of the port to connect to on the target server.

Parameters:
portName - target port name/id
See Also:
CfgServer.getPort()

setTimeout

public void setTimeout(java.lang.Integer timeout)
Sets reconnect timeout for connection to the target application.

Parameters:
timeout - reconnect timeout in seconds
See Also:
CfgServer.getTimeout()

setAttempts

public void setAttempts(java.lang.Integer attempts)
Sets number of attempts to connect to this server before trying to connect to the backup server.

Parameters:
attempts - reconnect attempts number or null
See Also:
CfgServer.getAttempts()

setBackup

public void setBackup(IGApplicationConfiguration backup)
Sets reference to description of server which is to be contacted if connection to this server fails.

Parameters:
backup - reference to description of backup server application or null
See Also:
CfgServer.getBackupServer()

setHost

public void setHost(IGApplicationConfiguration.IGHost host)
Sets reference to structure describing host where this server resides.

Parameters:
host - the host description structure
See Also:
IGApplicationConfiguration.IGHost, CfgServer.getHost()

clone

public GApplicationConfiguration.GServerInfo clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

contentToString

protected java.lang.String contentToString()
This method is used from toString() to build string representation of the internal content (configuration properties names and values).

Returns:
string representation of the configuration content
See Also:
toString()

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.