public class RemoteFunctionRegistry extends Object implements AutoCloseable
UserBitShared.Registry
under udf path
which contains information about all dynamically registered jars and their function signatures.
If connection is created for the first time, puts empty remote registry.RemoteFunctionRegistry.Action.REGISTRATION
and RemoteFunctionRegistry.Action.UNREGISTRATION
.
Before starting any action, users tries to create child path with jar name under this store
and if such path already exists, receives action being performed on that very jar.
When user finishes its action, he deletes child path with jar name.Modifier and Type | Class and Description |
---|---|
static class |
RemoteFunctionRegistry.Action |
Constructor and Description |
---|
RemoteFunctionRegistry(TransientStoreListener unregistrationListener) |
Modifier and Type | Method and Description |
---|---|
String |
addToJars(String jar,
RemoteFunctionRegistry.Action action) |
void |
close() |
void |
finishUnregistration(String jar) |
org.apache.hadoop.fs.FileSystem |
getFs() |
UserBitShared.Registry |
getRegistry(DataChangeVersion version) |
org.apache.hadoop.fs.Path |
getRegistryArea() |
int |
getRegistryVersion()
Returns current remote function registry version.
|
int |
getRetryAttempts() |
org.apache.hadoop.fs.Path |
getStagingArea() |
org.apache.hadoop.fs.Path |
getTmpArea() |
boolean |
hasRegistry()
Report whether a remote registry exists.
|
void |
init(DrillConfig config,
PersistentStoreProvider storeProvider,
ClusterCoordinator coordinator) |
void |
removeFromJars(String jar) |
void |
submitForUnregistration(String jar) |
void |
updateRegistry(UserBitShared.Registry registryContent,
DataChangeVersion version) |
public RemoteFunctionRegistry(TransientStoreListener unregistrationListener)
public void init(DrillConfig config, PersistentStoreProvider storeProvider, ClusterCoordinator coordinator)
public int getRegistryVersion()
public boolean hasRegistry()
public UserBitShared.Registry getRegistry(DataChangeVersion version)
public void updateRegistry(UserBitShared.Registry registryContent, DataChangeVersion version) throws VersionMismatchException
VersionMismatchException
public void submitForUnregistration(String jar)
public void finishUnregistration(String jar)
public String addToJars(String jar, RemoteFunctionRegistry.Action action)
public void removeFromJars(String jar)
public int getRetryAttempts()
public org.apache.hadoop.fs.FileSystem getFs()
public org.apache.hadoop.fs.Path getRegistryArea()
public org.apache.hadoop.fs.Path getStagingArea()
public org.apache.hadoop.fs.Path getTmpArea()
public void close()
close
in interface AutoCloseable
Copyright © 1970 The Apache Software Foundation. All rights reserved.