public void destroy() { for(Tuple<Rule,Future<?>> tuple: rules.values()) tuple.getVal2().cancel(true); rules.clear(); super.destroy(); }
public void destroy() { for(Tuple<Rule,Future<?>> tuple: rules.values()) tuple.getVal2().cancel(true); rules.clear(); super.destroy(); }
public void destroy() { for(Tuple<Rule,Future<?>> tuple: rules.values()) tuple.getVal2().cancel(true); rules.clear(); super.destroy(); }
@ManagedOperation(description="Prints suspect history") public String printSuspectHistory() { StringBuilder sb=new StringBuilder(); for(Tuple<Address,Long> tmp: suspect_history) { sb.append(new Date(tmp.getVal2())).append(": ").append(tmp.getVal1()).append("\n"); } return sb.toString(); }
@ManagedOperation(description="Prints history of suspected hosts") public String printSuspectHistory() { StringBuilder sb=new StringBuilder(); for(Tuple<InetAddress,Long> tmp: suspect_history) { sb.append(new Date(tmp.getVal2())).append(": ").append(tmp.getVal1()).append("\n"); } return sb.toString(); }
@ManagedOperation(description="Prints history of suspected hosts") public String printSuspectHistory() { StringBuilder sb=new StringBuilder(); for(Tuple<InetAddress,Long> tmp: suspect_history) { sb.append(new Date(tmp.getVal2())).append(": ").append(tmp.getVal1()).append("\n"); } return sb.toString(); }
@ManagedOperation(description="Prints suspect history") public String printSuspectHistory() { StringBuilder sb=new StringBuilder(); for(Tuple<Address,Long> tmp: suspect_history) { sb.append(new Date(tmp.getVal2())).append(": ").append(tmp.getVal1()).append("\n"); } return sb.toString(); }
@ManagedOperation(description="Prints history of suspected hosts") public String printSuspectHistory() { StringBuilder sb=new StringBuilder(); for(Tuple<InetAddress,Long> tmp: suspect_history) { sb.append(new Date(tmp.getVal2())).append(": ").append(tmp.getVal1()).append("\n"); } return sb.toString(); }
@ManagedOperation(description="Prints suspect history") public String printSuspectHistory() { StringBuilder sb=new StringBuilder(); for(Tuple<Address,Long> tmp: suspect_history) { sb.append(new Date(tmp.getVal2())).append(": ").append(tmp.getVal1()).append("\n"); } return sb.toString(); }
@ManagedOperation(description="Prints suspect history") public String printSuspectHistory() { StringBuilder sb=new StringBuilder(); for(Tuple<Address,Long> tmp: suspect_history) { sb.append(new Date(tmp.getVal2())).append(": ").append(tmp.getVal1()).append("\n"); } return sb.toString(); }
public static int readBytesInteger(String input) { Tuple<String,Long> tuple=readBytes(input); double num=Double.parseDouble(tuple.getVal1()); return (int)(num * tuple.getVal2()); }
public static long readBytesLong(String input) { Tuple<String,Long> tuple=readBytes(input); double num=Double.parseDouble(tuple.getVal1()); return (long)(num * tuple.getVal2()); }
public static double readBytesDouble(String input) { Tuple<String,Long> tuple=readBytes(input); double num=Double.parseDouble(tuple.getVal1()); return num * tuple.getVal2(); }
public static long readBytesLong(String input) { Tuple<String,Long> tuple=readBytes(input); double num=Double.parseDouble(tuple.getVal1()); return (long)(num * tuple.getVal2()); }
public static long readBytesLong(String input) { Tuple<String,Long> tuple=readBytes(input); double num=Double.parseDouble(tuple.getVal1()); return (long)(num * tuple.getVal2()); }
public static int readBytesInteger(String input) { Tuple<String,Long> tuple=readBytes(input); double num=Double.parseDouble(tuple.getVal1()); return (int)(num * tuple.getVal2()); }
public static int readBytesInteger(String input) { Tuple<String,Long> tuple=readBytes(input); double num=Double.parseDouble(tuple.getVal1()); return (int)(num * tuple.getVal2()); }
@ManagedOperation(description="Uninstalls the named rule") public void uninstallRule(String name) { if(name != null) { Tuple<Rule,Future<?>> tuple=rules.remove(name); if(tuple != null) { tuple.getVal2().cancel(true); tuple.getVal1().destroy(); } } }
@ManagedOperation(description="Uninstalls the named rule") public void uninstallRule(String name) { if(name != null) { Tuple<Rule,Future<?>> tuple=rules.remove(name); if(tuple != null) { tuple.getVal2().cancel(true); tuple.getVal1().destroy(); } } }
@ManagedOperation(description="Uninstalls the named rule") public void uninstallRule(String name) { if(name != null) { Tuple<Rule,Future<?>> tuple=rules.remove(name); if(tuple != null) { tuple.getVal2().cancel(true); tuple.getVal1().destroy(); } } }