public class WorkerServiceLoader extends Object
| Constructor and Description |
|---|
WorkerServiceLoader() |
| Modifier and Type | Method and Description |
|---|---|
static WorkerServiceDefinition |
getWorkerServiceDefinition(String narPath,
String narExtractionDirectory)
Retrieve the functions worker service definition from the provided worker service nar package.
|
static WorkerService |
load(WorkerConfig workerConfig)
Load the worker services for the given protocol list.
|
public static WorkerServiceDefinition getWorkerServiceDefinition(String narPath, String narExtractionDirectory) throws IOException
narPath - the path to the worker service NAR packageIOException - when fail to load the worker service or get the definitionpublic static WorkerService load(WorkerConfig workerConfig)
workerConfig - the functions worker configCopyright © 2017–2022 Apache Software Foundation. All rights reserved.