public class SliderURLConnectionFactory extends Object
Derived from the WebHDFS implementation.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SOCKET_TIMEOUT
Timeout for socket connects and reads
|
| Modifier and Type | Method and Description |
|---|---|
static SliderURLConnectionFactory |
newInstance(org.apache.hadoop.conf.Configuration conf)
Construct a new URLConnectionFactory based on the configuration.
|
URLConnection |
openConnection(URL url)
Opens a url with read and connect timeouts
|
URLConnection |
openConnection(URL url,
boolean isSpnego)
Opens a url with read and connect timeouts
|
public static final int DEFAULT_SOCKET_TIMEOUT
public static SliderURLConnectionFactory newInstance(org.apache.hadoop.conf.Configuration conf)
public URLConnection openConnection(URL url) throws IOException
url - to openIOExceptionpublic URLConnection openConnection(URL url, boolean isSpnego) throws IOException, org.apache.hadoop.security.authentication.client.AuthenticationException
url - URL to openisSpnego - whether the url should be authenticated via SPNEGOIOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.