public class URIHandlerService extends java.lang.Object implements Service
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
URI_HANDLER_DEFAULT |
static java.lang.String |
URI_HANDLER_SUPPORTED_SCHEMES_PREFIX |
static java.lang.String |
URI_HANDLER_SUPPORTED_SCHEMES_SUFFIX |
static java.lang.String |
URI_HANDLERS |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
URIHandlerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the service.
|
java.net.URI |
getAuthorityWithScheme(java.lang.String uri)
Get the URI with scheme://host:port removing the path
|
java.util.Set<java.lang.Class<?>> |
getClassesForLauncher()
Return the classes to be shipped to the launcher
|
java.lang.Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
org.apache.hadoop.conf.Configuration |
getLauncherConfig()
Return the configuration required to use LauncherURIHandler in the launcher
|
URIHandler |
getURIHandler(java.lang.String uri) |
URIHandler |
getURIHandler(java.net.URI uri) |
URIHandler |
getURIHandler(java.net.URI uri,
boolean validateURI) |
void |
init(Services services)
Initialize the service.
|
public static final java.lang.String URI_HANDLERS
public static final java.lang.String URI_HANDLER_DEFAULT
public static final java.lang.String URI_HANDLER_SUPPORTED_SCHEMES_PREFIX
public static final java.lang.String URI_HANDLER_SUPPORTED_SCHEMES_SUFFIX
public URIHandlerService()
public void init(Services services) throws ServiceException
ServiceService singleton at start up time.init in interface Serviceservices - services singleton initializing the service.ServiceException - thrown if the service could not initialize.public void destroy()
ServiceService singleton at shutdown time.public java.lang.Class<? extends Service> getInterface()
ServicegetInterface in interface Servicepublic java.util.Set<java.lang.Class<?>> getClassesForLauncher()
public org.apache.hadoop.conf.Configuration getLauncherConfig()
public URIHandler getURIHandler(java.lang.String uri) throws URIHandlerException
URIHandlerExceptionpublic URIHandler getURIHandler(java.net.URI uri) throws URIHandlerException
URIHandlerExceptionpublic URIHandler getURIHandler(java.net.URI uri, boolean validateURI) throws URIHandlerException
URIHandlerExceptionpublic java.net.URI getAuthorityWithScheme(java.lang.String uri) throws URIHandlerException
uri - uri templateURIHandlerExceptionCopyright © 2019 Apache Software Foundation. All Rights Reserved.