| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.pluginsimpl.local.download.DownloadEventNotifierImpl
public class DownloadEventNotifierImpl
This is an implementation of DownloadEventNotifier to be simplify life for plugins if they want to register event listeners across all downloads managed by Azureus.
| Constructor Summary | |
|---|---|
DownloadEventNotifierImpl(DownloadManager dm)
 | 
|
| Method Summary | |
|---|---|
 void | 
addActivationListener(DownloadActivationListener l)
Adds a listener that will be invoked when a request is made to activate a torrent.  | 
 void | 
addAttributeListener(DownloadAttributeListener listener,
                     TorrentAttribute ta,
                     int event_type)
Adds a listener that will be informed of when attributes on a download have been read / modified.  | 
 void | 
addCompletionListener(DownloadCompletionListener l)
Adds a listener that will be informed when a download moves into a completed state.  | 
 void | 
addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
Adds a listener that will be informed when a download is about to be removed.  | 
 void | 
addListener(DownloadListener l)
Adds a listener that will be informed of changes to a download's state.  | 
 void | 
addPeerListener(DownloadPeerListener l)
Adds a listener that will be informed of when peer managers have been added / removed for a download.  | 
 void | 
addPropertyListener(DownloadPropertyListener l)
Adds a listener that will be informed of when properties on a download have been read / modified.  | 
 void | 
addTrackerListener(DownloadTrackerListener l)
Adds a listener that will be informed when the latest announce/scrape results change.  | 
 void | 
addTrackerListener(DownloadTrackerListener l,
                   boolean immediateTrigger)
Adds a listener that will be informed when the latest announce/scrape results change.  | 
 void | 
removeActivationListener(DownloadActivationListener l)
Removes a listener object added via the DownloadEventNotifier.addActivationListener(DownloadActivationListener) method. | 
 void | 
removeAttributeListener(DownloadAttributeListener listener,
                        TorrentAttribute ta,
                        int event_type)
Removes a listener object added via the {@link #addAttributeListener(DownloadAttributeListener, TorrentAttribute, int) method.  | 
 void | 
removeCompletionListener(DownloadCompletionListener l)
Removes a listener object removed via the DownloadEventNotifier.addCompletionListener(DownloadCompletionListener) method. | 
 void | 
removeDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
Removes a listener object added via the DownloadEventNotifier.addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener)
 method. | 
 void | 
removeListener(DownloadListener l)
Removes a listener object added via the #addDownloadListener(DownloadListener) method. | 
 void | 
removePeerListener(DownloadPeerListener l)
Removes a listener object added via the DownloadEventNotifier.addPeerListener(DownloadPeerListener) method. | 
 void | 
removePropertyListener(DownloadPropertyListener l)
Removes a listener object added via the DownloadEventNotifier.addPropertyListener(DownloadPropertyListener) method. | 
 void | 
removeTrackerListener(DownloadTrackerListener l)
Removes a listener object added via the DownloadEventNotifier.addTrackerListener(DownloadTrackerListener) or
 DownloadEventNotifier.addTrackerListener(DownloadTrackerListener, boolean) method. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DownloadEventNotifierImpl(DownloadManager dm)
| Method Detail | 
|---|
public void addActivationListener(DownloadActivationListener l)
DownloadEventNotifier
addActivationListener in interface DownloadEventNotifierl - The listener to add.public void addCompletionListener(DownloadCompletionListener l)
DownloadEventNotifier
addCompletionListener in interface DownloadEventNotifierl - The listener to add.public void addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
DownloadEventNotifier
addDownloadWillBeRemovedListener in interface DownloadEventNotifierl - The listener to add.public void addListener(DownloadListener l)
DownloadEventNotifier
addListener in interface DownloadEventNotifierl - The listener to add.public void addPeerListener(DownloadPeerListener l)
DownloadEventNotifier
addPeerListener in interface DownloadEventNotifierl - The listener to add.public void addPropertyListener(DownloadPropertyListener l)
DownloadEventNotifier
addPropertyListener in interface DownloadEventNotifierl - The listener to add.public void addTrackerListener(DownloadTrackerListener l)
DownloadEventNotifierListener events will be immediately triggered after the listener has been added.
addTrackerListener in interface DownloadEventNotifierl - The listener to add.
public void addTrackerListener(DownloadTrackerListener l,
                               boolean immediateTrigger)
DownloadEventNotifier
addTrackerListener in interface DownloadEventNotifierl - The listener to add.immediateTrigger - Whether to immediately trigger listener's events.public void removeActivationListener(DownloadActivationListener l)
DownloadEventNotifierDownloadEventNotifier.addActivationListener(DownloadActivationListener) method.
removeActivationListener in interface DownloadEventNotifierl - The listener to remove.public void removeCompletionListener(DownloadCompletionListener l)
DownloadEventNotifierDownloadEventNotifier.addCompletionListener(DownloadCompletionListener) method.
removeCompletionListener in interface DownloadEventNotifierl - The listener to remove.public void removeDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
DownloadEventNotifierDownloadEventNotifier.addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener)
 method.
removeDownloadWillBeRemovedListener in interface DownloadEventNotifierl - The listener to remove.public void removeListener(DownloadListener l)
DownloadEventNotifier#addDownloadListener(DownloadListener) method.
removeListener in interface DownloadEventNotifierl - The listener to remove.public void removePeerListener(DownloadPeerListener l)
DownloadEventNotifierDownloadEventNotifier.addPeerListener(DownloadPeerListener) method.
removePeerListener in interface DownloadEventNotifierl - The listener to remove.public void removePropertyListener(DownloadPropertyListener l)
DownloadEventNotifierDownloadEventNotifier.addPropertyListener(DownloadPropertyListener) method.
removePropertyListener in interface DownloadEventNotifierl - The listener to remove.public void removeTrackerListener(DownloadTrackerListener l)
DownloadEventNotifierDownloadEventNotifier.addTrackerListener(DownloadTrackerListener) or
 DownloadEventNotifier.addTrackerListener(DownloadTrackerListener, boolean) method.
removeTrackerListener in interface DownloadEventNotifierl - The listener to remove.
public void addAttributeListener(DownloadAttributeListener listener,
                                 TorrentAttribute ta,
                                 int event_type)
DownloadEventNotifier
addAttributeListener in interface DownloadEventNotifierlistener - The listener to add.ta - The torrent attribute to be notified about.event_type - The type of event to be notified of, as defined on DownloadAttributeListener.
public void removeAttributeListener(DownloadAttributeListener listener,
                                    TorrentAttribute ta,
                                    int event_type)
DownloadEventNotifier
removeAttributeListener in interface DownloadEventNotifierlistener - The listener to remove.ta - The torrent attribute which it registered with.event_type - The type of event which it registered with.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||