public class URIHandlerService extends Object implements Service
| Modifier and Type | Field and Description |
|---|---|
static String |
URI_HANDLER_DEFAULT |
static String |
URI_HANDLER_SUPPORTED_SCHEMES_PREFIX |
static String |
URI_HANDLER_SUPPORTED_SCHEMES_SUFFIX |
static String |
URI_HANDLERS |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
URIHandlerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the service.
|
URI |
getAuthorityWithScheme(String uri)
Get the URI with scheme://host:port removing the path
|
Set<Class<?>> |
getClassesForLauncher()
Return the classes to be shipped to the launcher
|
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(String uri) |
URIHandler |
getURIHandler(URI uri) |
URIHandler |
getURIHandler(URI uri,
boolean validateURI) |
void |
init(Services services)
Initialize the service.
|
public static final String URI_HANDLERS
public static final String URI_HANDLER_DEFAULT
public static final String URI_HANDLER_SUPPORTED_SCHEMES_PREFIX
public static final String URI_HANDLER_SUPPORTED_SCHEMES_SUFFIX
public URIHandlerService()
public void init(Services services) throws ServiceException
Service Invoked by the Service 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()
Service Invoked by the Service singleton at shutdown time.
public Class<? extends Service> getInterface()
ServiceServices are retrieved by its public interface. Specializations of services must return the public interface.
getInterface in interface Servicepublic Set<Class<?>> getClassesForLauncher()
public org.apache.hadoop.conf.Configuration getLauncherConfig()
public URIHandler getURIHandler(String uri) throws URIHandlerException
URIHandlerExceptionpublic URIHandler getURIHandler(URI uri) throws URIHandlerException
URIHandlerExceptionpublic URIHandler getURIHandler(URI uri, boolean validateURI) throws URIHandlerException
URIHandlerExceptionpublic URI getAuthorityWithScheme(String uri) throws URIHandlerException
uri - uri templateURIHandlerExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.