<%
/******************************************************************************
 * Copyright (c) 2000-2004 e-Deal
 *
 * e-Deal S.A.
 * 55 rue Brillat Savarin
 * 75013 Paris
 * France
 *
 * T: +33 (0)1 53 80 80 30
 * F: +33 (0)1 73 01 69 77
 * http://www.e-deal.com
 * 
 * La diffusion de ce code source sous quelque forme que ce soit sans
 * l'autorisation de E-DEAL est interdite.
 *
 * Vous êtes autorisés à modifier ce code source uniquement pour votre usage
 * propre et sous réserve que les mentions de copyright demeurent intactes.
 *
 * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou
 * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour
 * responsable des dommages pouvant résulter de l'utilisation de ce code
 * source.
 *
 *
 ******************************************************************************/
%><%@page session="true" import="com.edeal.frontline.*,java.util.*"%>

<%
	final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass());
	String contextPath = (String)session.getAttribute("contextPath");
	FlContext context = null;
	if(contextPath != null) {
		context = Frontline.getContext(contextPath);
	} else {
		context = Frontline.getContext(request.getContextPath());
	}
	FlDataSource flds=context.getFlDataSource();
	DataDictionary dico = context.getDataDictionary();
	if (Utils.getRequestParameter(context, request, "logout") != null) {
		session.invalidate();
%>
<html>
<head>
</head>
<body text="000000" bgcolor="ebf2f1" link="501123" alink="501123" vlink="501123">
</body>
</html>
<%	} else {
			if (flds.getDataSource() instanceof EDealDataSource) {
				EDealDataSource edds = (EDealDataSource)flds.getDataSource();
%>
<html>
<head>
</head>
<body text="000000" bgcolor="ebf2f1" link="501123" alink="501123" vlink="501123">
<p style="width:95%; text-align: center; font-size: 20px; padding: 40px 0px 40px 0px;">
	<b>This page is deprecated.</b>
	<br/> You may want to use the new <a href="javascript:void(0);" onclick="window.location.href='../connections_monitoring.fl'">Connections monitoring page</a>.
</p>

E-DEAL Connection Pool Monitoring

<table>
	<thead>
	<th>
		<td>Connection Status</td><td>Nb. of connections</td>
		</td>
	</th>
	</thead>
	<tbody>
		<tr><td><b>Available</b></td><td><div id="conn_available"><%= edds.getNbAvailableConn() %></div></td>
		<tr><td><b>Open</b></td><td><div id="conn_open"><%= edds.getNbOpenConn()%></div></td>
		<tr><td><b>pool: Held</b></td><td><div id="conn_pool_held"><%= edds.getNbHoldConn()%></div></td>
		<tr><td><b>pool: Min</b></td><td><div id="conn_pool_min"><%= edds.getNbMinConn()%></div></td>
		<tr><td><b>pool: Max</b></td><td><div id="conn_pool_max"><%= edds.getNbMaxConn()%></div></td>
		</tr>
	</tbody>
	</table>
</body>
</html>
<%		} %>
<%	} %>
<%
/******************************************************************************
 * CVS Log File - This is no longer maintained!
 *
 * Revision 1.1  2004/07/23 18:21:01  brian
 * Initial Revision
 *
 *****************************************************************************/
%>
