public class AsyncHttpConnection extends BaseHttpConnection
UNIT_CONNECT_TIMEOUT| Constructor and Description |
|---|
AsyncHttpConnection(URL url,
HttpConnectionParams connParams,
String logIdentifier,
org.apache.tez.common.security.JobTokenSecretManager jobTokenSecretManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(boolean disconnect)
Cleanup the connection.
|
void |
close() |
void |
computeEncHash() |
boolean |
connect()
Connect to source
|
DataInputStream |
getInputStream()
Get the inputstream from the connection
|
void |
validate()
Validate established connection
|
public AsyncHttpConnection(URL url, HttpConnectionParams connParams, String logIdentifier, org.apache.tez.common.security.JobTokenSecretManager jobTokenSecretManager) throws IOException
IOExceptionpublic void computeEncHash()
throws IOException
IOExceptionpublic boolean connect()
throws IOException,
InterruptedException
connect in class BaseHttpConnectionIOException - upon connection failureInterruptedExceptionpublic void validate()
throws IOException
BaseHttpConnectionvalidate in class BaseHttpConnectionIOExceptionpublic DataInputStream getInputStream() throws IOException, InterruptedException
getInputStream in class BaseHttpConnectionIOExceptionInterruptedExceptionpublic void close()
public void cleanup(boolean disconnect)
throws IOException
cleanup in class BaseHttpConnectiondisconnect - IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.