}
@Override
public void make() throws RedirectException {
final WoTIdentityManager identityManager = mFreetalk.getIdentityManager();
final WoTMessageManager messageManager = mFreetalk.getMessageManager();
synchronized(identityManager)
{
HTMLNode statsbox = addContentBox(l10n().getString("StatisticsPage.IdentityStatistics.Title"));
statsbox.addChild("p", l10n().getString("StatisticsPage.IdentityStatistics.NonOwnIdentities") + " " + identityManager.countKnownIdentities());
statsbox.addChild("p", l10n().getString("StatisticsPage.IdentityStatistics.OwnIdentities") + " " + identityManager.ownIdentityIterator().size());
}
synchronized(messageManager) {
{
HTMLNode statsbox = addContentBox(l10n().getString("StatisticsPage.MessageListStatistics.Title"));
statsbox.addChild("p", l10n().getString("StatisticsPage.MessageListStatistics.MessageListEditionSum") + " " + computeMessageListEditionSum());
statsbox.addChild("p", l10n().getString("StatisticsPage.MessageListStatistics.FetchedMessageListCount") + " " + messageManager.countNonOwnMessageLists());
statsbox.addChild("p", l10n().getString("StatisticsPage.MessageListStatistics.KnownMessageCount") + " " + messageManager.countNonOwnMessageListMessageReferences());
statsbox.addChild("p", l10n().getString("StatisticsPage.MessageListStatistics.MessageFetchQueueSize") + " " + messageManager.notDownloadedMessageIterator().size());
}
{
HTMLNode statsbox = addContentBox(l10n().getString("StatisticsPage.MessageStatistics.Title"));
final int ownMessageCount = messageManager.countOwnMessages();
statsbox.addChild("p", l10n().getString("StatisticsPage.MessageStatistics.NonOwnMessageCount") + " " + (messageManager.countMessages() - ownMessageCount));
statsbox.addChild("p", l10n().getString("StatisticsPage.MessageStatistics.OwnMessageCount") + " " + ownMessageCount);
}
{
HTMLNode statsbox = addContentBox(l10n().getString("StatisticsPage.BoardStatistics.Title"));
statsbox.addChild("p", l10n().getString("StatisticsPage.BoardStatistics.BoardCount") + " " + messageManager.boardIteratorSortedByName().size());
statsbox.addChild("p", l10n().getString("StatisticsPage.BoardStatistics.SubscribedBoardCount") + " " + messageManager.subscribedBoardIterator().size());
statsbox.addChild("p", l10n().getString("StatisticsPage.BoardStatistics.BoardMessageCount") + " " + computeBoardMessageCount());
statsbox.addChild("p", l10n().getString("StatisticsPage.BoardStatistics.SubscribedBoardMessageCount") + " " + computeSubscribedBoardMessageCount());
}
}