public class KubernetesRuntimeFactory extends Object implements RuntimeFactory
| Constructor and Description |
|---|
KubernetesRuntimeFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
KubernetesRuntime |
createContainer(InstanceConfig instanceConfig,
String codePkgUrl,
String originalCodeFileName,
Long expectedHealthCheckInterval)
Create a function container to execute a java instance.
|
void |
doAdmissionChecks(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails) |
boolean |
externallyManaged() |
Optional<KubernetesFunctionAuthProvider> |
getAuthProvider() |
Optional<KubernetesManifestCustomizer> |
getRuntimeCustomizer() |
void |
initialize(WorkerConfig workerConfig,
AuthenticationConfig authenticationConfig,
SecretsProviderConfigurator secretsProviderConfigurator,
ConnectorsManager connectorsManager,
Optional<FunctionAuthProvider> functionAuthProvider,
Optional<RuntimeCustomizer> runtimeCustomizer) |
void |
setupClient() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFuntionRuntimeFactorypublic boolean externallyManaged()
externallyManaged in interface RuntimeFactorypublic void initialize(WorkerConfig workerConfig, AuthenticationConfig authenticationConfig, SecretsProviderConfigurator secretsProviderConfigurator, ConnectorsManager connectorsManager, Optional<FunctionAuthProvider> functionAuthProvider, Optional<RuntimeCustomizer> runtimeCustomizer)
initialize in interface RuntimeFactorypublic KubernetesRuntime createContainer(InstanceConfig instanceConfig, String codePkgUrl, String originalCodeFileName, Long expectedHealthCheckInterval) throws Exception
RuntimeFactorycreateContainer in interface RuntimeFactoryinstanceConfig - java instance configcodePkgUrl - code fileexpectedHealthCheckInterval - expected health check interval in secondsExceptionpublic void close()
close in interface AutoCloseableclose in interface RuntimeFactorypublic void doAdmissionChecks(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)
doAdmissionChecks in interface RuntimeFactorypublic Optional<KubernetesFunctionAuthProvider> getAuthProvider()
getAuthProvider in interface RuntimeFactorypublic Optional<KubernetesManifestCustomizer> getRuntimeCustomizer()
getRuntimeCustomizer in interface RuntimeFactoryCopyright © 2017–2021 Apache Software Foundation. All rights reserved.