Skip to content

Commit

Permalink
Merge pull request #6 from GregDThomas/fix-admin-ui
Browse files Browse the repository at this point in the history
Fix issue #3
  • Loading branch information
GregDThomas committed Jan 23, 2019
2 parents 86533d7 + 005c617 commit 1a5729f
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 48 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Expand Up @@ -7,6 +7,6 @@
<author>Tom Evans</author>
<version>${project.version}</version>
<date>tbc</date>
<minServerVersion>4.3.0</minServerVersion>
<minServerVersion>4.0.0</minServerVersion>
<minJavaVersion>1.8</minJavaVersion>
</plugin>
6 changes: 5 additions & 1 deletion pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>plugins</artifactId>
<groupId>org.igniterealtime.openfire</groupId>
<version>4.3.0-beta</version>
<version>4.3.0</version>
</parent>
<groupId>org.igniterealtime.openfire.plugins</groupId>
<artifactId>hazelcast</artifactId>
Expand Down Expand Up @@ -33,6 +33,10 @@
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jspc-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down
9 changes: 0 additions & 9 deletions src/i18n/hazelcast_i18n.properties

This file was deleted.

30 changes: 30 additions & 0 deletions src/java/org/apache/jasper/runtime/JspSourceImports.java
@@ -0,0 +1,30 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jasper.runtime;

import java.util.Set;

/**
* The EL engine needs access to the imports used in the JSP page to configure
* the ELContext. The imports are available at compile time but the ELContext
* is created lazily per page. This interface exposes the imports at runtime so
* that they may be added to the ELContext when it is created.
*/
public interface JspSourceImports {
Set<String> getPackageImports();
Set<String> getClassImports();
}
Expand Up @@ -23,7 +23,6 @@
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;

import org.jivesoftware.openfire.cluster.NodeID;
import org.jivesoftware.util.cache.CacheFactory;
Expand All @@ -35,13 +34,6 @@
*/
public class NodeRuntimeStats {

// This properties file is located in the Hazelcast JAR
private static final ResourceBundle config = ResourceBundle.getBundle("hazelcast-runtime");

public static String getProviderConfig(String key) {
return config.getString(key);
}

/**
* Returns a Map of HazelcastRuntimeStats.NodeInfo objects keyed by cluster Member objects.
* A NodeInfo object is a collection of various Node stats.
Expand Down
6 changes: 6 additions & 0 deletions src/web/WEB-INF/web.xml
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
</web-app>
29 changes: 0 additions & 29 deletions src/web/system-clustering-node.jsp
Expand Up @@ -2,10 +2,6 @@
<%@ page import="org.jivesoftware.openfire.plugin.util.cluster.NodeRuntimeStats,
org.jivesoftware.util.cache.CacheFactory,
com.hazelcast.core.Hazelcast,
com.hazelcast.core.Cluster,
com.hazelcast.core.Member,
com.hazelcast.config.ClasspathXmlConfig,
com.hazelcast.config.Config,
org.jivesoftware.openfire.cluster.ClusterManager,
org.jivesoftware.openfire.cluster.NodeID,
org.jivesoftware.openfire.cluster.ClusterNodeInfo"
Expand All @@ -19,15 +15,10 @@
<%@ page import="java.text.DecimalFormat" %>
<%@ page import="java.text.NumberFormat" %>
<%@ page import="java.util.*" %>
<%@ page import="java.util.LinkedList" %>

<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% webManager.init(request, response, session, application, out ); %>


<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<html>
<head>
<title>Cluster Node Information</title>
Expand Down Expand Up @@ -383,26 +374,6 @@ Cache statistics for this cluster node appear below.

<br /><br />

<div class="jive-table">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
<tr>
<th colspan="2">
Openfire Cluster Details
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="100%">
Hazelcast Version <%= NodeRuntimeStats.getProviderConfig("hazelcast.version") %>
Build <%= NodeRuntimeStats.getProviderConfig("hazelcast.build") %>
</td>
</tr>
</tbody>
</table>
</div>

<br/>

</body>
Expand Down

0 comments on commit 1a5729f

Please sign in to comment.