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 addProcessType(int groupindex, int hostindex, int processindex, String type) {
   FakeGroup group = (FakeGroup) fakeRoot.getChild(groupindex);
   FakeHost host = (FakeHost) group.getChild(hostindex);
   String id = "p1000_10000_" + ++_cnt;
   FakeProcess process = new FakeProcess(id, id, type);
   host.addProcess(processindex, process);
   this.fireEvent(host, processindex, processindex, TreeDataEvent.INTERVAL_ADDED);
 }
Exemplo n.º 3
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);
 }