Tabnine Logo
Server.stop
Code IndexAdd Tabnine to your IDE (free)

How to use
stop
method
in
org.eclipse.jetty.server.Server

Best Java code snippets using org.eclipse.jetty.server.Server.stop (Showing top 20 results out of 4,689)

origin: spring-projects/spring-framework

public void stop() throws Exception {
  this.server.stop();
}
origin: perwendel/spark

/**
 * {@inheritDoc}
 */
@Override
public void extinguish() {
  logger.info(">>> {} shutting down ...", NAME);
  try {
    if (server != null) {
      server.stop();
    }
  } catch (Exception e) {
    logger.error("stop failed", e);
    System.exit(100); // NOSONAR
  }
  logger.info("done");
}
origin: AsyncHttpClient/async-http-client

@AfterMethod(alwaysRun = true)
public void tearDownGlobal() throws Exception {
 server.stop();
 server2.stop();
}
origin: AsyncHttpClient/async-http-client

@AfterClass(alwaysRun = true)
public void tearDownGlobal() throws Exception {
 httpServer.stop();
 proxy.stop();
}
origin: AsyncHttpClient/async-http-client

@AfterClass(alwaysRun = true)
public void tearDownGlobal() throws Exception {
 server.stop();
 server2.stop();
}
origin: AsyncHttpClient/async-http-client

@AfterClass(alwaysRun = true)
public void tearDownGlobal() throws Exception {
 if (server != null) {
  server.stop();
 }
}
origin: AsyncHttpClient/async-http-client

@AfterClass(alwaysRun = true)
public void tearDownGlobal() throws Exception {
 for (Server srv : servers) {
  srv.stop();
 }
}
origin: AsyncHttpClient/async-http-client

@Override
public void close() throws IOException {
 if (server != null) {
  try {
   server.stop();
  } catch (Exception e) {
   throw new IOException(e);
  }
 }
}
origin: apache/incubator-druid

@After
public void tearDown() throws Exception
{
 coordinator.stop();
 overlord.stop();
 coordinatorExpectedRequest.reset();
 overlordExpectedRequest.reset();
}
origin: spring-projects/spring-framework

@AfterClass
public static void stopJettyServer() throws Exception {
  if (jettyServer != null) {
    jettyServer.stop();
  }
}
origin: spring-projects/spring-framework

@AfterClass
public static void stopServer() throws Exception {
  if (server != null) {
    server.stop();
  }
}
origin: AsyncHttpClient/async-http-client

@AfterClass(alwaysRun = true)
public void tearDownGlobal() throws Exception {
 super.tearDownGlobal();
 server2.stop();
 serverNoAuth.stop();
}
origin: apache/incubator-dubbo

@Override
public void close() {
  super.close();
  //
  ServletManager.getInstance().removeServletContext(url.getParameter(Constants.BIND_PORT_KEY, url.getPort()));
  if (server != null) {
    try {
      server.stop();
    } catch (Exception e) {
      logger.warn(e.getMessage(), e);
    }
  }
}
origin: apache/incubator-dubbo

@Override
public void close() {
  super.close();
  //
  ServletManager.getInstance().removeServletContext(url.getParameter(Constants.BIND_PORT_KEY, url.getPort()));
  if (server != null) {
    try {
      server.stop();
    } catch (Exception e) {
      logger.warn(e.getMessage(), e);
    }
  }
}
origin: AsyncHttpClient/async-http-client

@AfterClass(alwaysRun = true)
public void tearDownGlobal() throws Exception {
 super.tearDownGlobal();
 server2.stop();
}
origin: apache/incubator-druid

@After
public void tearDown() throws Exception
{
 client.close();
 clientLosAngeles.close();
 server.stop();
 walker.close();
 walker = null;
 client = null;
 clientLosAngeles = null;
 server = null;
}
origin: spring-projects/spring-framework

@Override
protected void resetInternal() {
  try {
    if (this.jettyServer.isRunning()) {
      this.jettyServer.setStopTimeout(5000);
      this.jettyServer.stop();
      this.jettyServer.destroy();
    }
  }
  catch (Exception ex) {
    throw new IllegalStateException(ex);
  }
  finally {
    this.jettyServer = null;
    this.contextHandler = null;
  }
}
origin: spring-projects/spring-framework

@Override
public void stop() throws Exception {
  try {
    if (this.contextHandler.isRunning()) {
      this.contextHandler.stop();
    }
  }
  finally {
    if (this.jettyServer.isRunning()) {
      this.jettyServer.setStopTimeout(5000);
      this.jettyServer.stop();
    }
  }
}
origin: Netflix/eureka

@AfterClass
public static void tearDown() throws Exception {
  removeEurekaConfiguration();
  if (jerseyReplicationClient != null) {
    jerseyReplicationClient.shutdown();
  }
  if (server != null) {
    server.stop();
  }
  if (httpClientFactory != null) {
    httpClientFactory.shutdown();
  }
}
origin: spring-projects/spring-framework

@Override
protected void stopInternal() throws Exception {
  try {
    if (this.contextHandler.isRunning()) {
      this.contextHandler.stop();
    }
  }
  finally {
    try {
      if (this.jettyServer.isRunning()) {
        this.jettyServer.setStopTimeout(5000);
        this.jettyServer.stop();
        this.jettyServer.destroy();
      }
    }
    catch (Exception ex) {
      // ignore
    }
  }
}
org.eclipse.jetty.serverServerstop

Popular methods of Server

  • start
  • <init>
  • setHandler
  • join
  • addConnector
  • getConnectors
  • setConnectors
    Set the connectors for this server. Each connector has this server set as it's ThreadPool and its Ha
  • addBean
  • isStarted
  • setStopAtShutdown
    Set stop server at shutdown behaviour.
  • destroy
  • isRunning
  • destroy,
  • isRunning,
  • getThreadPool,
  • getHandler,
  • setStopTimeout,
  • getURI,
  • getHandlers,
  • getChildHandlersByClass,
  • getVersion

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
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