public class FailoverConnectionMonitor extends java.lang.Object implements RegistrationStateChangeListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FAILOVER_CHECK_INTERVAL_PROP
Property to specify the interval between checks when in failover state.
|
static java.lang.String |
REVERSE_FAILOVER_ENABLED_PROP
Property to enable/disable failover functionality.
|
Modifier and Type | Method and Description |
---|---|
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(java.lang.String serviceName,
java.lang.String currentAddress)
Sets current values that PP will use for connecting.
|
public static final java.lang.String REVERSE_FAILOVER_ENABLED_PROP
public static final java.lang.String FAILOVER_CHECK_INTERVAL_PROP
public static FailoverConnectionMonitor getInstance(ProtocolProviderServiceJabberImpl provider)
provider
- the povider for the monitor we will returnvoid setCurrent(java.lang.String serviceName, java.lang.String currentAddress)
serviceName
- the service name.currentAddress
- the current address used.public void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged
in interface RegistrationStateChangeListener
evt
- the event
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.