|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.FailoverConnectionMonitor
public class FailoverConnectionMonitor
When provider registers, check whether we are connected to the first server in the dns records, if its not - considers in failover state and start a task that will periodically checks to see if server has come back and when this happens, re-register to it. If in the meanwhile, while in failover state the server we are connected became primary (became with highest priority in srv records) we consider ourselves out of failover state and stop all checks considering as we are connected to primary one.
| Field Summary | |
|---|---|
static String |
FAILOVER_CHECK_INTERVAL_PROP
Property to specify the interval between checks when in failover state. |
static String |
REVERSE_FAILOVER_ENABLED_PROP
Property to enable/disable failover functionality. |
| Method Summary | |
|---|---|
static FailoverConnectionMonitor |
getInstance(ProtocolProviderServiceJabberImpl provider)
Returns instance of the monitor for provider, if missing create it. |
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
Get notified for server registration change events. |
(package private) void |
setCurrent(String serviceName,
String currentAddress)
Sets current values that PP will use for connecting. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REVERSE_FAILOVER_ENABLED_PROP
public static final String FAILOVER_CHECK_INTERVAL_PROP
| Method Detail |
|---|
public static FailoverConnectionMonitor getInstance(ProtocolProviderServiceJabberImpl provider)
provider - the povider for the monitor we will return
void setCurrent(String serviceName,
String currentAddress)
serviceName - the service name.currentAddress - the current address used.public void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged in interface RegistrationStateChangeListenerevt - the event
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||