Sha256: 2ae6c2d08632265638227c1c2d7b65b1a73b8c104f8b2c5535788f6ce9ecc642

Contents?: true

Size: 1.11 KB

Versions: 15

Compression:

Stored size: 1.11 KB

Contents

<%@page contentType="text/html"
	import="java.net.*,java.util.*,java.io.*"%>

<html>
<head>
<title>JBoss-Cloud node info</title>
</head>
<body>

<%
	//borrowed from jmx-console	

	String bindAddress = "";
	String serverName = "";
	try {
		bindAddress = System.getProperty("jboss.bind.address", "");
		serverName = System.getProperty("jboss.server.name", "");
	} catch (SecurityException se) {
	}

	String hostname = "";
	try {
		hostname = InetAddress.getLocalHost().getHostName();
	} catch (IOException e) {
	}

	String hostInfo = hostname;
	if (!bindAddress.equals("")) {
		hostInfo = hostInfo + " (" + bindAddress + ")";
	}
%>


<table>
	<%
		if (bindAddress.length() > 0) {
	%>
	<tr>
		<td>JBoss Address:</td>
		<td><%=bindAddress%></td>
	</tr>

	<%
		}
		if (serverName.length() > 0) {
	%>
	<tr>
		<td>JBoss profile:</td>
		<td><%=serverName%></td>
	</tr>
	<%
		}
	%>
	<tr>
		<td>Server name:</td>
		<td><%=request.getServerName()%></td>
	</tr>
	<tr>
		<td>Server port:</td>
		<td><%=request.getServerPort()%></td>
	</tr>
	<tr>
		<td>Remote address:</td>
		<td><%=request.getRemoteAddr()%></td>
	</tr>

</table>

</body>
</html>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
boxgrinder-build-0.4.1 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.4.0 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.3.8 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.3.7 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.3.6 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.3.5 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.3.3 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.3.2 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.2.0 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.0.7 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.0.6 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.0.5 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.0.4 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.0.3 docs/node-info/src/main/webapp/index.jsp
boxgrinder-build-0.0.1 docs/node-info/src/main/webapp/index.jsp