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

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

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

origin: works.lmz.common/common-runnable-war

private void attemptCleanClose() {
  long timeout = Integer.getInteger(WEBAPP_SHUTDOWN_TIMEOUT_PROPERTY, WEBAPP_SHUTDOWN_TIMEOUT_DEFAULT);
  if (timeout > 0) {
    log.info("jetty shutdown: requesting shutdown");
    try {
      Connector[] connectors = server.getConnectors();
      if (connectors != null) {
        for (Connector connector : connectors) {
          connector.shutdown();
        }
      }
      int open = statistics.getRequestsActive();
      if (open > 0) {
        waitForConnections(timeout, open);
      }
    } catch (Exception e) {
      log.warn("jetty shutdown: formal shutdown failed", e);
    }
  }
}
origin: cd.connect.common/connect-runnable-war

private void attemptCleanClose() {
  long timeout = Integer.getInteger(WEBAPP_SHUTDOWN_TIMEOUT_PROPERTY, WEBAPP_SHUTDOWN_TIMEOUT_DEFAULT);
  if (timeout > 0) {
    logger.info("jetty shutdown: requesting shutdown");
    try {
      Connector[] connectors = server.getConnectors();
      if (connectors != null) {
        for (Connector connector : connectors) {
          connector.shutdown();
        }
      }
      if (statistics != null && statistics.isStarted()) {
        int open = statistics.getRequestsActive();
        if (open > 0) {
          waitForConnections(timeout, open);
        }
      }
    } catch (Exception e) {
      logger.warn("jetty shutdown: formal shutdown failed", e);
    }
  }
}
origin: Nextdoor/bender

protected void doShutdown(Request baseRequest, HttpServletResponse response) throws IOException {
  for (Connector connector : getServer().getConnectors()) {
    connector.shutdown();
  }
  response.sendError(200, "Connectors closed, commencing full shutdown");
  baseRequest.setHandled(true);
  final Server server=getServer();
  new Thread()
  {
    @Override
    public void run ()
    {
      try
      {
        shutdownServer(server);
      }
      catch (InterruptedException e)
      {
        LOG.ignore(e);
      }
      catch (Exception e)
      {
        throw new RuntimeException("Shutting down server",e);
      }
    }
  }.start();
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

protected void doShutdown(Request baseRequest, HttpServletResponse response) throws IOException 
{
  for (Connector connector : getServer().getConnectors()) 
  {
    connector.shutdown();
  }
  response.sendError(200, "Connectors closed, commencing full shutdown");
  baseRequest.setHandled(true);
  final Server server=getServer();
  new Thread()
  {
    @Override
    public void run ()
    {
      try
      {
        shutdownServer(server);
      }
      catch (InterruptedException e)
      {
        LOG.ignore(e);
      }
      catch (Exception e)
      {
        throw new RuntimeException("Shutting down server",e);
      }
    }
  }.start();
}
origin: jenkinsci/winstone

protected void doShutdown(Request baseRequest, HttpServletResponse response) throws IOException 
{
  for (Connector connector : getServer().getConnectors()) 
  {
    connector.shutdown();
  }
  response.sendError(200, "Connectors closed, commencing full shutdown");
  baseRequest.setHandled(true);
  final Server server=getServer();
  new Thread()
  {
    @Override
    public void run ()
    {
      try
      {
        shutdownServer(server);
      }
      catch (InterruptedException e)
      {
        LOG.ignore(e);
      }
      catch (Exception e)
      {
        throw new RuntimeException("Shutting down server",e);
      }
    }
  }.start();
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

futures.add(connector.shutdown());
origin: com.ovea.tajin.server/tajin-server-jetty9

futures.add(connector.shutdown());
origin: Nextdoor/bender

futures.add(connector.shutdown());
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

futures.add(connector.shutdown());
origin: jenkinsci/winstone

futures.add(connector.shutdown());
org.eclipse.jetty.serverConnectorshutdown

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,
  • close,
  • getProtocols,
  • getScheduler,
  • isConfidential,
  • isIntegral,
  • getDefaultConnectionFactory

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top 12 Jupyter Notebook extensions
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