Esempio n. 1
0
  public Main() {
    pieChart = new eunomia.plugin.rec.pieChart.Main();
    lcUploaders = new eunomia.plugin.rec.lossyHistogram.Main();
    lcDownloaders = new eunomia.plugin.rec.lossyHistogram.Main();
    hostDetails = new eunomia.plugin.rec.hostDetails.Main();

    pieProc = pieChart.getFlowProcessor();
    lcupProc = lcUploaders.getFlowProcessor();
    lcdoProc = lcDownloaders.getFlowProcessor();
    hostProc = hostDetails.getFlowProcessor();

    lcUploaders.setProperty(eunomia.plugin.rec.lossyHistogram.Main.CMD_DEST_HOST_MV, hostProc);
    lcDownloaders.setProperty(eunomia.plugin.rec.lossyHistogram.Main.CMD_DEST_HOST_MV, hostProc);
    lcDownloaders.setComparator(false, true, false, false, false);
  }
Esempio n. 2
0
  public void processMessage(DataInputStream in, DataOutputStream out) throws IOException {
    byte b = (byte) in.read();
    out.write(b);

    switch (b) {
      case LOSSY1:
        lcUploaders.processMessage(in, out);
        break;

      case LOSSY2:
        lcDownloaders.processMessage(in, out);
        break;

      case PIECHT:
        break;

      case HOSTDT:
        hostDetails.processMessage(in, out);
        break;
    }
  }
Esempio n. 3
0
 public void getControlData(OutputStream out) throws IOException {
   lcUploaders.getControlData(out);
   lcDownloaders.getControlData(out);
   pieChart.getControlData(out);
   hostDetails.getControlData(out);
 }
Esempio n. 4
0
 public void setControlData(InputStream in) throws IOException {
   lcUploaders.setControlData(in);
   lcDownloaders.setControlData(in);
   pieChart.setControlData(in);
   hostDetails.setControlData(in);
 }
Esempio n. 5
0
 public void updateStatus(OutputStream out) throws IOException {
   lcUploaders.updateStatus(out);
   lcDownloaders.updateStatus(out);
   pieChart.updateStatus(out);
   hostDetails.updateStatus(out);
 }
Esempio n. 6
0
 public void destroy() {
   pieChart.destroy();
   lcUploaders.destroy();
   lcDownloaders.destroy();
   hostDetails.destroy();
 }
Esempio n. 7
0
 public void reset() {
   pieChart.reset();
   lcUploaders.reset();
   lcDownloaders.reset();
   hostDetails.reset();
 }
Esempio n. 8
0
 public void stop() {
   pieChart.stop();
   lcUploaders.stop();
   lcDownloaders.stop();
   hostDetails.stop();
 }