public class PeerMonitor extends EventListenerBaseClass implements Runnable
EventListenerBaseClass.AutoClose| Modifier and Type | Method and Description |
|---|---|
void |
addSipsToMonitor() |
Peer |
findPeer(EndPoint peerEndPoint) |
static PeerMonitor |
getInstance() |
Iterator<Peer> |
getIterator() |
ListenerPriority |
getPriority()
Set the listeners priority.
|
static void |
init(NewExtensionListener _listener)
needs to notify PhoneBookDisplayController.getInstance().addExtensions();
|
void |
onManagerEvent(ManagerEvent event)
Called for each manager event that the connection receives for which the
filterEvent returned true.
|
Peer |
registerPeer(Channel newChannel) |
Peer |
registerPeer(EndPoint endPoint) |
HashSet<Class<? extends ManagerEvent>> |
requiredEvents()
Called whenever the listener is first added and any time any listener is
removed to refresh the list of required events.
|
void |
run()
Runs the mark and sweep operation every 120 seconds on all channels to
clean up any channels that have died and for which (for some reason) we
missed the hangup event.
|
void |
startSweep()
Check every channel to make certain they are still active.
|
void |
stop() |
close, getName, startListenergetDumpRateLimit, withLockpublic static void init(NewExtensionListener _listener)
_listener - public static PeerMonitor getInstance()
public void addSipsToMonitor()
public HashSet<Class<? extends ManagerEvent>> requiredEvents()
FilteredManagerListenerrequiredEvents in interface FilteredManagerListener<ManagerEvent>public void onManagerEvent(ManagerEvent event)
FilteredManagerListeneronManagerEvent in interface FilteredManagerListener<ManagerEvent>public void stop()
public void run()
public void startSweep()
public ListenerPriority getPriority()
FilteredManagerListenergetPriority in interface FilteredManagerListener<ManagerEvent>Copyright © 2004–2024. All rights reserved.