public void init() throws Exception { timer=getTransport().getTimer(); if(timer == null) throw new Exception("timer not set"); suspected_mbrs.clear(); has_suspected_mbrs=false; }
public void init() throws Exception { timer=getTransport().getTimer(); if(timer == null) throw new Exception("timer cannot be retrieved"); }
protected TimeScheduler getTimer() { if(prot_stack != null) { TP transport=prot_stack.getTransport(); if(transport != null) return transport.getTimer(); } return null; }
public RouterStubManager(Protocol owner, String cluster_name, Address local_addr, String logical_name, PhysicalAddress phys_addr, long interval) { this.owner = owner; this.stubs = new ArrayList<>(); this.reconnect_list=new HashSet<>(); this.log = LogFactory.getLog(owner.getClass()); this.timer = owner.getTransport().getTimer(); this.cluster_name=cluster_name; this.local_addr=local_addr; this.logical_name=logical_name; this.phys_addr=phys_addr; this.interval = interval; }
public void init() throws Exception { super.init(); timer=getTransport().getTimer(); up_msgs=new ArrayList<>(max_size); down_msgs=new ArrayList<>(max_size); }
public void start() throws Exception { timer=getTransport().getTimer(); if(timer == null) throw new Exception("timer is null"); running=true; leaving=false; startRetransmitTask(); }
public void start() throws Exception { timer=getTransport().getTimer(); if(timer == null) throw new Exception("timer cannot be retrieved"); if(desired_avg_gossip > 0) startStableTask(); // we're the only one who sends out STABILITY messages; no need to wait for others to send it (as they won't) if(send_stable_msgs_to_coord_only) stability_delay=0; }
public void init() throws Exception { super.init(); transport=getTransport(); timer=transport.getTimer(); }
public void init() throws Exception { super.init(); timer=getTransport().getTimer(); }
public synchronized void startBatcher() { if(timer == null) timer=getTransport().getTimer(); if(batcher == null || batcher.isDone()) batcher=timer.scheduleWithFixedDelay(new Batcher(), sleep_time, sleep_time, TimeUnit.MILLISECONDS); }
protected synchronized void startReconciliationTask() { if(reconciliation_task_future == null || reconciliation_task_future.isDone()) { reconciliation_task=new ReconciliationTask(); reconciliation_task_future=getTransport().getTimer().schedule(reconciliation_task, 0, TimeUnit.MILLISECONDS); } }
public void init() throws Exception { TP tp=getTransport(); timer=tp.getTimer(); if(timer == null) throw new Exception("timer cannot be retrieved from protocol stack"); if(stagger_timeout < 0) throw new IllegalArgumentException("stagger_timeout cannot be negative"); if(num_discovery_runs < 1) throw new IllegalArgumentException("num_discovery_runs must be >= 1"); transport_supports_multicasting=tp.supportsMulticasting(); sends_can_block=getTransport() instanceof TCP; // UDP and TCP_NIO2 won't block use_ip_addrs=tp.getUseIpAddresses(); }
public void start() throws Exception { timer=getTransport().getTimer(); if(timer == null) throw new Exception("timer is null"); if(max_retransmit_time > 0) cache=new AgeOutCache<>(timer, max_retransmit_time, this); running=true; startRetransmitTask(); }
public void init() throws Exception { cache=new LazyRemovalCache<>(cache_max_elements, cache_max_age); shuttin_down=false; srv_sock_handler=new ServerSocketHandler(); timer=getTransport().getTimer(); if(timer == null) throw new Exception("timer is null"); }
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 start() throws Exception { super.start(); if(max_block_time > 0) { credit_send_task=getTransport().getTimer() .scheduleWithFixedDelay(this::sendCreditRequestsIfNeeded, max_block_time, max_block_time, TimeUnit.MILLISECONDS); } }
public void start() throws Exception { super.start(); if(max_block_time > 0) { credit_send_task=getTransport().getTimer() .scheduleWithFixedDelay(this::sendCreditRequestsIfNeeded, max_block_time, max_block_time, TimeUnit.MILLISECONDS); } }
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; }