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

How to use
InterestChannelMetrics
in
com.netflix.eureka2.server.metric

Best Java code snippets using com.netflix.eureka2.server.metric.InterestChannelMetrics (Showing top 10 results out of 315)

origin: com.netflix.eureka2/eureka-server

metrics.incrementSubscriptionCounter(AtomicInterest.Application, app);
metrics.decrementSubscriptionCounter(AtomicInterest.Application, app);
metrics.incrementSubscriptionCounter(AtomicInterest.Vip, vip);
metrics.decrementSubscriptionCounter(AtomicInterest.Vip, vip);
metrics.incrementSubscriptionCounter(AtomicInterest.Instance, instance);
metrics.decrementSubscriptionCounter(AtomicInterest.Instance, instance);
metrics.decrementSubscriptionCounter(AtomicInterest.InterestAll, null);
metrics.incrementSubscriptionCounter(AtomicInterest.InterestAll, null);
origin: com.netflix.eureka2/eureka-server

public void incrementApplicationNotificationCounter(String applicationName) {
  getApplicationNotificationCounter(applicationName).increment();
}
origin: com.netflix.eureka2/eureka-server

  @Override
  public void onNext(ChangeNotification<InstanceInfo> notification) {
    metrics.incrementApplicationNotificationCounter(notification.getData().getApp());
    Observable<Void> sendResult = sendNotification(notification);
    if(sendResult != null) {
      subscribeToTransportSend(sendResult, "notification");
    } else {
      // TODO: how to report effectively invariant violations that should never happen in a valid code, but are not errors?
      logger.warn("No-effect modify in the interest channel: {}", notification);
    }
  }
});
origin: com.netflix.eureka2/eureka-read-server

bind(EurekaClientConnectionMetrics.class).annotatedWith(Names.named("replication")).toInstance(new EurekaClientConnectionMetrics("replication"));
bind(InterestChannelMetrics.class).toInstance(new InterestChannelMetrics());
origin: com.netflix.eureka2/eureka-server

  public static EurekaServerMetricFactory serverMetrics() {
    if (INSTANCE == null) {
      synchronized (EurekaServerMetricFactory.class) {
        MessageConnectionMetrics registrationConnectionMetrics = new MessageConnectionMetrics("registration");
        registrationConnectionMetrics.bindMetrics();

        MessageConnectionMetrics replicationConnectionMetrics = new MessageConnectionMetrics("replication");
        replicationConnectionMetrics.bindMetrics();

        MessageConnectionMetrics discoveryConnectionMetrics = new MessageConnectionMetrics("discovery");
        discoveryConnectionMetrics.bindMetrics();

        InterestChannelMetrics interestChannelMetrics = new InterestChannelMetrics();
        interestChannelMetrics.bindMetrics();

        INSTANCE = new EurekaServerMetricFactory(
            registrationConnectionMetrics,
            replicationConnectionMetrics,
            discoveryConnectionMetrics,
            interestChannelMetrics
        );
      }
    }
    return INSTANCE;
  }
}
origin: com.netflix.eureka2/eureka-server

public void incrementSubscriptionCounter(AtomicInterest interestType, String id) {
  if (interestType == AtomicInterest.Instance) {
    ServoUtils.incrementLongGauge(totalInstanceInterests);
  }
  if (interestType == AtomicInterest.InterestAll) {
    ServoUtils.incrementLongGauge(interestAllCounter);
  } else {
    ServoUtils.incrementLongGauge(getSubscriptionCounter(new InterestKey(interestType, id)));
  }
}
origin: com.netflix.eureka2/eureka-server

this.metrics.incrementStateCounter(STATES.Open);
origin: com.netflix.eureka2/eureka-write-server

bind(InterestChannelMetrics.class).toInstance(new InterestChannelMetrics());
origin: com.netflix.eureka2/eureka-server

public void decrementSubscriptionCounter(AtomicInterest interestType, String id) {
  if (interestType == AtomicInterest.Instance) {
    ServoUtils.decrementLongGauge(totalInstanceInterests);
  }
  if (interestType == AtomicInterest.InterestAll) {
    ServoUtils.decrementLongGauge(interestAllCounter);
  } else {
    ServoUtils.decrementLongGauge(getSubscriptionCounter(new InterestKey(interestType, id)));
  }
}
origin: com.netflix.eureka2/eureka-bridge

bind(InterestChannelMetrics.class).toInstance(new InterestChannelMetrics());
com.netflix.eureka2.server.metricInterestChannelMetrics

Most used methods

  • <init>
  • bindMetrics
  • decrementSubscriptionCounter
  • getApplicationNotificationCounter
  • getSubscriptionCounter
  • incrementApplicationNotificationCounter
  • incrementStateCounter
  • incrementSubscriptionCounter
  • monitorConfig
  • newLongGauge
  • register
  • stateTransition
  • register,
  • stateTransition

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JCheckBox (javax.swing)
  • Top plugins for WebStorm
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