Package io.trino.operator
Class HttpPageBufferClient
java.lang.Object
io.trino.operator.HttpPageBufferClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFor each request, the addPage method will be called zero or more times, followed by either requestComplete or clientFinished (if buffer complete).static classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionHttpPageBufferClient(String selfAddress, io.airlift.http.client.HttpClient httpClient, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, io.airlift.units.DataSize maxResponseSize, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, TaskId remoteTaskId, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduledExecutor, com.google.common.base.Ticker ticker, Executor pageBufferClientCallbackExecutor) HttpPageBufferClient(String selfAddress, io.airlift.http.client.HttpClient httpClient, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, io.airlift.units.DataSize maxResponseSize, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, TaskId remoteTaskId, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduledExecutor, Executor pageBufferClientCallbackExecutor) -
Method Summary
-
Constructor Details
-
HttpPageBufferClient
public HttpPageBufferClient(String selfAddress, io.airlift.http.client.HttpClient httpClient, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, io.airlift.units.DataSize maxResponseSize, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, TaskId remoteTaskId, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduledExecutor, Executor pageBufferClientCallbackExecutor) -
HttpPageBufferClient
public HttpPageBufferClient(String selfAddress, io.airlift.http.client.HttpClient httpClient, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, io.airlift.units.DataSize maxResponseSize, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, TaskId remoteTaskId, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduledExecutor, com.google.common.base.Ticker ticker, Executor pageBufferClientCallbackExecutor)
-
-
Method Details
-
getStatus
-
getRemoteTaskId
-
getAverageRequestSizeInBytes
public long getAverageRequestSizeInBytes() -
isRunning
public boolean isRunning() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
scheduleRequest
public void scheduleRequest() -
getLastRequestDurationMillis
public long getLastRequestDurationMillis() -
equals
-
hashCode
public int hashCode() -
toString
-