|
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.applicationblocks.com.CfgBase
com.genesyslab.platform.applicationblocks.com.CfgStructure
com.genesyslab.platform.applicationblocks.com.objects.CfgServer
public class CfgServer
A server. When an application is designated as a backup server for another server, values of the following parameters of this application will be automatically changed to match the values of the same parameters of the primary server:
appServerDBIDs
tenantDBIDs
flexibleProperties
.
Constructor Summary | |
---|---|
CfgServer(IConfService confService,
ConfStructure objData,
ICfgObject parent)
This constructor is intended for creation of structures from external or imported XML data. |
|
CfgServer(IConfService confService,
ICfgObject parent)
This constructor is intended for creation of detached objects. |
|
CfgServer(IConfService confService,
org.w3c.dom.Node xmlData,
ICfgObject parent)
This constructor is intended for creation of structures from external or imported XML data. |
Method Summary | |
---|---|
java.lang.Integer |
getAttempts()
Number of attempts to connect to this server before trying to connect to the backup server. |
CfgApplication |
getBackupServer()
An identifier of the
Server
which is to be contacted if connection
to this server fails. |
java.lang.Integer |
getBackupServerDBID()
Retrieves the dbid of the object that is being linked to by the BackupServer property. |
CfgHost |
getHost()
A unique identifier of the
CfgHost
where this server resides. |
java.lang.Integer |
getHostDBID()
Retrieves the dbid of the object that is being linked to by the Host property. |
java.lang.String |
getPort()
A pointer to the name of the port which client applications should use to open communication sessions to this server. |
java.lang.Integer |
getTimeout()
Time-out in seconds that the application should run before making a re-connect attempt after a communication session with this server has failed. |
void |
setAttempts(java.lang.Integer value)
Number of attempts to connect to this server before trying to connect to the backup server. |
void |
setBackupServer(CfgApplication value)
An identifier of the
Server
which is to be contacted if connection
to this server fails. |
void |
setBackupServerDBID(int dbid)
An identifier of the
Server
which is to be contacted if connection
to this server fails. |
void |
setHost(CfgHost value)
A unique identifier of the
CfgHost
where this server resides. |
void |
setHostDBID(int dbid)
A unique identifier of the
CfgHost
where this server resides. |
void |
setPort(java.lang.String value)
A pointer to the name of the port which client applications should use to open communication sessions to this server. |
void |
setTimeout(java.lang.Integer value)
Time-out in seconds that the application should run before making a re-connect attempt after a communication session with this server has failed. |
Methods inherited from class com.genesyslab.platform.applicationblocks.com.CfgStructure |
---|
getParent, updateChildrenSavedState |
Methods inherited from class com.genesyslab.platform.applicationblocks.com.CfgBase |
---|
clone, ensureDataBackup, equals, flushChildrenContent, getConfigurationService, getData, getEndpoint, getLinkListCollection, getLinkValue, getLogger, getMetaData, getProperty, getProperty, getProperty, getRawObjectData, hashCode, initStruct, isSaved, lockObject, reloadObjectWithNewData, resolveLink, setProperty, toString, toStringProperties, toXml |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.genesyslab.platform.applicationblocks.com.ICfgBase |
---|
getEndpoint, getProperty, getRawObjectData, setProperty, toXml |
Constructor Detail |
---|
public CfgServer(IConfService confService, ConfStructure objData, ICfgObject parent)
confService
- configuration service instanceobjData
- configuration protocol structure dataparent
- instance of configuration object as a parent for this structure instancepublic CfgServer(IConfService confService, org.w3c.dom.Node xmlData, ICfgObject parent)
confService
- configuration service instancexmlData
- XML object containing structure dataparent
- instance of configuration object as a parent for this structure instancepublic CfgServer(IConfService confService, ICfgObject parent)
confService
- configuration service instanceparent
- instance of configuration object as a parent for this structure instanceMethod Detail |
---|
public final CfgHost getHost()
CfgHost
where this server resides. Cannot be changed as long as the server
is associated with at least one client application or a primary
server.
public final void setHost(CfgHost value)
CfgHost
where this server resides. Cannot be changed as long as the server
is associated with at least one client application or a primary
server.
value
- new property valuegetHost()
public final void setHostDBID(int dbid)
CfgHost
where this server resides. Cannot be changed as long as the server
is associated with at least one client application or a primary
server.
dbid
- DBID identifier of referred objectgetHost()
public final java.lang.Integer getHostDBID()
public final java.lang.String getPort()
portInfos
list.
public final void setPort(java.lang.String value)
portInfos
list.
value
- new property valuegetPort()
public final CfgApplication getBackupServer()
Server
which is to be contacted if connection
to this server fails. The backup server must be associated with
the same account (see
ConfSetAccount
) and have the same application
type(CfgAppType
). One backup server cannot be associated with more
than one primary server. See comments.
public final void setBackupServer(CfgApplication value)
Server
which is to be contacted if connection
to this server fails. The backup server must be associated with
the same account (see
ConfSetAccount
) and have the same application
type(CfgAppType
). One backup server cannot be associated with more
than one primary server. See comments.
value
- new property valuegetBackupServer()
public final void setBackupServerDBID(int dbid)
Server
which is to be contacted if connection
to this server fails. The backup server must be associated with
the same account (see
ConfSetAccount
) and have the same application
type(CfgAppType
). One backup server cannot be associated with more
than one primary server. See comments.
dbid
- DBID identifier of referred objectgetBackupServer()
public final java.lang.Integer getBackupServerDBID()
public final java.lang.Integer getTimeout()
10
by default.
public final void setTimeout(java.lang.Integer value)
10
by default.
value
- new property valuegetTimeout()
public final java.lang.Integer getAttempts()
backupServerDBID
is specified. May not be
set to a negative value. Recommended to be set to 1
by default.
public final void setAttempts(java.lang.Integer value)
backupServerDBID
is specified. May not be
set to a negative value. Recommended to be set to 1
by default.
value
- new property valuegetAttempts()
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |