congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JCheckBox (javax.swing)
  • JPanel (javax.swing)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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