예제 #1
0
  private void processMonitorBlock(Node node) {
    NodeList list = node.getChildNodes();
    for (int i = 0; i < list.getLength(); i++) {
      Node n = list.item(i);

      if ("monitor".equalsIgnoreCase(n.getNodeName())) {
        MonitorLoad loader = new MonitorLoad(n);
        cpn.getMonitors().getMonitor().add(loader.getMonitor());
      }
    }
  }
예제 #2
0
  private void processInstances(Node node) {
    NodeList list = node.getChildNodes();
    for (int i = 0; i < list.getLength(); i++) {
      Node n = list.item(i);

      if ("instance".equalsIgnoreCase(n.getNodeName())) {
        InstanceLoad loader = new InstanceLoad(n);
        cpn.getInstances().add(loader.getInstanceItens());
      }
    }
  }
예제 #3
0
  public void threat(Node node) {
    for (int i = 0; i < node.getChildNodes().getLength(); i++) {
      Node n = node.getChildNodes().item(i);

      if ("page".equalsIgnoreCase(n.getNodeName())) {
        PageLoad load = new PageLoad(n);
        cpn.getPage().add(load.getPage());
      } else if ("monitorblock".equalsIgnoreCase(n.getNodeName())) {
        processMonitorBlock(n);
      } else if ("instances".equalsIgnoreCase(n.getNodeName())) {
        processInstances(n);
      } else if ("IndexNode".equalsIgnoreCase(n.getNodeName())) {
        IndexNodeLoad load = new IndexNodeLoad(n);
        cpn.setIndexNode(load.getIndexNode());
      } else if ("globbox".equalsIgnoreCase(n.getNodeName())) {
        GlobboxLoad load = new GlobboxLoad(n);
        cpn.setGlobbox(load.getGlobBox());
      }
    }
  }