public interface DirectiveRegistry extends Closeable
The directive information is stored within the registry. The information includes name,class,usage and usage definition.
DirectiveInfo| Modifier and Type | Method and Description |
|---|---|
DirectiveInfo |
get(String namespace,
String name)
Given the name of the directive, returns the information related to the directive.
|
ArtifactSummary |
getLatestWranglerArtifact()
Retrieve latest Wrangler transform artifact information
|
Iterable<DirectiveInfo> |
list(String namespace)
List the directives in the specified namespace
|
void |
reload(String namespace)
This method reloads the directives from the artifacts into the registry.
|
Iterable<DirectiveInfo> list(String namespace)
namespace - the namespace to list from@Nullable DirectiveInfo get(String namespace, String name) throws DirectiveLoadException
namespace - the namespace of the directivename - of the directive to be retrieved from the registry.DirectiveInfo if found, else null.DirectiveLoadExceptionvoid reload(String namespace) throws DirectiveLoadException
namespace - the namespace to reload directives inDirectiveLoadException - thrown when there are any issues with loading
directives into the registry.@Nullable ArtifactSummary getLatestWranglerArtifact()
Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.