Tabnine Logo
ServerConnectionStatistics
Code IndexAdd Tabnine to your IDE (free)

How to use
ServerConnectionStatistics
in
org.eclipse.jetty.server

Best Java code snippets using org.eclipse.jetty.server.ServerConnectionStatistics (Showing top 3 results out of 315)

origin: com.yahoo.vespa/jdisc_http_service

private void setConnectorMetrics(JDiscServerConnector connector) {
  ServerConnectionStatistics statistics = connector.getStatistics();
  metric.set(Metrics.NUM_CONNECTIONS, statistics.getConnectionsTotal(), connector.getConnectorMetricContext());
  metric.set(Metrics.NUM_OPEN_CONNECTIONS, statistics.getConnections(), connector.getConnectorMetricContext());
  metric.set(Metrics.NUM_CONNECTIONS_OPEN_MAX, statistics.getConnectionsMax(), connector.getConnectorMetricContext());
  metric.set(Metrics.CONNECTION_DURATION_MAX, statistics.getConnectionDurationMax(), connector.getConnectorMetricContext());
  metric.set(Metrics.CONNECTION_DURATION_MEAN, statistics.getConnectionDurationMean(), connector.getConnectorMetricContext());
  metric.set(Metrics.CONNECTION_DURATION_STD_DEV, statistics.getConnectionDurationStdDev(), connector.getConnectorMetricContext());
}
origin: nutzam/nutz-web

stats.setHandler(server.getHandler());
server.setHandler(stats);
ServerConnectionStatistics.addToAllConnectors(server);
origin: com.yahoo.vespa/jdisc_http_service

JDiscServerConnector(ConnectorConfig config, Metric metric, Server server,
           ServerSocketChannel channelOpenedByActivator, ConnectionFactory... factories) {
  super(server, factories);
  this.channelOpenedByActivator = channelOpenedByActivator;
  this.tcpKeepAlive = config.tcpKeepAliveEnabled();
  this.tcpNoDelay = config.tcpNoDelay();
  this.metric = metric;
  this.connectorName = config.name();
  this.listenPort = config.listenPort();
  this.metricCtx = metric.createContext(createConnectorDimensions(listenPort, connectorName));
  this.statistics = new ServerConnectionStatistics();
  addBean(statistics);
  ConnectorConfig.Throttling throttlingConfig = config.throttling();
  if (throttlingConfig.enabled()) {
    new ConnectionThrottler(this, throttlingConfig).registerWithConnector();
  }
}
org.eclipse.jetty.serverServerConnectionStatistics

Most used methods

  • <init>
  • addToAllConnectors
  • getConnectionDurationMax
  • getConnectionDurationMean
  • getConnectionDurationStdDev
  • getConnections
  • getConnectionsMax
  • getConnectionsTotal

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Option (scala)
  • Top 17 Free Sublime Text Plugins
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