Back to index
|Notification that this collector should be enabled. |
|Notification that this collector is no longer enabled. |
|Notification that the MetricsService is starting a new event log. |
The nsIMetricsCollector interface is implemented by any object that collects data on behalf of the MetricsService.
When the configuration file reequests collector "foo" in namespace "http://www.mozilla.org/metrics", the contract id "@mozilla.org/metrics/collector;1?name=http://www.mozilla.org/metrics:foo" is instantiated (using getSerivce). The collector is responsible for calling nsIMetricsService::logEvent() when it has something to log.
Notification that this collector should be enabled.
The collector should register itself for observer and event notifications as necessary.
Notification that this collector is no longer enabled.
The collector should unregister itself from observer and event notifications so that the object can be freed.
Notification that the MetricsService is starting a new event log.
This happens after any onDetach() notifications that result from parsing the new configuration.