ArrayOfServiceType GetServiceListfromPolicyDB = DASHelper.getServiceListfromPolicyDB(ctx, (classification), PolicyType.TRANSACTIONAL); if (GetServiceListfromPolicyDB == null || GetServiceListfromPolicyDB.getServiceType().isEmpty()) { return ret; for (int i = 0; i < GetServiceListfromPolicyDB.getServiceType().size(); i++) { GetServiceListfromPolicyDB.getServiceType().get(i).getURL(), GetServiceListfromPolicyDB.getServiceType().get(i).getDisplayName(),
if (temp == null || temp.getServiceType().isEmpty()) { return res2; for (int i = 0; i < urls.getServiceType().size(); i++) { GetQuickStatsResponseMsg w2 = fetchQuickStat(urls.getServiceType().get(i).getURL(), periods, getQuickStatsAllRequest.isAllMethodsOnly()); QuickStatURIWrapper wrapper = new QuickStatURIWrapper(); wrapper.setUri(urls.getServiceType().get(i).getURL()); wrapper.getQuickStatWrapper().addAll(w2.getQuickStatWrapper()); res2.getQuickStatURIWrapper().add(wrapper);
if (GetServiceListfromPolicyDB != null && !GetServiceListfromPolicyDB.getServiceType().isEmpty()) { for (int i = 0; i < GetServiceListfromPolicyDB.getServiceType().size(); i++) { PreparedStatement com = null; ResultSet rs = null; com.setLong(3, getAlertsRequest.getRecordcount()); com.setLong(2, timelimit); com.setString(1, GetServiceListfromPolicyDB.getServiceType().get(i).getURL()); hj.url = GetServiceListfromPolicyDB.getServiceType().get(i).getURL(); hj.type = AlertType.SLA_FAULT; hj.tid = rs.getString("relatedtransaction"); com.setLong(3, getAlertsRequest.getRecordcount()); com.setLong(2, timelimit); com.setString(1, GetServiceListfromPolicyDB.getServiceType().get(i).getURL()); hj.timestamp = rs.getLong("utcdatetime"); hj.tid = rs.getString("transactionid"); hj.url = GetServiceListfromPolicyDB.getServiceType().get(i).getURL(); hj.type = AlertType.MESSAGE_FAULT; list.add(hj); com.setString(1, GetServiceListfromPolicyDB.getServiceType().get(i).getURL()); rs = com.executeQuery(); if (rs.next()) {
temp.setHostname(results.getString("hostname")); temp.setParentobject(results.getString("parenturi")); list.getServiceType().add(temp); count++; DBUtils.safeClose(comm); DBUtils.safeClose(con); if (list.getServiceType().isEmpty()) { return null;
temp.setDisplayName(results.getString("displayname")); temp.setPolicyType(PolicyType.values()[results.getInt("policytype")]); list.getServiceType().add(temp); count++; DBUtils.safeClose(comm); DBUtils.safeClose(con); if (list.getServiceType().isEmpty()) {
temp.setParentobject(results.getString("parenturi")); list.getServiceType().add(temp); count++;
try { ArrayOfServiceType list = DASHelper.getServiceListfromPolicyDB(ctx, request.getClassification()); if (!(list == null || list.getServiceType() == null)) { for (int i = 0; i < list.getServiceType().size(); i++) { try { com = con.prepareStatement("SELECT uri, utcdatetime, status, id, message " + "FROM availability where utcdatetime > ? and " + "utcdatetime < ? and uri=?"); com.setString(3, list.getServiceType().get(i).getURL()); com.setLong(1, request.getRange().getStart().getTimeInMillis()); com.setLong(2, request.getRange().getEnd().getTimeInMillis()); set = com.executeQuery(); GetAllOperationalStatusLogResponseMsg t = new GetAllOperationalStatusLogResponseMsg(); t.setURL(list.getServiceType().get(i).getURL()); while (set.next()) { OperationalRecord op = new OperationalRecord();
ArrayOfServiceType machines = DASHelper.getServiceListfromPolicyDB(ctx, request.getClassification(), PolicyType.MACHINE); if (machines != null) { for (int i = 0; i < machines.getServiceType().size(); i++) { ServicePolicy md = SLACommon.LoadPolicyPooled(machines.getServiceType().get(i).getURL()); MachineData data = new MachineData(); data.setDomainName(md.getDomainName()); ArrayOfServiceType processes = DASHelper.getServiceListfromPolicyDB(ctx, request.getClassification(), PolicyType.PROCESS, md.getMachineName()); if (processes != null) { for (int k = 0; k < processes.getServiceType().size(); k++) { ProcessPerformanceData ppd = this.getCurrentProcessPerformanceDataList(processes.getServiceType().get(k).getURL()); data.getProcessPerformanceData().add(ppd);
list.getServiceType().add(temp);