类 ComponentStatsManager

java.lang.Object
org.apache.pulsar.functions.instance.stats.ComponentStatsManager
所有已实现的接口:
AutoCloseable
直接已知子类:
FunctionStatsManager, SinkStatsManager, SourceStatsManager

public abstract class ComponentStatsManager extends Object implements AutoCloseable
  • 字段详细资料

    • metricsLabels

      protected String[] metricsLabels
    • scheduledFuture

      protected ScheduledFuture<?> scheduledFuture
    • collectorRegistry

      protected final FunctionCollectorRegistry collectorRegistry
    • EMPTY_QUEUE

      protected final com.google.common.collect.EvictingQueue EMPTY_QUEUE
    • USER_METRIC_PREFIX

      public static final String USER_METRIC_PREFIX
      另请参阅:
    • metricsLabelNames

      public static final String[] metricsLabelNames
    • exceptionMetricsLabelNames

      protected static final String[] exceptionMetricsLabelNames
  • 构造器详细资料

  • 方法详细资料

    • getStatsManager

      public static ComponentStatsManager getStatsManager(FunctionCollectorRegistry collectorRegistry, String[] metricsLabels, ScheduledExecutorService scheduledExecutorService, org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType)
    • reset

      public abstract void reset()
    • incrTotalReceived

      public abstract void incrTotalReceived()
    • incrTotalProcessedSuccessfully

      public abstract void incrTotalProcessedSuccessfully()
    • incrSysExceptions

      public abstract void incrSysExceptions(Throwable sysException)
    • incrUserExceptions

      public abstract void incrUserExceptions(Throwable userException)
    • incrSourceExceptions

      public abstract void incrSourceExceptions(Throwable userException)
    • incrSinkExceptions

      public abstract void incrSinkExceptions(Throwable userException)
    • setLastInvocation

      public abstract void setLastInvocation(long ts)
    • processTimeStart

      public abstract void processTimeStart()
    • processTimeEnd

      public abstract void processTimeEnd()
    • getTotalProcessedSuccessfully

      public abstract double getTotalProcessedSuccessfully()
    • getTotalRecordsReceived

      public abstract double getTotalRecordsReceived()
    • getTotalSysExceptions

      public abstract double getTotalSysExceptions()
    • getTotalUserExceptions

      public abstract double getTotalUserExceptions()
    • getLastInvocation

      public abstract double getLastInvocation()
    • getAvgProcessLatency

      public abstract double getAvgProcessLatency()
    • getTotalProcessedSuccessfully1min

      public abstract double getTotalProcessedSuccessfully1min()
    • getTotalRecordsReceived1min

      public abstract double getTotalRecordsReceived1min()
    • getTotalSysExceptions1min

      public abstract double getTotalSysExceptions1min()
    • getTotalUserExceptions1min

      public abstract double getTotalUserExceptions1min()
    • getAvgProcessLatency1min

      public abstract double getAvgProcessLatency1min()
    • getLatestUserExceptions

      public abstract com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestUserExceptions()
    • getLatestSystemExceptions

      public abstract com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSystemExceptions()
    • getLatestSourceExceptions

      public abstract com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSourceExceptions()
    • getLatestSinkExceptions

      public abstract com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSinkExceptions()
    • getStatsAsString

      public String getStatsAsString() throws IOException
      抛出:
      IOException
    • getExceptionInfo

      protected org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation getExceptionInfo(Throwable th, long ts)
    • close

      public void close()
      指定者:
      close 在接口中 AutoCloseable