| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData> |
getAndResetMetrics() |
Throwable |
getDeathException() |
CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus> |
getFunctionStatus(int instanceId) |
CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData> |
getMetrics(int instanceId) |
String |
getPrometheusMetrics() |
boolean |
isAlive() |
void |
join() |
CompletableFuture<Void> |
resetMetrics() |
void |
start()
The core logic that initialize the thread container and executes the function.
|
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreinitialize, terminatepublic void start()
throws Exception
public CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus> getFunctionStatus(int instanceId)
getFunctionStatus in interface Runtimepublic CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData> getAndResetMetrics()
getAndResetMetrics in interface Runtimepublic CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData> getMetrics(int instanceId)
getMetrics in interface Runtimepublic String getPrometheusMetrics() throws IOException
getPrometheusMetrics in interface RuntimeIOExceptionpublic CompletableFuture<Void> resetMetrics()
resetMetrics in interface Runtimepublic Throwable getDeathException()
getDeathException in interface RuntimeCopyright © 2017–2021 Apache Software Foundation. All rights reserved.