|
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.netaddr.NetworkConfigurationWatcher
public class NetworkConfigurationWatcher
Periodically checks the current network interfaces to track changes and fire events on those changes.
| Constructor Summary | |
|---|---|
NetworkConfigurationWatcher()
Inits configuration watcher. |
|
| Method Summary | |
|---|---|
void |
activityChanged(SystemActivityEvent event)
This method gets called when a notification action for a particular event type has been changed. |
(package private) void |
addNetworkConfigurationChangeListener(NetworkConfigurationChangeListener listener)
Adds new NetworkConfigurationChangeListener which will be informed for network configuration changes. |
static boolean |
isInterfaceLoopback(NetworkInterface iface)
Determines whether or not the iface interface is a loopback interface. |
static boolean |
isInterfaceUp(NetworkInterface iface)
Determines, if possible, whether or not the iface interface is up. |
(package private) void |
removeNetworkConfigurationChangeListener(NetworkConfigurationChangeListener listener)
Remove NetworkConfigurationChangeListener. |
void |
run()
Main loop of this thread. |
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
When new protocol provider is registered we add needed listeners. |
(package private) void |
stop()
Stop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
NetworkConfigurationWatcher()
| Method Detail |
|---|
void addNetworkConfigurationChangeListener(NetworkConfigurationChangeListener listener)
listener - the listener.void removeNetworkConfigurationChangeListener(NetworkConfigurationChangeListener listener)
listener - the listener.public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged in interface org.osgi.framework.ServiceListenerserviceEvent - ServiceEventvoid stop()
public static boolean isInterfaceLoopback(NetworkInterface iface)
iface - the interface that we'd like to determine as loopback or not.
public static boolean isInterfaceUp(NetworkInterface iface)
NetworkInterface's isUp() when running a JVM that
supports it and return a default value otherwise.
iface - the interface that we'd like to determine as Up or Down.
public void activityChanged(SystemActivityEvent event)
activityChanged in interface SystemActivityChangeListenerevent - the NotificationActionTypeEvent, which is
dispatched when an action has been changed.public void run()
run in interface Runnable
|
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 | |||||||||