public void init() throws Exception { super.init(); int old_frag_size = frag_size; if (frag_size <= 0) throw new Exception( "frag_size=" + old_frag_size + ", new frag_size=" + frag_size + ": new frag_size is invalid"); TP transport = getTransport(); if (transport != null && transport.isEnableBundling()) { int max_bundle_size = transport.getMaxBundleSize(); if (frag_size >= max_bundle_size) throw new IllegalArgumentException( "frag_size (" + frag_size + ") has to be < TP.max_bundle_size (" + max_bundle_size + ")"); } Map<String, Object> info = new HashMap<String, Object>(1); info.put("frag_size", frag_size); up_prot.up(new Event(Event.CONFIG, info)); down_prot.down(new Event(Event.CONFIG, info)); }