Tabnine Logo
Connector.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
org.eclipse.jetty.server.Connector

Best Java code snippets using org.eclipse.jetty.server.Connector.close (Showing top 8 results out of 315)

origin: org.tachyonproject/tachyon-servers

public void shutdownWebServer() throws Exception {
 // close all connectors and release all binding ports
 for (Connector connector : mServer.getConnectors()) {
  connector.close();
 }
 mServer.stop();
}
origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * This method is called by the ServerEngine Factory to destroy the 
 * listener.
 *
 */
protected void stop() throws Exception {
  registedPaths.clear();
  if (server != null) {
    try {
      connector.stop();
      connector.close();            
    } finally {         
      server.stop();
      server.destroy();
      server = null;
    }
  }
}

origin: org.tachyonproject/tachyon-servers

 /**
  * Starts the web server.
  */
 public void startWebServer() {
  try {
   mServer.getConnectors()[0].close();
   mServer.getConnectors()[0].open();
   mServer.start();
   if (mAddress.getPort() == 0) {
    int webPort = mServer.getConnectors()[0].getLocalPort();
    mAddress = new InetSocketAddress(mAddress.getHostName(), webPort);
    // reset web service port
    mTachyonConf.set(mService.getPortKey(), Integer.toString(webPort));
   }
   LOG.info(mService.getServiceName() + " started @ " + mAddress);
  } catch (Exception e) {
   throw Throwables.propagate(e);
  }
 }
}
origin: org.eclipse.jetty.aggregate/jetty-plus

try{_connectors[i].close();}catch(Throwable e){mex.add(e);}
origin: org.eclipse.jetty.aggregate/jetty-all-server

try{_connectors[i].close();}catch(Throwable e){mex.add(e);}
origin: org.eclipse.jetty.aggregate/jetty-webapp

try{_connectors[i].close();}catch(Throwable e){mex.add(e);}
origin: org.eclipse.jetty/server

try{_connectors[i].close();}catch(Throwable e){mex.add(e);}
origin: org.eclipse.jetty.aggregate/jetty-server

try{_connectors[i].close();}catch(Throwable e){mex.add(e);}
org.eclipse.jetty.serverConnectorclose

Popular methods of Connector

  • setPort
  • stop
  • getLocalPort
  • getName
  • start
  • getServer
  • setHost
    Set the hostname of the interface to bind to.
  • getConnectionFactories
  • getPort
  • getConnectionFactory
  • getExecutor
  • getHost
  • getExecutor,
  • getHost,
  • getByteBufferPool,
  • getProtocols,
  • getScheduler,
  • isConfidential,
  • isIntegral,
  • shutdown,
  • getDefaultConnectionFactory

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Github Copilot alternatives
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