/** * Create an instance of {@link MachineInformation } * */ public MachineInformation createMachineInformation() { return new MachineInformation(); }
/** * * @param data * @param partition * @return true if valid */ private boolean ConfirmDriveExists(GetProcessesListByMachineResponseMsg data, String partition) { if (data == null) { return false; } if (data.getMachineInformation() == null) { return false; } if (data.getMachineInformation().getDriveInformation() == null) { return false; } for (int i = 0; i < data.getMachineInformation().getDriveInformation().size(); i++) { if (data.getMachineInformation().getDriveInformation().get(i).getPartition().equalsIgnoreCase(partition)) { return true; } } return false; }
log.log(Level.WARN, "xml is unexpectedly null or empty"); } else { ret = foo.getValue().getMachineInformation().getMemoryinstalled();
for (int i = 0; i < res.getMachineInformation().getAddresses().size(); i++) { s = s.append(" <option value=\"").append(Utility.encodeHTML(res.getMachineInformation().getAddresses().get(i).getAdapterName())).append("\""); if (isIn(res.getMachineInformation().getAddresses().get(i).getAdapterName(), existingItems)) { s = s.append(" selected "); append(Utility.encodeHTML(res.getMachineInformation().getAddresses().get(i).getAdapterName())).append(" on "). append(Utility.encodeHTML(Utility.listStringtoString(res.getMachineInformation().getAddresses().get(i).getIp()))).append("</option>");
for (int i = 0; i < res.getMachineInformation().getDriveInformation().size(); i++) { s = s.append(" <option value=\"").append(Utility.encodeHTML(res.getMachineInformation().getDriveInformation().get(i).getSystemid())).append("\""); if (isIn(res.getMachineInformation().getDriveInformation().get(i).getSystemid(), existingItems)) { s = s.append(" selected "); append(Utility.encodeHTML(res.getMachineInformation().getDriveInformation().get(i).getSystemid())).append("</option>");
public String GetPartitionNamesAsHtmlListboxForThroughput(String url, String domain, String machine, PCS pcsport, SecurityWrapper c, List<String> existingItems) { GetProcessesListByMachineRequestMsg req = new GetProcessesListByMachineRequestMsg(); req.setClassification(c); req.setHostname(machine); StringBuilder s = new StringBuilder(); if (res == null) { try { res = pcsport.getProcessesListByMachine(req); } catch (AccessDeniedException ex) { LogHelper.getLog().log(Level.WARN, null, ex); } catch (ServiceUnavailableException ex) { LogHelper.getLog().log(Level.WARN, null, ex); } } if (res != null && res.getMachineInformation() != null) { s = s.append("<select name=\"recorddiskusage\" id=\"recorddiskusage\" multiple=\"multiple\" >"); for (int i = 0; i < res.getMachineInformation().getDriveInformation().size(); i++) { s = s.append(" <option value=\"").append(Utility.encodeHTML(res.getMachineInformation().getDriveInformation().get(i).getSystemid())).append("\""); if (isIn(res.getMachineInformation().getDriveInformation().get(i).getSystemid(), existingItems)) { s = s.append(" selected "); } s = s.append(" >"). append(Utility.encodeHTML(res.getMachineInformation().getDriveInformation().get(i).getSystemid())).append("</option>"); } s = s.append("</select>"); } else { s = s.append("<input type=text name=\"recorddiskusage\" value=\"").append(Utility.encodeHTML(Utility.listStringtoString(existingItems))).append("\" >"); } return s.toString(); }