|
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.warmstandby.WarmStandbyConfiguration
public class WarmStandbyConfiguration
The WarmStandbyConfiguration class contains redundancy configuration options, including:
Field Summary | |
---|---|
static int |
MAX_TIMEOUT
Maximum timeout/delay between channel reopening attempts. |
Constructor Summary | |
---|---|
WarmStandbyConfiguration(Endpoint activeEndpoint,
Endpoint standbyEndpoint)
Creates a WarmStandbyConfiguration instance. |
|
WarmStandbyConfiguration(Endpoint activeEndpoint,
Endpoint standbyEndpoint,
int timeout,
short attempts)
Creates a WarmStandbyConfiguration instance. |
|
WarmStandbyConfiguration(Endpoint activeEndpoint,
Endpoint standbyEndpoint,
int timeout,
short attempts,
short switchovers)
Creates a WarmStandbyConfiguration instance. |
|
WarmStandbyConfiguration(Endpoint activeEndpoint,
Endpoint standbyEndpoint,
int timeout,
short attempts,
short switchovers,
int firstReconnectTimeout)
Creates a WarmStandbyConfiguration instance. |
Method Summary | |
---|---|
Endpoint |
getActiveEndpoint()
Gets the active endpoint. |
java.lang.Short |
getAttempts()
Gets the maximum number of reconnection attempts. |
java.lang.Integer |
getFirstReconnectTimeout()
Gets timeout (in milliseconds) of first fast reconnect. |
Endpoint |
getStandbyEndpoint()
Gets the standby endpoint. |
java.lang.Short |
getSwitchovers()
Gets the number of primary/backup switchovers. |
java.lang.Integer |
getTimeout()
Gets the timeout (in milliseconds) between the reconnection attempts. |
void |
setActiveEndpoint(Endpoint newActiveEndpoint)
Sets the active endpoint. |
void |
setAttempts(java.lang.Short attemptsNum)
Sets the maximum number of reconnection attempts. |
void |
setFirstReconnectTimeout(java.lang.Integer firstReconnectTimeout)
Sets timeout of first fast reconnect. |
void |
setStandbyEndpoint(Endpoint newStandbyEndpoint)
Sets the standby endpoint. |
void |
setSwitchovers(java.lang.Short switchoversNum)
Sets the number of primary/backup switchovers. |
void |
setTimeout(java.lang.Integer newTimeout)
Sets the newTimeout (in milliseconds) between the reconnection attempts. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_TIMEOUT
Constructor Detail |
---|
public WarmStandbyConfiguration(Endpoint activeEndpoint, Endpoint standbyEndpoint)
activeEndpoint
- channel's Active EndpointstandbyEndpoint
- channel's Standby Endpointpublic WarmStandbyConfiguration(Endpoint activeEndpoint, Endpoint standbyEndpoint, int timeout, short attempts)
activeEndpoint
- channel's Active EndpointstandbyEndpoint
- channel's Standby Endpointtimeout
- timeout between reconnection attempts (in milliseconds)attempts
- number of reconnection attemptspublic WarmStandbyConfiguration(Endpoint activeEndpoint, Endpoint standbyEndpoint, int timeout, short attempts, short switchovers)
activeEndpoint
- channel's Active EndpointstandbyEndpoint
- channel's Standby Endpointtimeout
- timeout between reconnection attempts (in milliseconds)attempts
- number of reconnection attemptsswitchovers
- number of primary/backup switchoverspublic WarmStandbyConfiguration(Endpoint activeEndpoint, Endpoint standbyEndpoint, int timeout, short attempts, short switchovers, int firstReconnectTimeout)
activeEndpoint
- channel's Active EndpointstandbyEndpoint
- channel's Standby Endpointtimeout
- timeout between reconnection attempts (in milliseconds)attempts
- number of reconnection attemptsswitchovers
- number of primary/backup switchoversfirstReconnectTimeout
- timeout of first fast reconnectMethod Detail |
---|
public final Endpoint getActiveEndpoint()
public final void setActiveEndpoint(Endpoint newActiveEndpoint)
newActiveEndpoint
- active endpointpublic final Endpoint getStandbyEndpoint()
public final void setStandbyEndpoint(Endpoint newStandbyEndpoint)
newStandbyEndpoint
- standby endpointpublic final java.lang.Short getSwitchovers()
public final void setSwitchovers(java.lang.Short switchoversNum)
switchoversNum
- the number of primary/backup switchoverspublic final java.lang.Integer getTimeout()
public final void setTimeout(java.lang.Integer newTimeout)
newTimeout
- the new timeout value in millisecondspublic final java.lang.Short getAttempts()
public final void setAttempts(java.lang.Short attemptsNum)
attemptsNum
- the number of reconnection attemptspublic java.lang.Integer getFirstReconnectTimeout()
public void setFirstReconnectTimeout(java.lang.Integer firstReconnectTimeout)
firstReconnectTimeout
- timeout of first fast reconnect in milliseconds.public java.lang.String toString()
toString
in class java.lang.Object
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |