public class HCatURIHandler extends java.lang.Object implements URIHandler
URIHandler.Context, URIHandler.DependencyType| Constructor and Description |
|---|
HCatURIHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the URIHandler
|
boolean |
exists(java.net.URI uri,
org.apache.hadoop.conf.Configuration conf,
java.lang.String user)
Check if the dependency identified by the URI is available
|
boolean |
exists(java.net.URI uri,
URIHandler.Context context)
Check if the dependency identified by the URI is available
|
java.util.List<java.lang.Class<?>> |
getClassesForLauncher()
Get list of classes to ship to launcher for LauncherURIHandler
|
URIHandler.Context |
getContext(java.net.URI uri,
org.apache.hadoop.conf.Configuration conf,
java.lang.String user)
Get the Context which can be used to access URI of the same scheme and
host
|
URIHandler.DependencyType |
getDependencyType(java.net.URI uri)
Get the dependency type of the URI.
|
java.lang.Class<? extends org.apache.oozie.action.hadoop.LauncherURIHandler> |
getLauncherURIHandlerClass()
Get the URIHandler that will be used to handle the supported schemes in launcher
|
java.util.Set<java.lang.String> |
getSupportedSchemes()
Get the list of uri schemes supported by this URIHandler
|
java.lang.String |
getURIWithDoneFlag(java.lang.String uri,
java.lang.String doneFlag)
Get the URI based on the done flag
|
void |
init(org.apache.hadoop.conf.Configuration conf)
Initialize the URIHandler
|
void |
registerForNotification(java.net.URI uri,
org.apache.hadoop.conf.Configuration conf,
java.lang.String user,
java.lang.String actionID)
Register for notifications in case of a push dependency
|
boolean |
unregisterFromNotification(java.net.URI uri,
java.lang.String actionID)
Unregister from notifications in case of a push dependency
|
void |
validate(java.lang.String uri)
Check whether the URI is valid or not
|
public HCatURIHandler()
public void init(org.apache.hadoop.conf.Configuration conf)
URIHandlerinit in interface URIHandlerconf - Configuration for initializationpublic java.util.Set<java.lang.String> getSupportedSchemes()
URIHandlergetSupportedSchemes in interface URIHandlerpublic java.lang.Class<? extends org.apache.oozie.action.hadoop.LauncherURIHandler> getLauncherURIHandlerClass()
URIHandlergetLauncherURIHandlerClass in interface URIHandlerpublic java.util.List<java.lang.Class<?>> getClassesForLauncher()
URIHandlergetClassesForLauncher in interface URIHandlerpublic URIHandler.DependencyType getDependencyType(java.net.URI uri) throws URIHandlerException
URIHandlergetDependencyType in interface URIHandlerURIHandlerExceptionpublic void registerForNotification(java.net.URI uri, org.apache.hadoop.conf.Configuration conf, java.lang.String user, java.lang.String actionID) throws URIHandlerException
URIHandlerregisterForNotification in interface URIHandleruri - The URI to check for availabilityconf - Configuration to access the URIuser - name of the user the URI should be accessed asactionID - The id of action which depends on the availability of the uriURIHandlerExceptionpublic boolean unregisterFromNotification(java.net.URI uri, java.lang.String actionID)
URIHandlerunregisterFromNotification in interface URIHandleruri - The URI to be removed from missing dependencyactionID - The id of action which was dependent on the uri.public URIHandler.Context getContext(java.net.URI uri, org.apache.hadoop.conf.Configuration conf, java.lang.String user) throws URIHandlerException
URIHandlergetContext in interface URIHandleruri - URI which identifies the scheme and hostconf - Configuration to access the URIuser - name of the user the URI should be accessed asURIHandlerExceptionpublic boolean exists(java.net.URI uri, URIHandler.Context context) throws URIHandlerException
URIHandlerexists in interface URIHandleruri - URI of the dependencycontext - Context to access the URItrue if the URI exists; false if the
URI does not existURIHandlerExceptionpublic boolean exists(java.net.URI uri, org.apache.hadoop.conf.Configuration conf, java.lang.String user) throws URIHandlerException
URIHandlerexists in interface URIHandleruri - URI of the dependencyconf - Configuration to access the URIuser - name of the user the URI should be accessed as. If null the
logged in user is used.true if the URI exists; false if the
URI does not existURIHandlerExceptionpublic java.lang.String getURIWithDoneFlag(java.lang.String uri, java.lang.String doneFlag) throws URIHandlerException
URIHandlergetURIWithDoneFlag in interface URIHandleruri - URI of the dependencydoneFlag - flag that determines URI availabilityURIHandlerExceptionpublic void validate(java.lang.String uri) throws URIHandlerException
URIHandlervalidate in interface URIHandlerURIHandlerExceptionpublic void destroy()
URIHandlerdestroy in interface URIHandlerCopyright © 2017 Apache Software Foundation. All Rights Reserved.