/** * A publish has been started by the filesharing application. * * @param initiator : the initiator of the publish * @param keyToPublish : the key that has to be published * @param queryUID : a query UID that is consistent with the equals() method. */ public void publishStarted(OverlayContact initiator, int keyToPublish, Object queryUID) { for (FSEventListener l : listeners) l.publishStarted(initiator, keyToPublish, queryUID); }
/** * A lookup started by the filesharing application has succeeded. * * @param initiator : the initiator of the lookup * @param queryUID : a query UID that is consistent with the equals() method. * @param hops : the number of hops that were done to make the lookup */ public void lookupSucceeded(OverlayContact initiator, Object queryUID, int hops) { for (FSEventListener l : listeners) l.lookupSucceeded(initiator, queryUID, hops); }
/** * A lookup has made a hop at a contact. * * @param queryUID : a query UID that is consistent with the equals() method. * @param hop : the contact where the query hopped. */ public void lookupMadeHop(Object queryUID, OverlayContact hop) { for (FSEventListener l : listeners) l.lookupMadeHop(queryUID, hop); }
/** * A lookup has been started by the filesharing application. * * @param initiator : the initiator of the lookup * @param queryUID : a query UID that is consistent with the equals() method. */ public void lookupStarted(OverlayContact initiator, Object queryUID) { for (FSEventListener l : listeners) l.lookupStarted(initiator, queryUID); }
/** * A publish started by the filesharing application has succeeded. * * @param initiator : the initiator of the publish * @param holder : the holder of the resource that has been published. * @param keyPublished : the key that has been published * @param queryUID : a query UID that is consistent with the equals() method. */ public void publishSucceeded( OverlayContact initiator, OverlayContact holder, int keyPublished, Object queryUID) { for (FSEventListener l : listeners) l.publishSucceeded(initiator, holder, keyPublished, queryUID); }