|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.dependency.FSURIHandler
public class FSURIHandler
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.oozie.dependency.URIHandler |
---|
URIHandler.Context, URIHandler.DependencyType |
Constructor Summary | |
---|---|
FSURIHandler()
|
Method Summary | |
---|---|
void |
destroy()
Destroy the URIHandler |
boolean |
exists(URI uri,
org.apache.hadoop.conf.Configuration conf,
String user)
Check if the dependency identified by the URI is available |
boolean |
exists(URI uri,
URIHandler.Context context)
Check if the dependency identified by the URI is available |
List<Class<?>> |
getClassesForLauncher()
Get list of classes to ship to launcher for LauncherURIHandler |
URIHandler.Context |
getContext(URI uri,
org.apache.hadoop.conf.Configuration conf,
String user)
Get the Context which can be used to access URI of the same scheme and host |
URIHandler.DependencyType |
getDependencyType(URI uri)
Get the dependency type of the URI. |
Class<? extends org.apache.oozie.action.hadoop.LauncherURIHandler> |
getLauncherURIHandlerClass()
Get the URIHandler that will be used to handle the supported schemes in launcher |
Set<String> |
getSupportedSchemes()
Get the list of uri schemes supported by this URIHandler |
String |
getURIWithDoneFlag(String uri,
String doneFlag)
Get the URI based on the done flag |
void |
init(org.apache.hadoop.conf.Configuration conf)
Initialize the URIHandler |
void |
registerForNotification(URI uri,
org.apache.hadoop.conf.Configuration conf,
String user,
String actionID)
Register for notifications in case of a push dependency |
boolean |
unregisterFromNotification(URI uri,
String actionID)
Unregister from notifications in case of a push dependency |
void |
validate(String uri)
Check whether the URI is valid or not |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSURIHandler()
Method Detail |
---|
public void init(org.apache.hadoop.conf.Configuration conf)
URIHandler
init
in interface URIHandler
conf
- Configuration for initializationpublic Set<String> getSupportedSchemes()
URIHandler
getSupportedSchemes
in interface URIHandler
public Class<? extends org.apache.oozie.action.hadoop.LauncherURIHandler> getLauncherURIHandlerClass()
URIHandler
getLauncherURIHandlerClass
in interface URIHandler
public List<Class<?>> getClassesForLauncher()
URIHandler
getClassesForLauncher
in interface URIHandler
public URIHandler.DependencyType getDependencyType(URI uri) throws URIHandlerException
URIHandler
getDependencyType
in interface URIHandler
URIHandlerException
public void registerForNotification(URI uri, org.apache.hadoop.conf.Configuration conf, String user, String actionID) throws URIHandlerException
URIHandler
registerForNotification
in interface URIHandler
uri
- 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 uri
URIHandlerException
public boolean unregisterFromNotification(URI uri, String actionID)
URIHandler
unregisterFromNotification
in interface URIHandler
uri
- The URI to be removed from missing dependencyactionID
- The id of action which was dependent on the uri.public URIHandler.Context getContext(URI uri, org.apache.hadoop.conf.Configuration conf, String user) throws URIHandlerException
URIHandler
getContext
in interface URIHandler
uri
- URI which identifies the scheme and hostconf
- Configuration to access the URIuser
- name of the user the URI should be accessed as
URIHandlerException
public boolean exists(URI uri, URIHandler.Context context) throws URIHandlerException
URIHandler
exists
in interface URIHandler
uri
- URI of the dependencycontext
- Context to access the URI
true
if the URI exists; false
if the
URI does not exist
URIHandlerException
public boolean exists(URI uri, org.apache.hadoop.conf.Configuration conf, String user) throws URIHandlerException
URIHandler
exists
in interface URIHandler
uri
- 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 exist
URIHandlerException
public String getURIWithDoneFlag(String uri, String doneFlag) throws URIHandlerException
URIHandler
getURIWithDoneFlag
in interface URIHandler
uri
- URI of the dependencydoneFlag
- flag that determines URI availability
URIHandlerException
public void validate(String uri) throws URIHandlerException
URIHandler
validate
in interface URIHandler
URIHandlerException
public void destroy()
URIHandler
destroy
in interface URIHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |