public void init() throws Exception { super.init(); physical_addr=new IpAddress(InetAddress.getLoopbackAddress(), port++); }
public void init() throws Exception { super.init(); if(max_bundle_size > Global.MAX_DATAGRAM_PACKET_SIZE) throw new IllegalArgumentException("max_bundle_size (" + max_bundle_size + ") cannot exceed the max datagram " + "packet size of " + Global.MAX_DATAGRAM_PACKET_SIZE); if(is_mac && suppress_time_out_of_buffer_space > 0) suppress_log_out_of_buffer_space=new SuppressLog<>(log, "FailureSendingToPhysAddr", "SuppressMsg"); }
public void init() throws Exception { super.init(); if (timer == null) throw new Exception("timer cannot be retrieved from protocol stack"); if(gossip_router_hosts.isEmpty()) throw new IllegalStateException("gossip_router_hosts needs to contain at least one address of a GossipRouter"); log.debug("GossipRouters are:" + gossip_router_hosts.toString()); stubManager = RouterStubManager.emptyGossipClientStubManager(this).useNio(this.use_nio); sock = getSocketFactory().createDatagramSocket("jgroups.tunnel.ucast_sock", bind_port, bind_addr); }
public void init() throws Exception { super.init(); srv_sock=Util.createServerSocket(new DefaultSocketFactory(), "srv-sock", bind_addr, bind_port, bind_port+50); acceptor=new Acceptor(bind_addr, bind_port); }
public void init() throws Exception { super.init(); if(bind_port <= 0) { Discovery discovery_prot=stack.findProtocol(Discovery.class); if(discovery_prot != null && !discovery_prot.isDynamic()) throw new IllegalArgumentException("bind_port cannot be set to " + bind_port + ", as no dynamic discovery protocol (e.g. MPING or TCPGOSSIP) has been detected."); } if(reaper_interval > 0 || conn_expire_time > 0) { if(conn_expire_time == 0 && reaper_interval > 0) { log.warn("reaper interval (%d) set, but not conn_expire_time, disabling reaping", reaper_interval); reaper_interval=0; } else if(conn_expire_time > 0 && reaper_interval == 0) { reaper_interval=conn_expire_time / 2; log.warn("conn_expire_time (%d) is set but reaper_interval is 0; setting it to %d", conn_expire_time, reaper_interval); } } }
public void init() throws Exception { super.init(); if(max_bundle_size > Global.MAX_DATAGRAM_PACKET_SIZE) throw new IllegalArgumentException("max_bundle_size (" + max_bundle_size + ") cannot exceed the max datagram " + "packet size of " + Global.MAX_DATAGRAM_PACKET_SIZE); if(is_mac && suppress_time_out_of_buffer_space > 0) suppress_log_out_of_buffer_space=new SuppressLog<>(log, "FailureSendingToPhysAddr", "SuppressMsg"); }
public void init() throws Exception { local_addr=new IpAddress("127.0.0.1", next_port++); super.init(); }
public void init() throws Exception { super.init(); physical_addr=new IpAddress(InetAddress.getLoopbackAddress(), port++); }
public void init() throws Exception { super.init(); if(start_port <= 0) { Protocol dynamic_discovery_prot=stack.findProtocol("MPING"); if(dynamic_discovery_prot == null) dynamic_discovery_prot=stack.findProtocol("TCPGOSSIP"); if(dynamic_discovery_prot != null) { if(log.isDebugEnabled()) log.debug("dynamic discovery is present (" + dynamic_discovery_prot + "), so start_port=" + start_port + " is okay"); } else { throw new IllegalArgumentException("start_port cannot be set to " + start_port + ", as no dynamic discovery protocol (e.g. MPING or TCPGOSSIP) has been detected."); } } }
public void init() throws Exception { super.init(); if (timer == null) throw new Exception("timer cannot be retrieved from protocol stack"); if(gossip_router_hosts.isEmpty()) throw new IllegalStateException("gossip_router_hosts needs to contain at least one address of a GossipRouter"); log.debug("GossipRouters are:" + gossip_router_hosts.toString()); stubManager = RouterStubManager.emptyGossipClientStubManager(this).useNio(this.use_nio); sock = getSocketFactory().createDatagramSocket("jgroups.tunnel.ucast_sock", bind_port, bind_addr); }
public void init() throws Exception { super.init(); srv_sock=Util.createServerSocket(new DefaultSocketFactory(), "srv-sock", bind_addr, bind_port, bind_port+50); acceptor=new Acceptor(bind_addr, bind_port); }
public void init() throws Exception { super.init(); if(bind_port <= 0) { Discovery discovery_prot=stack.findProtocol(Discovery.class); if(discovery_prot != null && !discovery_prot.isDynamic()) throw new IllegalArgumentException("bind_port cannot be set to " + bind_port + ", as no dynamic discovery protocol (e.g. MPING or TCPGOSSIP) has been detected."); } if(reaper_interval > 0 || conn_expire_time > 0) { if(conn_expire_time == 0 && reaper_interval > 0) { log.warn("reaper interval (%d) set, but not conn_expire_time, disabling reaping", reaper_interval); reaper_interval=0; } else if(conn_expire_time > 0 && reaper_interval == 0) { reaper_interval=conn_expire_time / 2; log.warn("conn_expire_time (%d) is set but reaper_interval is 0; setting it to %d", conn_expire_time, reaper_interval); } } }