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
IOException
public void computeEncHash() throws IOException
IOException
public boolean connect() throws IOException, InterruptedException
connect
in class BaseHttpConnection
IOException
- upon connection failureInterruptedException
public void validate() throws IOException
BaseHttpConnection
validate
in class BaseHttpConnection
IOException
public DataInputStream getInputStream() throws IOException, InterruptedException
getInputStream
in class BaseHttpConnection
IOException
InterruptedException
public void close()
public void cleanup(boolean disconnect) throws IOException
cleanup
in class BaseHttpConnection
disconnect
- IOException
Copyright © 2016 Apache Software Foundation. All rights reserved.