congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Connector.isStarted
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: 4thline/cling

@Override
synchronized public void removeConnector(String host, int port)  {
  Connector[] connectors = server.getConnectors();
  for (Connector connector : connectors) {
    if (connector.getHost().equals(host) && connector.getLocalPort() == port) {
      if (connector.isStarted() || connector.isStarting()) {
        try {
          connector.stop();
        } catch (Exception ex) {
          log.severe("Couldn't stop connector: " + connector + " " + ex);
          throw new RuntimeException(ex);
        }
      }
      server.removeConnector(connector);
      if (connectors.length == 1) {
        log.info("No more connectors, stopping Jetty server");
        stopIfRunning();
      }
      break;
    }
  }
}
origin: org.fourthline.cling/cling-core

@Override
synchronized public void removeConnector(String host, int port)  {
  Connector[] connectors = server.getConnectors();
  for (Connector connector : connectors) {
    if (connector.getHost().equals(host) && connector.getLocalPort() == port) {
      if (connector.isStarted() || connector.isStarting()) {
        try {
          connector.stop();
        } catch (Exception ex) {
          log.severe("Couldn't stop connector: " + connector + " " + ex);
          throw new RuntimeException(ex);
        }
      }
      server.removeConnector(connector);
      if (connectors.length == 1) {
        log.info("No more connectors, stopping Jetty server");
        stopIfRunning();
      }
      break;
    }
  }
}
origin: apache/felix

  @Override
  public void removedService(ServiceReference<ConnectorFactory> reference, Connector service)
  {
    Connector connector = service;
    if (connector.isStarted())
    {
      try
      {
        connector.stop();
      }
      catch (Exception e)
      {
        SystemLogger.info("Failed stopping connector '" + connector + "' provided by " + reference + ": " + e);
      }
    }
    this.server.removeConnector(connector);
  }
}
origin: com.ovea.tajin.server/tajin-server-jetty9

else if (getConnector().isStarted())
    if (getConnector().isStarted())
      LOG.warn(e);
    else
origin: com.ovea.tajin.servers/tajin-server-jetty9

else if (getConnector().isStarted())
    if (getConnector().isStarted())
      LOG.warn(e);
    else
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

if (_connector.isStarted())
  LOG.warn(String.valueOf(_request.getHttpURI()), e);
else
org.eclipse.jetty.serverConnectorisStarted

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,
  • shutdown,
  • getDefaultConnectionFactory

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Sublime Text for Python
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