SessionHAStatistics.jsp revision e8721886dbfd32e88cc7077cbee4b6bb1b44b443
208651a016b098f4fa1f6279559f104d70f1632dtakashi<!--
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki*
353bea4bd4f2d567232d91686f797810bc176f2etakashi* Copyright (c) 2011 ForgeRock AS. All Rights Reserved
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki*
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* The contents of this file are subject to the terms
031b91a62d25106ae69d4693475c79618dd5e884fielding* of the Common Development and Distribution License
031b91a62d25106ae69d4693475c79618dd5e884fielding* (the License). You may not use this file except in
031b91a62d25106ae69d4693475c79618dd5e884fielding* compliance with the License.
031b91a62d25106ae69d4693475c79618dd5e884fielding*
031b91a62d25106ae69d4693475c79618dd5e884fielding* You can obtain a copy of the License at
031b91a62d25106ae69d4693475c79618dd5e884fielding* http://forgerock.org/license/CDDLv1.0.html
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* See the License for the specific language governing
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* permission and limitations under the License.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd*
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* When distributing Covered Code, include this CDDL
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* Header Notice in each file and include the License file
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* at http://forgerock.org/license/CDDLv1.0.html
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* If applicable, add the following below the CDDL Header,
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* with the fields enclosed by brackets [] replaced by
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* your own identifying information:
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd* "Portions Copyrighted [year] [name of copyright owner]"
7db9f691a00ead175b03335457ca296a33ddf31bnd*
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki-->
208651a016b098f4fa1f6279559f104d70f1632dtakashi
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki<%@ page info="SessionHAStatistics" language="java" %>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki<%@taglib uri="/WEB-INF/jato.tld" prefix="jato" %>
208651a016b098f4fa1f6279559f104d70f1632dtakashi<%@taglib uri="/WEB-INF/cc.tld" prefix="cc" %>
208651a016b098f4fa1f6279559f104d70f1632dtakashi<jato:useViewBean
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki className="com.sun.identity.console.session.SessionHAStatisticsViewBean"
208651a016b098f4fa1f6279559f104d70f1632dtakashi fireChildDisplayEvents="true" >
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi<cc:i18nbundle baseName="amConsole" id="amConsole"
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
208651a016b098f4fa1f6279559f104d70f1632dtakashi
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <cc:header name="hdrCommon"
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki pageTitle="webconsole.title"
208651a016b098f4fa1f6279559f104d70f1632dtakashi bundleID="amConsole"
208651a016b098f4fa1f6279559f104d70f1632dtakashi copyrightYear="2012"
208651a016b098f4fa1f6279559f104d70f1632dtakashi fireDisplayEvents="true">
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi <style type="text/css">
208651a016b098f4fa1f6279559f104d70f1632dtakashi #watermark {
208651a016b098f4fa1f6279559f104d70f1632dtakashi color: #d0d0d0;
208651a016b098f4fa1f6279559f104d70f1632dtakashi font-size: 200pt;
208651a016b098f4fa1f6279559f104d70f1632dtakashi -webkit-transform: rotate(-45deg);
208651a016b098f4fa1f6279559f104d70f1632dtakashi -moz-transform: rotate(-45deg);
208651a016b098f4fa1f6279559f104d70f1632dtakashi position: absolute;
208651a016b098f4fa1f6279559f104d70f1632dtakashi width: 100%;
208651a016b098f4fa1f6279559f104d70f1632dtakashi height: 100%;
208651a016b098f4fa1f6279559f104d70f1632dtakashi margin: 0;
208651a016b098f4fa1f6279559f104d70f1632dtakashi z-index: -1;
208651a016b098f4fa1f6279559f104d70f1632dtakashi left: -100px;
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki top: -200px;
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki }
208651a016b098f4fa1f6279559f104d70f1632dtakashi </style>
208651a016b098f4fa1f6279559f104d70f1632dtakashi
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <script language="javascript" src="/console/js/am.js"></script>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <script language="javascript" src="/openam/js/Bluff-0.3.6.2/js-class.js" type="text/javascript"></script>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <script language="javascript" src="/openam/js/Bluff-0.3.6.2/bluff-min.js" type="text/javascript"></script>
208651a016b098f4fa1f6279559f104d70f1632dtakashi <!--[if IE]><script language="javascript" src="/openam/js/Bluff-0.3.6.2/excanvas.js" type="text/javascript"></script><![endif]-->
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi <!-- BLUFF -->
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <script type="text/javascript">
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki var counts = {
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki items: [
208651a016b098f4fa1f6279559f104d70f1632dtakashi {label: 'Active Sessions', data: 1},
208651a016b098f4fa1f6279559f104d70f1632dtakashi {label: 'Replicated Sessions', data: 1}]
208651a016b098f4fa1f6279559f104d70f1632dtakashi };
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi var datapiea = {
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki items: [
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki {label: 'Reads', data: 999999},
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki {label: 'Writes', data: 999999}]
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki };
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi // BLUFF
208651a016b098f4fa1f6279559f104d70f1632dtakashi window.onload = function () {
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi var bluffGraph1 = new Bluff.Bar('graph1', 450);
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki bluffGraph1.theme_keynote();
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki bluffGraph1.title = 'Live Session Counts';
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki for (i in counts.items) {
208651a016b098f4fa1f6279559f104d70f1632dtakashi var item = counts.items[i];
208651a016b098f4fa1f6279559f104d70f1632dtakashi //Add each data item to bar
208651a016b098f4fa1f6279559f104d70f1632dtakashi bluffGraph1.data(item.label, item.data);
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki }
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki bluffGraph1.draw();
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi var bluffGraph2 = new Bluff.Bar('graph2', 450);
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki bluffGraph2.theme_keynote();
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki bluffGraph2.title = 'Session Replication';
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
a4b591abd5d8601b85aeed3ec7e129420a2c91a5kawai for (i in datapiea.items) {
208651a016b098f4fa1f6279559f104d70f1632dtakashi var item = datapiea.items[i];
208651a016b098f4fa1f6279559f104d70f1632dtakashi //Add each data item to pie
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki bluffGraph2.data(item.label, item.data);
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki }
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki bluffGraph2.draw();
208651a016b098f4fa1f6279559f104d70f1632dtakashi }
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi</script>
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi<cc:form name="SessionHAStatistics" method="post" defaultCommandChild="/button1">
208651a016b098f4fa1f6279559f104d70f1632dtakashi<cc:hidden name="tfName" />
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki<jato:hidden name="szCache" />
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi<script language="javascript">
208651a016b098f4fa1f6279559f104d70f1632dtakashi function confirmLogout() {
208651a016b098f4fa1f6279559f104d70f1632dtakashi return confirm("<cc:text name="txtLogout" defaultValue="masthead.logoutMessage" bundleID="amConsole"/>");
208651a016b098f4fa1f6279559f104d70f1632dtakashi }
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki</script>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki<cc:primarymasthead name="mhCommon" bundleID="amConsole" logoutOnClick="return confirmLogout();"
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
208651a016b098f4fa1f6279559f104d70f1632dtakashi<cc:breadcrumbs name="breadCrumb" bundleID="amConsole" />
208651a016b098f4fa1f6279559f104d70f1632dtakashi<cc:tabs name="tabCommon" bundleID="amConsole" />
208651a016b098f4fa1f6279559f104d70f1632dtakashi
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki<table border="0" cellpadding="10" cellspacing="0" width="100%">
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <tr>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <td>
208651a016b098f4fa1f6279559f104d70f1632dtakashi <cc:alertinline name="ialertCommon" bundleID="amConsole" />
208651a016b098f4fa1f6279559f104d70f1632dtakashi </td>
208651a016b098f4fa1f6279559f104d70f1632dtakashi </tr>
208651a016b098f4fa1f6279559f104d70f1632dtakashi</table>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki<%-- PAGE CONTENT --%>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki<cc:pagetitle
208651a016b098f4fa1f6279559f104d70f1632dtakashi name="pgtitle"
208651a016b098f4fa1f6279559f104d70f1632dtakashi bundleID="amConsole"
208651a016b098f4fa1f6279559f104d70f1632dtakashi pageTitleText="page.title.sessionha.statistics"
208651a016b098f4fa1f6279559f104d70f1632dtakashi showPageTitleSeparator="true"
208651a016b098f4fa1f6279559f104d70f1632dtakashi viewMenuLabel=""
208651a016b098f4fa1f6279559f104d70f1632dtakashi pageTitleHelpMessage=""
208651a016b098f4fa1f6279559f104d70f1632dtakashi showPageButtonsTop="true"
208651a016b098f4fa1f6279559f104d70f1632dtakashi showPageButtonsBottom="false" />
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi <table>
208651a016b098f4fa1f6279559f104d70f1632dtakashi <tr>
208651a016b098f4fa1f6279559f104d70f1632dtakashi <td bgcolor='#EEE8CD' colspan='2'>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <h3>OpenAM Session Persistence Status</h3>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <b>Ok</b>
208651a016b098f4fa1f6279559f104d70f1632dtakashi </td>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki </tr>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi <tr>
208651a016b098f4fa1f6279559f104d70f1632dtakashi <td valign="center">
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <canvas id="graph1"></canvas>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki </td>
208651a016b098f4fa1f6279559f104d70f1632dtakashi <td valign="center">
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki <canvas id="graph2"></canvas>
208651a016b098f4fa1f6279559f104d70f1632dtakashi </td>
208651a016b098f4fa1f6279559f104d70f1632dtakashi </tr>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi </table>
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi</cc:form>
208651a016b098f4fa1f6279559f104d70f1632dtakashi
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki</cc:header>
208651a016b098f4fa1f6279559f104d70f1632dtakashi</jato:useViewBean>
f6e426d8627afcd70d2cd78c21f0f8afe7964f93yoshiki