类 ThreadRuntime
java.lang.Object
org.apache.pulsar.functions.runtime.thread.ThreadRuntime
- 所有已实现的接口:
Runtime
A function container implemented using java thread.
-
方法概要
修饰符和类型方法说明CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData>CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus>getFunctionStatus(int instanceId) CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData>getMetrics(int instanceId) booleanisAlive()voidjoin()voidstart()The core logic that initialize the thread container and executes the function.voidstop()从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.functions.runtime.Runtime
reinitialize, terminate
-
方法详细资料
-
start
The core logic that initialize the thread container and executes the function. -
join
-
stop
public void stop() -
getFunctionStatus
public CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.FunctionStatus> getFunctionStatus(int instanceId) - 指定者:
getFunctionStatus在接口中Runtime
-
getAndResetMetrics
public CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData> getAndResetMetrics()- 指定者:
getAndResetMetrics在接口中Runtime
-
getMetrics
public CompletableFuture<org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData> getMetrics(int instanceId) - 指定者:
getMetrics在接口中Runtime
-
getPrometheusMetrics
- 指定者:
getPrometheusMetrics在接口中Runtime- 抛出:
IOException
-
resetMetrics
- 指定者:
resetMetrics在接口中Runtime
-
isAlive
public boolean isAlive() -
getDeathException
- 指定者:
getDeathException在接口中Runtime
-