类 ProcessRuntimeFactory
java.lang.Object
org.apache.pulsar.functions.runtime.process.ProcessRuntimeFactory
- 所有已实现的接口:
AutoCloseable,RuntimeFactory
Thread based function container factory implementation.
-
构造器概要
构造器构造器说明ProcessRuntimeFactory(String pulsarServiceUrl, String pulsarWebServiceUrl, String stateStorageServiceUrl, org.apache.pulsar.functions.instance.AuthenticationConfig authConfig, String javaInstanceJarFile, String pythonInstanceFile, String logDirectory, String extraDependenciesDir, String narExtractionDirectory, org.apache.pulsar.functions.secretsproviderconfigurator.SecretsProviderConfigurator secretsProviderConfigurator, boolean authenticationEnabled, Optional<FunctionAuthProvider> functionAuthProvider, Optional<RuntimeCustomizer> runtimeCustomizer) -
方法概要
修饰符和类型方法说明voidclose()org.apache.pulsar.functions.runtime.process.ProcessRuntimecreateContainer(org.apache.pulsar.functions.instance.InstanceConfig instanceConfig, String codeFile, String originalCodeFileName, Long expectedHealthCheckInterval) Create a function container to execute a java instance.voidinitialize(WorkerConfig workerConfig, org.apache.pulsar.functions.instance.AuthenticationConfig authenticationConfig, org.apache.pulsar.functions.secretsproviderconfigurator.SecretsProviderConfigurator secretsProviderConfigurator, ConnectorsManager connectorsManager, Optional<FunctionAuthProvider> authProvider, Optional<RuntimeCustomizer> runtimeCustomizer) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.functions.runtime.RuntimeFactory
doAdmissionChecks, externallyManaged
-
构造器详细资料
-
ProcessRuntimeFactory
public ProcessRuntimeFactory(String pulsarServiceUrl, String pulsarWebServiceUrl, String stateStorageServiceUrl, org.apache.pulsar.functions.instance.AuthenticationConfig authConfig, String javaInstanceJarFile, String pythonInstanceFile, String logDirectory, String extraDependenciesDir, String narExtractionDirectory, org.apache.pulsar.functions.secretsproviderconfigurator.SecretsProviderConfigurator secretsProviderConfigurator, boolean authenticationEnabled, Optional<FunctionAuthProvider> functionAuthProvider, Optional<RuntimeCustomizer> runtimeCustomizer)
-
-
方法详细资料
-
initialize
public void initialize(WorkerConfig workerConfig, org.apache.pulsar.functions.instance.AuthenticationConfig authenticationConfig, org.apache.pulsar.functions.secretsproviderconfigurator.SecretsProviderConfigurator secretsProviderConfigurator, ConnectorsManager connectorsManager, Optional<FunctionAuthProvider> authProvider, Optional<RuntimeCustomizer> runtimeCustomizer) - 指定者:
initialize在接口中RuntimeFactory
-
createContainer
public org.apache.pulsar.functions.runtime.process.ProcessRuntime createContainer(org.apache.pulsar.functions.instance.InstanceConfig instanceConfig, String codeFile, String originalCodeFileName, Long expectedHealthCheckInterval) throws Exception 从接口复制的说明:RuntimeFactoryCreate a function container to execute a java instance.- 指定者:
createContainer在接口中RuntimeFactory- 参数:
instanceConfig- java instance configcodeFile- code fileexpectedHealthCheckInterval- expected health check interval in seconds- 返回:
- function container to start/stop instance
- 抛出:
Exception
-
getAuthProvider
- 指定者:
getAuthProvider在接口中RuntimeFactory
-
getRuntimeCustomizer
- 指定者:
getRuntimeCustomizer在接口中RuntimeFactory
-
close
public void close()- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中RuntimeFactory
-