类 ComponentStatsManager
java.lang.Object
org.apache.pulsar.functions.instance.stats.ComponentStatsManager
- 所有已实现的接口:
AutoCloseable
-
字段概要
字段修饰符和类型字段说明protected final FunctionCollectorRegistryprotected final com.google.common.collect.EvictingQueueprotected static final String[]static final String[]protected String[]protected ScheduledFuture<?>static final String -
构造器概要
构造器构造器说明ComponentStatsManager(FunctionCollectorRegistry collectorRegistry, String[] metricsLabels, ScheduledExecutorService scheduledExecutorService) -
方法概要
修饰符和类型方法说明voidclose()abstract doubleabstract doubleprotected org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformationgetExceptionInfo(Throwable th, long ts) abstract doubleabstract com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation>abstract com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation>abstract com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation>abstract com.google.common.collect.EvictingQueue<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation>static ComponentStatsManagergetStatsManager(FunctionCollectorRegistry collectorRegistry, String[] metricsLabels, ScheduledExecutorService scheduledExecutorService, org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType) abstract doubleabstract doubleabstract doubleabstract doubleabstract doubleabstract doubleabstract doubleabstract doubleabstract voidincrSinkExceptions(Throwable userException) abstract voidincrSourceExceptions(Throwable userException) abstract voidincrSysExceptions(Throwable sysException) abstract voidabstract voidabstract voidincrUserExceptions(Throwable userException) abstract voidabstract voidabstract voidreset()abstract voidsetLastInvocation(long ts)
-
字段详细资料
-
metricsLabels
-
scheduledFuture
-
collectorRegistry
-
EMPTY_QUEUE
protected final com.google.common.collect.EvictingQueue EMPTY_QUEUE -
USER_METRIC_PREFIX
- 另请参阅:
-
metricsLabelNames
-
exceptionMetricsLabelNames
-
-
构造器详细资料
-
ComponentStatsManager
public ComponentStatsManager(FunctionCollectorRegistry collectorRegistry, String[] metricsLabels, ScheduledExecutorService scheduledExecutorService)
-
-
方法详细资料
-
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
-
incrUserExceptions
-
incrSourceExceptions
-
incrSinkExceptions
-
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
- 抛出:
IOException
-
getExceptionInfo
protected org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus.ExceptionInformation getExceptionInfo(Throwable th, long ts) -
close
public void close()- 指定者:
close在接口中AutoCloseable
-