Codota Logo
Connector.shutdown
Code IndexAdd Codota 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)

  • Common ways to obtain Connector
private void myMethod () {
Connector c =
  • Codota Iconnew SelectChannelConnector()
  • Codota IconAbstractHttpConnection abstractHttpConnection;abstractHttpConnection.getConnector()
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Path (java.nio.file)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now