%-- IBM Confidential OCO Source Material --%>
<%-- 5724-J34 (C) COPYRIGHT International Business Machines Corp. 2004, 2005 --%>
<%-- The source code for this program is not published or otherwise divested --%>
<%-- of its trade secrets, irrespective of what has been deposited with the --%>
<%-- U.S. Copyright Office. --%>
<%@ page language="java"%>
<%@ page import="com.ibm.ws.console.healthconfig.form.CreateHealthClassWizardForm"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="org.apache.struts.util.MessageResources"%>
<%@ page import="org.apache.struts.action.*"%>
<%@ taglib uri="/WEB-INF/ibmcommon.tld" prefix="ibmcommon" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
|
|
<%
MessageResources messages = (MessageResources)application.getAttribute(Action.MESSAGES_KEY);
java.util.Locale locale = request.getLocale();
String translatedReactionMode = messages.getMessage(locale,reactionMode);
description = description.replaceAll("<","<");
description = description.replaceAll(">",">");
%>
|
<%=name%> |
|
<%=description%> |
<%if (type.equalsIgnoreCase("AGE")) {
String ageString = age.toString();
String translatedUnits = messages.getMessage(locale,ageUnits); %>
|
|
|
<%=ageString%> <%=translatedUnits%> |
<%
}
else if (type.equalsIgnoreCase("WORKLOAD")) {
String requestsString = requests.toString(); %>
|
|
|
<%=requestsString%> |
<%
}
else if (type.equalsIgnoreCase("RESPONSE")) {
String timeString = responseTime.toString();
String translatedUnits = messages.getMessage(locale,timeUnits); %>
|
|
|
<%=timeString%> <%=translatedUnits%> |
<%
}
else if (type.equalsIgnoreCase("MEMORY")) {
String translatedUnits = messages.getMessage(locale,units);
String memoryString = totalMemory.toString();
String timeString = timeOverThreshold.toString(); %>
|
|
|
<%=memoryString%> |
|
<%=timeString%> <%=translatedUnits%> |
<%
}
else if (type.equalsIgnoreCase("STUCKREQUEST")) {
String timeoutPercentString = timeoutPercent.toString(); %>
|
|
|
<%=timeoutPercentString%> |
<%
}
else if (type.equalsIgnoreCase("STORMDRAIN")) {
String translatedlevel = "";
if (stormDrainConditionLevel.equals("CONDITION_LEVEL_NORMAL"))
translatedlevel = messages.getMessage(locale,"healthclass.stormdrain.normallevel");
else
translatedlevel = messages.getMessage(locale,"healthclass.stormdrain.conservativelevel"); %>
|
|
|
<%=translatedlevel%> |
<%
}
else if (type.equalsIgnoreCase("MEMORYLEAK")) {
String translatedlevel = "";
if (memoryLeakConditionLevel.equals("CONDITION_LEVEL_AGGRESSIVE"))
translatedlevel = messages.getMessage(locale,"healthclass.memoryleak.aggressivelevel");
else if (memoryLeakConditionLevel.equals("CONDITION_LEVEL_NORMAL"))
translatedlevel = messages.getMessage(locale,"healthclass.memoryleak.normallevel");
else
translatedlevel = messages.getMessage(locale,"healthclass.memoryleak.conservativelevel"); %>
|
|
|
<%=translatedlevel%> |
<%
}
else if (type.equalsIgnoreCase("GCPERCENTAGE")) {
String translatedSamplingPeriod = messages.getMessage(locale,samplingUnits);
String gcPercentString = garbageCollectionPercent.toString();
String samplingString = samplingPeriod.toString(); %>
|
|
|
<%=gcPercentString%> |
|
<%=samplingString%> <%=translatedSamplingPeriod%> |
<%
}
else if (type.equalsIgnoreCase("CUSTOM")) { %>
|
|
|
<%=customExpression%> |
<%
} %>
|
<%=translatedReactionMode%> |
|
<%
String actionsString = "";
String actionName = null;
CreateHealthClassWizardForm testForm = (CreateHealthClassWizardForm)session.getAttribute("ConfirmHealthClassCreateForm");
ArrayList selectedActions = (ArrayList)testForm.getActionPlanNames();
for (int i = 0; i < selectedActions.size(); i++) { // for List
actionName = (String) selectedActions.get(i);
if (actionName.equals("HEALTH_ACTION_RESTART"))
actionName = messages.getMessage(locale,"HEALTH_ACTION_RESTART");
else if (actionName.equals("HEALTH_ACTION_THREADDUMP"))
actionName = messages.getMessage(locale,"HEALTH_ACTION_THREADDUMP");
else if (actionName.equals("HEALTH_ACTION_HEAPDUMP"))
actionName = messages.getMessage(locale,"HEALTH_ACTION_HEAPDUMP");
else if (actionName.equals("HEALTH_ACTION_MAINTMODE"))
actionName = messages.getMessage(locale,"HEALTH_ACTION_MAINTMODE");
else if (actionName.equals("HEALTH_ACTION_MAINTBREAKMODE"))
actionName = messages.getMessage(locale,"HEALTH_ACTION_MAINTBREAKMODE");
else if (actionName.equals("HEALTH_ACTION_NORMMODE"))
actionName = messages.getMessage(locale,"HEALTH_ACTION_NORMMODE");
else if (actionName.equals("HEALTH_ACTION_CUSTOM"))
actionName = messages.getMessage(locale,"HEALTH_ACTION_CUSTOM");
else if (actionName.equals("HEALTH_ACTION_SENDSNMPTRAP"))
actionName = messages.getMessage(locale,"HEALTH_ACTION_SENDSNMPTRAP");
actionsString = actionsString + actionName + "
";
}
%>
<%=actionsString%> |
|
<%
String membersString = "";
ArrayList selectedMembers = (ArrayList)testForm.getCurrentMembership(messages, locale);
for (int i = 0; i < selectedMembers.size(); i++) { // for List
membersString = membersString + (String) selectedMembers.get(i) + "
";
}
%>
<%=membersString%> |