public void init() throws Exception { super.init(); }
public void init() throws Exception { super.init(); if(bind_addr != null) intf=NetworkInterface.getByInetAddress(bind_addr); }
public void init() throws Exception { super.init(); lock_stripes=new Lock[lock_striping_size]; for(int i=0; i < lock_stripes.length; i++) lock_stripes[i]=new ReentrantLock(); }
public void init() throws Exception { super.init(); if(time_period <= 0) throw new IllegalArgumentException("time_period needs to be positive"); time_period_ns=TimeUnit.NANOSECONDS.convert(time_period, TimeUnit.MILLISECONDS); }
public void init() throws Exception { super.init(); if(config != null) createForkStacks(config); }
public void init() throws Exception { super.init(); avg=new Average(); }
public void init() throws Exception { super.init(); thread_pool=createThreadPool(); }
public void init() throws Exception { super.init(); configure(); if(site_master_picker == null) { site_master_picker=new SiteMasterPicker() { public Address pickSiteMaster(List<Address> site_masters, Address original_sender) { return Util.pickRandomElement(site_masters); } public Route pickRoute(String site, List<Route> routes, Address original_sender) { return Util.pickRandomElement(routes); } }; } }
public void init() throws Exception { super.init(); Map<String,Object> info=new HashMap<>(1); info.put("frag_size", frag_size); down_prot.down(new Event(Event.CONFIG, info)); }
public void init() throws Exception { super.init(); timer=getTransport().getTimer(); up_msgs=new ArrayList<>(max_size); down_msgs=new ArrayList<>(max_size); }
public void init() throws Exception { super.init(); if(auth_token == null) throw new IllegalStateException("no authentication mechanism configured"); if(auth_token instanceof X509Token) { X509Token tmp=(X509Token)auth_token; tmp.setCertificate(); } auth_token.init(); }
public void init() throws Exception { super.init(); createDiskCacheFile(); readCacheFromDisk(); // populates the cache from disk (if the file is present found) }
public void init() throws Exception { super.init(); transport=getTransport(); timer=transport.getTimer(); }
@Override public void init() throws Exception { super.init(); delayed_message_handler = new DelayedMessageHandler(); delayed_message_handler.start(); }
public void init() throws Exception { super.init(); timer=getTransport().getTimer(); }
public void init() throws Exception { super.init(); timer=getTransport().getTimer(); if(timer == null) throw new IllegalStateException("timer not found"); if(config != null) parseConfig(config); }
public void init() throws Exception { super.init(); timer=getTransport().getTimer(); startBatcher(); }
public void initProtocolStack() throws Exception { List<Protocol> protocols = getProtocols(); Collections.reverse(protocols); for(Protocol prot: protocols) { if(prot.getProtocolStack() == null) prot.setProtocolStack(this); callAfterCreationHook(prot, prot.afterCreationHook()); prot.init(); } }
public void init() throws Exception { super.init(); if(site == null || site.isEmpty()) throw new IllegalArgumentException("\"site\" must be set"); timer=getTransport().getTimer(); JChannel channel=getProtocolStack().getChannel(); if(channel == null) throw new IllegalStateException("channel must be set"); channel.addAddressGenerator(() -> ExtendedUUID.randomUUID().put(SITE_ID, Util.stringToBytes(site))); }
public void init() throws Exception { super.init(); timer=getTransport().getTimer(); if(timeout > 0 && resend_interval > 0 && resend_interval >= timeout) { log.warn(Util.getMessage("RSVP_Misconfig"), resend_interval, timeout); resend_interval=timeout / 3; } handle_unicasts=stack.findProtocol(UNICAST3.class) == null; }