<%doc> * @@@ START COPYRIGHT @@@ * * 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. * * @@@ END COPYRIGHT @@@ <%args> DcsServer server; String filter = "general"; String format = "html"; <%import> java.util.*; org.trafodion.dcs.server.DcsServer; org.trafodion.dcs.util.DcsConfiguration; org.trafodion.dcs.Constants; org.trafodion.dcs.util.Bytes; java.net.InetAddress; <%java> String metrics = server.getMetrics(); int masterInfoPort = server.getConfiguration().getInt("dcs.master.info.port", 40010); int serverInfoPort = server.getConfiguration().getInt("dcs.server.info.port", 40030); String trafodionHome = server.getTrafodionHome(); boolean trafodionLogs = server.getConfiguration().getBoolean(Constants.DCS_MASTER_TRAFODION_LOGS, Constants.DEFAULT_DCS_MASTER_TRAFODION_LOGS); String masterIP = server.getMasterHostName(); try{ masterIP = InetAddress.getByName(server.getMasterHostName()).getHostAddress(); }catch(Exception e){} Dcs Server: <% server.getServerName() %>:<% server.getInfoServer().getPort() %>

DcsServer: <% server.getServerName() %>:<% server.getInfoServer().getPort() %>


Attribute NameValueDescription
Version<% org.trafodion.dcs.util.VersionInfo.getVersion() %>, r<% org.trafodion.dcs.util.VersionInfo.getRevision() %>Version and revision
Compiled<% org.trafodion.dcs.util.VersionInfo.getDate() %>, <% org.trafodion.dcs.util.VersionInfo.getUser() %>When version was compiled and by whom
Metrics<% metrics.toString() %>Server Metrics; heap sizes are in megabytes
Zookeeper Quorum<% server.getZKQuorumServersString() %>Addresses of all registered ZK servers
Zookeeper Znode<% server.getZKParentZnode() %>Parent ZK znode of this cluster
Start Time<% new Date(server.getStartTime()) %>Date/Time when this server was started