Ejemplo 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);
  }
Ejemplo 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;
    }
  }
Ejemplo n.º 3
0
 public void getControlData(OutputStream out) throws IOException {
   lcUploaders.getControlData(out);
   lcDownloaders.getControlData(out);
   pieChart.getControlData(out);
   hostDetails.getControlData(out);
 }
Ejemplo n.º 4
0
 public void setControlData(InputStream in) throws IOException {
   lcUploaders.setControlData(in);
   lcDownloaders.setControlData(in);
   pieChart.setControlData(in);
   hostDetails.setControlData(in);
 }
Ejemplo n.º 5
0
 public void updateStatus(OutputStream out) throws IOException {
   lcUploaders.updateStatus(out);
   lcDownloaders.updateStatus(out);
   pieChart.updateStatus(out);
   hostDetails.updateStatus(out);
 }
Ejemplo n.º 6
0
 public void destroy() {
   pieChart.destroy();
   lcUploaders.destroy();
   lcDownloaders.destroy();
   hostDetails.destroy();
 }
Ejemplo n.º 7
0
 public void reset() {
   pieChart.reset();
   lcUploaders.reset();
   lcDownloaders.reset();
   hostDetails.reset();
 }
Ejemplo n.º 8
0
 public void stop() {
   pieChart.stop();
   lcUploaders.stop();
   lcDownloaders.stop();
   hostDetails.stop();
 }