/** * Create an instance of {@link TransactionLog } * */ public TransactionLog createTransactionLog() { return new TransactionLog(); }
TransactionLog tl = new TransactionLog(); tl.setURL(s.getString("uri")); tl.setHasRequestMessage(false); tl.setHasResponseMessage(false); tl.setAction(s.getString("soapaction")); if (!Utility.stringIsNullOrEmpty(s.getString("RequestXML"))) { tl.setHasRequestMessage(true); tl.setRequestSize(s.getLong("requestSize")); tl.setResponseSize(s.getLong("responseSize")); if (!Utility.stringIsNullOrEmpty(s.getString("ResponseXML"))) { tl.setHasResponseMessage(true); tl.setIsFault(s.getBoolean("success")); tl.setMonitorHostname(s.getString("MonitorSource")); tl.setServiceHostname(s.getString("HostingSource")); tl.setResponseTime(s.getLong("ResponseTimeMS")); tl.setTransactionId(s.getString("TransactionID")); tl.setIsSLAFault(false); } else { tl.setIsSLAFault(true); PreparedStatement slacom=null; ResultSet tempset=null; byte[] x = (byte[]) tempset.getBytes("msg"); if (x != null) { tl.setSlaFaultMsg(new String(x, Constants.CHARSET));
if (Utility.stringIsNullOrEmpty(res.getLogs().getTransactionLog().get(i).getAction())) { out += "NA</td><td>"; } else { out += (res.getLogs().getTransactionLog().get(i).getAction() + "</td><td>"); if (!res.getLogs().getTransactionLog().get(i).isIsFault()) { out += ("<font color=#FF0000><b>Fault</b></font>"); } else { out += ("Success"); out += ("</td><td>" + Utility.encodeHTML(ParseIdentities(res.getLogs().getTransactionLog().get(i).getIdentity())) + "</td><td>" + res.getLogs().getTransactionLog().get(i).getResponseTime() + "ms</td>"); out += ("<td>" + res.getLogs().getTransactionLog().get(i).getTimestamp().toString() + "</td><td>"); if (res.getLogs().getTransactionLog().get(i).isIsSLAFault()) { out += ("<font color=#FF0000><b>Fault</b></font>"); + Utility.encodeHTML(res.getLogs().getTransactionLog().get(i).getSlaFaultMsg()) + "<a href=\"SpecificTransactionLogViewer.jsp?ID=" + res.getLogs().getTransactionLog().get(i).getTransactionId() + "\">Details</a>" + "</td></tr></tr>";
String action = res.getLogs().getTransactionLog().get(i).getAction(); int clip = 0; if (res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("/") > clip) { clip = res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("/"); if (res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("}") > clip) { clip = res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("}"); if (res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf(":") > clip) { clip = res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf(":"); if (res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("#") > clip) { clip = res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("#"); action = (res.getLogs().getTransactionLog().get(i).getAction().substring(clip + 1)); t2.ResponseTime = res.getLogs().getTransactionLog().get(i).getResponseTime(); t2.cal = res.getLogs().getTransactionLog().get(i).getTimestamp(); if (recordset.Contains(action)) { recordset.get(action).add(t2);
String action = res.getLogs().getTransactionLog().get(i).getAction(); int clip = 0; if (res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("/") > clip) { clip = res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("/"); if (res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("}") > clip) { clip = res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("}"); if (res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf(":") > clip) { clip = res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf(":"); if (res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("#") > clip) { clip = res.getLogs().getTransactionLog().get(i).getAction().lastIndexOf("#"); action = (res.getLogs().getTransactionLog().get(i).getAction().substring(clip + 1)); if (res.getLogs().getTransactionLog().get(i).isIsFault()) { set.get(action).success++; } else { t.success = 0; t.failures = 0; if (res.getLogs().getTransactionLog().get(i).isIsFault()) { t.success++; } else {
TransactionLog tl = new TransactionLog(); tl.setURL(s.getString("uri")); tl.setHasRequestMessage(false); tl.setHasResponseMessage(false); tl.setAction(s.getString("soapaction")); if (!Utility.stringIsNullOrEmpty(s.getString("RequestXML"))) { tl.setHasRequestMessage(true); tl.setRequestSize(s.getLong("requestSize")); tl.setResponseSize(s.getLong("responseSize")); if (!Utility.stringIsNullOrEmpty(s.getString("ResponseXML"))) { tl.setHasResponseMessage(true); tl.setIsFault(s.getBoolean("success")); tl.setMonitorHostname(s.getString("MonitorSource")); tl.setServiceHostname(s.getString("HostingSource")); tl.setResponseTime(s.getLong("ResponseTimeMS")); tl.setTransactionId(s.getString("TransactionID")); tl.setIsSLAFault(false); } else { tl.setIsSLAFault(true); try { PreparedStatement slacom = con.prepareStatement("select msg from slaviolations where uri=? and incidentid=?;"); byte[] x = (byte[]) tempset.getBytes("msg"); if (x != null) { tl.setSlaFaultMsg(new String(x,Constants.CHARSET));