org.resilientedge.jockey.peerbridge
Interface PBDirectoryListener


public interface PBDirectoryListener

A listener that is called when peers and groups are discovered, finds are started, completed, or timed out.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Method Summary
 void discoveredGroups(PBFindMarker marker, java.util.ArrayList groups)
          Notify listener that groups were discovered.
 void discoveredPeers(PBFindMarker marker, java.util.ArrayList peers)
          Notify listener that peers were discovered.
 void findCancelled(PBFindMarker marker)
          Notify listener that a find attempt was cancelled.
 void findFinished(PBFindMarker marker)
          Notify listener that a find attempt has finished.
 void findStarted(PBFindMarker marker)
          Notify listener that a find attempt was started.
 

Method Detail

discoveredPeers

public void discoveredPeers(PBFindMarker marker,
                            java.util.ArrayList peers)
Notify listener that peers were discovered.
Parameters:
marker - marker representing the find attempt for which the results are being returned.
peers - an arraylist of peers that were found

discoveredGroups

public void discoveredGroups(PBFindMarker marker,
                             java.util.ArrayList groups)
Notify listener that groups were discovered.
Parameters:
marker - marker representing the find attempt for which the results are being returned.
groups - an arraylist of groups that were found

findStarted

public void findStarted(PBFindMarker marker)
Notify listener that a find attempt was started.
Parameters:
marker - marker representing the find attempt which was started

findFinished

public void findFinished(PBFindMarker marker)
Notify listener that a find attempt has finished.
Parameters:
marker - marker representing the find attempt which finished

findCancelled

public void findCancelled(PBFindMarker marker)
Notify listener that a find attempt was cancelled.
Parameters:
marker - marker representing the find attempt which was cancelled


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.