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); }
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; } }
public void getControlData(OutputStream out) throws IOException { lcUploaders.getControlData(out); lcDownloaders.getControlData(out); pieChart.getControlData(out); hostDetails.getControlData(out); }
public void setControlData(InputStream in) throws IOException { lcUploaders.setControlData(in); lcDownloaders.setControlData(in); pieChart.setControlData(in); hostDetails.setControlData(in); }
public void updateStatus(OutputStream out) throws IOException { lcUploaders.updateStatus(out); lcDownloaders.updateStatus(out); pieChart.updateStatus(out); hostDetails.updateStatus(out); }
public void destroy() { pieChart.destroy(); lcUploaders.destroy(); lcDownloaders.destroy(); hostDetails.destroy(); }
public void reset() { pieChart.reset(); lcUploaders.reset(); lcDownloaders.reset(); hostDetails.reset(); }
public void stop() { pieChart.stop(); lcUploaders.stop(); lcDownloaders.stop(); hostDetails.stop(); }