public static Integer cInteger(Object value) { return cint(value); }
public static Integer cInteger(Object value) { return cint(value); }
public static Integer cInteger(Object value) { return cint(value); }
public static Integer cInteger(Object value) { return cint(value); }
public static Integer cInteger(Object value) { return cint(value); }
public int getInt(String key, int defaultValue) { String s = parameter.get(key); return s == null ? defaultValue : CastUtil.cint(s); }
public int getInt(String key, int defaultValue) { String s = parameter.get(key); return s == null ? defaultValue : CastUtil.cint(s); }
public int getInt(String key, int defaultValue) { String s = parameter.get(key); return s == null ? defaultValue : CastUtil.cint(s); }
public int getInt(String key, int defaultValue) { String s = parameter.get(key); return s == null ? defaultValue : CastUtil.cint(s); }
public int getInt(String key, int defaultValue) { String s = parameter.get(key); return s == null ? defaultValue : CastUtil.cint(s); }
public SocketAddr(String address) { try { int x = address.indexOf(":"); this.addr = address.substring(0, x); this.port = CastUtil.cint(address.substring(x + 1)); } catch (Exception e) { // ignore } }
public SocketAddr(String address) { try { int x = address.indexOf(":"); this.addr = address.substring(0, x); this.port = CastUtil.cint(address.substring(x + 1)); } catch (Exception e) { // ignore } }
public SocketAddr(String address) { try { int x = address.indexOf(":"); this.addr = address.substring(0, x); this.port = CastUtil.cint(address.substring(x + 1)); } catch (Exception e) { // ignore } }
public SocketAddr(String address) { try { int x = address.indexOf(":"); this.addr = address.substring(0, x); this.port = CastUtil.cint(address.substring(x + 1)); } catch (Exception e) { // ignore } }
public SocketAddr(String address) { try { int x = address.indexOf(":"); this.addr = address.substring(0, x); this.port = CastUtil.cint(address.substring(x + 1)); } catch (Exception e) { // ignore } }
public int getActiveCounterInt() { if (objPack == null) return activeCounterInt; Value v = objPack.tags.get("counter"); if(v instanceof Number){ activeCounterInt = CastUtil.cint(v); return activeCounterInt; } return activeCounterInt; }
protected int getInt(Properties p, String key, int defValue) { String value = StringUtil.trimEmpty(p.getProperty(key)); if (value.length() == 0) return defValue; return CastUtil.cint(value); } }
protected int getInt(Properties p, String key, int defValue) { String value = StringUtil.trimEmpty(p.getProperty(key)); if (value.length() == 0) return defValue; return CastUtil.cint(value); } }
public static void main(String[] args) { ShellArg param = new ShellArg(args); String host = param.get("-h"); int port = CastUtil.cint(param.get("-p")); int length = CastUtil.cint(param.get("-l")); if (length == 0) { System.out.println("Incorrect args\nex) -h 127.0.0.1 -p 6100 -l 32767"); return; } for (int i = 0; i < 100; i++) { DataUdpAgent.getInstance().debugWrite(host, port, length); ThreadUtil.sleep(2000); } } }
public static void main(String[] args) { ShellArg param = new ShellArg(args); String host = param.get("-h"); int port = CastUtil.cint(param.get("-p")); int length = CastUtil.cint(param.get("-l")); if (length == 0) { System.out.println("Incorrect args\nex) -h 127.0.0.1 -p 6100 -l 32767"); return; } for (int i = 0; i < 100; i++) { DataUdpAgent.getInstance().debugWrite(host, port, length); ThreadUtil.sleep(2000); } } }