Tabnine Logo
NioReceiver.getAutoBind
Code IndexAdd Tabnine to your IDE (free)

How to use
getAutoBind
method
in
org.apache.catalina.tribes.transport.nio.NioReceiver

Best Java code snippets using org.apache.catalina.tribes.transport.nio.NioReceiver.getAutoBind (Showing top 4 results out of 315)

origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

protected void bind() throws IOException {
  // allocate an unbound server socket channel
  serverChannel = ServerSocketChannel.open();
  // Get the associated ServerSocket to bind it with
  ServerSocket serverSocket = serverChannel.socket();
  // create a new Selector for use below
  selector = Selector.open();
  // set the port the server channel will listen to
  //serverSocket.bind(new InetSocketAddress(getBind(), getTcpListenPort()));
  bind(serverSocket,getTcpListenPort(),getAutoBind());
  // set non-blocking mode for the listening socket
  serverChannel.configureBlocking(false);
  // register the ServerSocketChannel with the Selector
  serverChannel.register(selector, SelectionKey.OP_ACCEPT);
  
}

origin: org.apache.tomcat/tomcat-tribes

protected void bind() throws IOException {
  // allocate an unbound server socket channel
  serverChannel = ServerSocketChannel.open();
  // Get the associated ServerSocket to bind it with
  ServerSocket serverSocket = serverChannel.socket();
  // create a new Selector for use below
  this.selector.set(Selector.open());
  // set the port the server channel will listen to
  //serverSocket.bind(new InetSocketAddress(getBind(), getTcpListenPort()));
  bind(serverSocket,getPort(),getAutoBind());
  // set non-blocking mode for the listening socket
  serverChannel.configureBlocking(false);
  // register the ServerSocketChannel with the Selector
  serverChannel.register(this.selector.get(), SelectionKey.OP_ACCEPT);
  //set up the datagram channel
  if (this.getUdpPort()>0) {
    datagramChannel = DatagramChannel.open();
    configureDatagraChannel();
    //bind to the address to avoid security checks
    bindUdp(datagramChannel.socket(),getUdpPort(),getAutoBind());
  }
}
origin: codefollower/Tomcat-Research

protected void bind() throws IOException {
  // allocate an unbound server socket channel
  serverChannel = ServerSocketChannel.open();
  // Get the associated ServerSocket to bind it with
  ServerSocket serverSocket = serverChannel.socket();
  // create a new Selector for use below
  synchronized (Selector.class) {
    // Selector.open() isn't thread safe
    // http://bugs.sun.com/view_bug.do?bug_id=6427854
    // Affects 1.6.0_29, fixed in 1.7.0_01
    this.selector.set(Selector.open());
  }
  // set the port the server channel will listen to
  //serverSocket.bind(new InetSocketAddress(getBind(), getTcpListenPort()));
  bind(serverSocket,getPort(),getAutoBind());
  // set non-blocking mode for the listening socket
  serverChannel.configureBlocking(false);
  // register the ServerSocketChannel with the Selector
  serverChannel.register(this.selector.get(), SelectionKey.OP_ACCEPT);
  //set up the datagram channel
  if (this.getUdpPort()>0) {
    datagramChannel = DatagramChannel.open();
    configureDatagraChannel();
    //bind to the address to avoid security checks
    bindUdp(datagramChannel.socket(),getUdpPort(),getAutoBind());
  }
}
origin: org.apache.geronimo.ext.tomcat/tribes

protected void bind() throws IOException {
  // allocate an unbound server socket channel
  serverChannel = ServerSocketChannel.open();
  // Get the associated ServerSocket to bind it with
  ServerSocket serverSocket = serverChannel.socket();
  // create a new Selector for use below
  synchronized (Selector.class) {
    // Selector.open() isn't thread safe
    // http://bugs.sun.com/view_bug.do?bug_id=6427854
    // Affects 1.6.0_29, fixed in 1.7.0_01
    this.selector.set(Selector.open());
  }
  // set the port the server channel will listen to
  //serverSocket.bind(new InetSocketAddress(getBind(), getTcpListenPort()));
  bind(serverSocket,getPort(),getAutoBind());
  // set non-blocking mode for the listening socket
  serverChannel.configureBlocking(false);
  // register the ServerSocketChannel with the Selector
  serverChannel.register(this.selector.get(), SelectionKey.OP_ACCEPT);
  //set up the datagram channel
  if (this.getUdpPort()>0) {
    datagramChannel = DatagramChannel.open();
    configureDatagraChannel();
    //bind to the address to avoid security checks
    bindUdp(datagramChannel.socket(),getUdpPort(),getAutoBind());
  }
}
org.apache.catalina.tribes.transport.nioNioReceivergetAutoBind

Popular methods of NioReceiver

  • addEvent
  • bind
  • cancelledKey
  • doListen
  • events
  • getBind
  • getExecutor
  • getMaxThreads
  • getMinThreads
  • getOoBInline
  • getRxBufSize
  • getSelectorTimeout
  • getRxBufSize,
  • getSelectorTimeout,
  • getSoKeepAlive,
  • getSoLingerOn,
  • getSoLingerTime,
  • getSoReuseAddress,
  • getSoTrafficClass,
  • getTaskPool,
  • getTcpNoDelay

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now