/** * @deprecated use setAddress * @param tcpListenHost String */ public void setTcpListenAddress(String tcpListenHost) { setAddress(tcpListenHost); }
/** * @deprecated use setPort * @param tcpListenPort int */ public void setTcpListenPort(int tcpListenPort) { setPort(tcpListenPort); }
@Override public String getHost() { return getAddress(); }
mcastProps.setProperty(TribesConstants.TCP_LISTEN_HOST, host); mcastProps.setProperty(TribesConstants.BIND_ADDRESS, host); receiver.setAddress(host); } else { String host; receiver.setAddress(host); receiver.setAddress(localIP); String port = ((String) tcpListenPort.getValue()).trim(); mcastProps.setProperty(TribesConstants.TCP_LISTEN_PORT, port); receiver.setPort(Integer.parseInt(port));
while ( retries > 0 ) { try { addr = new InetSocketAddress(getBind(), portstart); socket.bind(addr); setUdpPort(portstart); log.info("UDP Receiver Server Socket bound to:"+addr); return 0; Thread.currentThread().interrupt(); retries = bindUdp(socket,portstart,retries);
if (receiver instanceof ReceiverBase) { if (receiverAddress != null) { ((ReceiverBase)receiver).setAddress(receiverAddress); ((ReceiverBase)receiver).setPort(receiverPort); ((ReceiverBase)receiver).setAutoBind(receiverAutoBind);
@Override public void stop() { this.stopListening(); super.stop(); }
@Override public void start() throws IOException { super.start(); try { setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this)); } catch (Exception x) { log.fatal("ThreadPool can initilzed. Listener not started", x); if ( x instanceof IOException ) throw (IOException)x; else throw new IOException(x.getMessage()); } try { getBind(); bind(); Thread t = new Thread(this, "BioReceiver"); t.setDaemon(true); t.start(); } catch (Exception x) { log.fatal("Unable to start cluster receiver", x); if ( x instanceof IOException ) throw (IOException)x; else throw new IOException(x.getMessage()); } }
public String getAddress() { getBind(); return this.host; }
public int getWorkerThreadOptions() { int options = 0; if ( getDirect() ) options = options | OPTION_DIRECT_BUFFER; return options; }
mcastProps.setProperty(TribesConstants.TCP_LISTEN_HOST, host); mcastProps.setProperty(TribesConstants.BIND_ADDRESS, host); receiver.setAddress(host); } else { String host; receiver.setAddress(host); receiver.setAddress(localIP); String port = ((String) tcpListenPort.getValue()).trim(); mcastProps.setProperty(TribesConstants.TCP_LISTEN_PORT, port); receiver.setPort(Integer.parseInt(port));
while ( retries > 0 ) { try { addr = new InetSocketAddress(getBind(), portstart); socket.bind(addr); setUdpPort(portstart); log.info("UDP Receiver Server Socket bound to:"+addr); return 0; Thread.currentThread().interrupt(); retries = bindUdp(socket,portstart,retries);
@Override public void stop() { this.stopListening(); super.stop(); }
@Override public void start() throws IOException { super.start(); try { setPool(new RxTaskPool(getMaxThreads(),getMinThreads(),this)); } catch (Exception x) { log.fatal("ThreadPool can initilzed. Listener not started", x); if ( x instanceof IOException ) throw (IOException)x; else throw new IOException(x.getMessage()); } try { getBind(); bind(); Thread t = new Thread(this, "BioReceiver"); t.setDaemon(true); t.start(); } catch (Exception x) { log.fatal("Unable to start cluster receiver", x); if ( x instanceof IOException ) throw (IOException)x; else throw new IOException(x.getMessage()); } }
public String getAddress() { getBind(); return this.host; }
public int getWorkerThreadOptions() { int options = 0; if ( getDirect() ) options = options | OPTION_DIRECT_BUFFER; return options; }
receiver.setAddress(host); try { localMember.setHostname(host); receiver.setPort(port); localMember.setPort(port); localMember.setDomain(localDomain);