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 java.lang.Object implements org.apache.pulsar.common.policies.data.FunctionStatsStatistics for Pulsar Function.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.DoubleavgProcessLatencyAverage process latency for function.java.util.List<FunctionInstanceStatsImpl>instancesjava.lang.LonglastInvocationTimestamp of when the function was last invoked by any instance.FunctionInstanceStatsDataBaseImploneMinlongprocessedSuccessfullyTotalOverall total number of records successfully processed by user function.longreceivedTotalOverall total number of records function received from source.longsystemExceptionsTotalOverall total number of system exceptions thrown.longuserExceptionsTotalOverall total number of user exceptions thrown.
-
Constructor Summary
Constructors Constructor Description FunctionStatsImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInstance(FunctionInstanceStatsImpl functionInstanceStats)FunctionStatsImplcalculateOverall()static FunctionStatsImpldecode(java.lang.String json)
-
-
-
Field Detail
-
receivedTotal
public long receivedTotal
Overall total number of records function received from source.
-
processedSuccessfullyTotal
public long processedSuccessfullyTotal
Overall total number of records successfully processed by user function.
-
systemExceptionsTotal
public long systemExceptionsTotal
Overall total number of system exceptions thrown.
-
userExceptionsTotal
public long userExceptionsTotal
Overall total number of user exceptions thrown.
-
avgProcessLatency
public java.lang.Double avgProcessLatency
Average process latency for function.
-
oneMin
public FunctionInstanceStatsDataBaseImpl oneMin
-
lastInvocation
public java.lang.Long lastInvocation
Timestamp of when the function was last invoked by any instance.
-
instances
public java.util.List<FunctionInstanceStatsImpl> instances
-
-
Method Detail
-
addInstance
public void addInstance(FunctionInstanceStatsImpl functionInstanceStats)
-
calculateOverall
public FunctionStatsImpl calculateOverall()
- Specified by:
calculateOverallin interfaceorg.apache.pulsar.common.policies.data.FunctionStats
-
decode
public static FunctionStatsImpl decode(java.lang.String json) throws java.io.IOException
- Throws:
java.io.IOException
-
-