Commit 2f92754c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

1) clustering fixed 2) navigation to room fixed

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10332 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5bf0c0bb
......@@ -50,6 +50,13 @@ Monitoring Plugin Changelog
<li>Compatible version with Openfire 3.6.0. </li>
</ul>
<p><b>1.0.1</b> -- May 1, 2008</p>
<ul>
<li>Dashboard was not working when running in a cluster.</li>
<li>Fixed navitation to room from dashboard.</li>
</ul>
<p><b>1.0.0</b> -- April 24, 2008</p>
<ul>
......
......@@ -274,7 +274,17 @@ public class StatsEngine implements Startable {
public void run() {
if (!ClusterManager.isSeniorClusterMember()) {
// Do not create new samples of the statistics since we are not the senior cluster member
// Create statistics definitions but do not sample them since we are not the senior cluster member
for (Map.Entry<String, Statistic> statisticEntry : statsManager.getAllStatistics()) {
String key = statisticEntry.getKey();
StatDefinition def = createDefintion(key);
// Check to see if this stat belongs to a multi-stat and if that multi-stat group
// has been completly defined
String group = statsManager.getMultistatGroup(key);
if (group != null) {
checkAndCreateGroup(group, def, false);
}
}
return;
}
long newTime = getLastMinute();
......
......@@ -764,13 +764,13 @@ function createCookie(name,value,days) {
// Display "group conversation" with a link to the room occupants
/*participantNames = LocaleUtils.getLocalizedString(
"archive.group_conversation", "monitoring", Arrays.asList(
"<a href='../../muc-room-occupants.jsp?roomName=" +
URLEncoder.encode(conversation.getRoom().getNode(),
"<a href='../../muc-room-occupants.jsp?roomJID=" +
URLEncoder.encode(conversation.getRoom().toBareJID(),
"UTF-8") + "'>", "</a>"));*/
participantNames = LocaleUtils.getLocalizedString("dashboard.group_conversation", "monitoring");
participantNames += "<br/>";
participantNames += "(<i>" + LocaleUtils.getLocalizedString("muc.room.summary.room") + ": <a href='../../muc-room-occupants.jsp?roomName=" + URLEncoder.encode(conversation.getRoom().getNode(),"UTF-8") + "'>" + conversation.getRoom().getNode() + "</a></i>)";
participantNames += "(<i>" + LocaleUtils.getLocalizedString("muc.room.summary.room") + ": <a href='../../muc-room-occupants.jsp?roomJID=" + URLEncoder.encode(conversation.getRoom().toBareJID(),"UTF-8") + "'>" + conversation.getRoom().getNode() + "</a></i>)";
}
activityTime =
StatsAction.formatTimeLong(conversation.getLastActivity());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment