Exemplo n.º 1
0
 public void removeProcessType(int groupindex, int hostindex, int processindex, String type) {
   FakeGroup group = (FakeGroup) fakeRoot.getChild(groupindex);
   FakeHost host = (FakeHost) group.getChild(hostindex);
   FakeProcess process = (FakeProcess) host.removeChild(processindex);
   process.type = type;
   this.fireEvent(host, processindex, processindex, TreeDataEvent.INTERVAL_REMOVED);
 }
Exemplo n.º 2
0
 public void updateProcessType(int groupindex, int hostindex, int processindex, String type) {
   FakeGroup group = (FakeGroup) fakeRoot.getChild(groupindex);
   FakeHost host = (FakeHost) group.getChild(hostindex);
   FakeProcess process = (FakeProcess) host.getChild(processindex);
   process.type = type;
   process.name = "AAAAA";
   this.fireEvent(host, processindex, processindex, TreeDataEvent.CONTENTS_CHANGED);
 }