Allow reporters to be registered for different report types and the type to be
specified at report generation time. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5564 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -45,9 +45,7 @@ public interface PeerService extends InvocationService
|
||||
* Generates a server status report for this peer and returns it to the supplied listener. The
|
||||
* result must be a string.
|
||||
*
|
||||
* @param type the default implementation always generates a state of the server report, but
|
||||
* derived classes can request different report types from their peers to take advantage of
|
||||
* this convenient mechanism for collecting per-peer data.
|
||||
* @param type the type of report to generate. See ReportManager for more information.
|
||||
*/
|
||||
void generateReport (Client client, String type, ResultListener listener);
|
||||
}
|
||||
|
||||
@@ -765,7 +765,7 @@ public abstract class PeerManager
|
||||
PeerService.ResultListener listener)
|
||||
throws InvocationException
|
||||
{
|
||||
listener.requestProcessed(_repmgr.generateReport());
|
||||
listener.requestProcessed(_repmgr.generateReport(type));
|
||||
}
|
||||
|
||||
// from interface ClientManager.ClientObserver
|
||||
|
||||
Reference in New Issue
Block a user