Table of Contents Previous Section
Accessing Statistics
If your application has a WOStats page, you can look at the statistics that WOStatisticsStore gathers. WOStats is a reusable component stored in the WOExtensions framework (which WebObjects applications link to by default). While your application is running, you can access the WOStats page with a URL like the following:
http://localhost/cgi-bin/WebObjects/MyApp.woa/wa/WOStatsNote: You can access any component directly using a URL with this form.
Figure 37 shows a WOStats page.
Figure 37. WOStats Page
// WebScriptFor a list of keys to this dictionary, see the WOStatisticsStore class specification in the WebObjects Class Reference.
NSDictionary *myDict = [[[self application] statisticsStore]
statistics]; // Java
NSDictionary myDict =
this.application().statisticsStore().statistics;
Note that this dictionary is created on demand. It is costly to call this method repeatedly.
Table of Contents Next Section