Class FunctionStatsImpl
java.lang.Object
org.apache.pulsar.common.policies.data.FunctionStatsImpl
- All Implemented Interfaces:
org.apache.pulsar.common.policies.data.FunctionStats
public class FunctionStatsImpl
extends Object
implements org.apache.pulsar.common.policies.data.FunctionStats
Statistics for Pulsar Function.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAverage process latency for function.Timestamp of when the function was last invoked by any instance.longOverall total number of records successfully processed by user function.longOverall total number of records function received from source.longOverall total number of system exceptions thrown.longOverall total number of user exceptions thrown. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInstance(FunctionInstanceStatsImpl functionInstanceStats) static FunctionStatsImplMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.common.policies.data.FunctionStats
getAvgProcessLatency, getInstances, getLastInvocation, getOneMin, getProcessedSuccessfullyTotal, getReceivedTotal, getSystemExceptionsTotal, getUserExceptionsTotal
-
Field Details
-
receivedTotal
public long receivedTotalOverall total number of records function received from source. -
processedSuccessfullyTotal
public long processedSuccessfullyTotalOverall total number of records successfully processed by user function. -
systemExceptionsTotal
public long systemExceptionsTotalOverall total number of system exceptions thrown. -
userExceptionsTotal
public long userExceptionsTotalOverall total number of user exceptions thrown. -
avgProcessLatency
Average process latency for function. -
oneMin
-
lastInvocation
Timestamp of when the function was last invoked by any instance. -
instances
-
-
Constructor Details
-
FunctionStatsImpl
public FunctionStatsImpl()
-
-
Method Details
-
addInstance
-
calculateOverall
- Specified by:
calculateOverallin interfaceorg.apache.pulsar.common.policies.data.FunctionStats
-
decode
- Throws:
IOException
-