public class IntegrationProducer extends NoOpFlightProducer implements AutoCloseable
FlightProducer.CallContext, FlightProducer.ServerStreamListener, FlightProducer.StreamListener<T>| Constructor and Description |
|---|
IntegrationProducer(BufferAllocator allocator,
Location location)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Runnable |
acceptPut(FlightProducer.CallContext context,
FlightStream flightStream,
FlightProducer.StreamListener<PutResult> ackStream)
Accept uploaded data for a particular stream.
|
void |
close() |
FlightInfo |
getFlightInfo(FlightProducer.CallContext context,
FlightDescriptor descriptor)
Get information about a particular data stream.
|
void |
getStream(FlightProducer.CallContext context,
Ticket ticket,
FlightProducer.ServerStreamListener listener)
Return data for a stream.
|
void |
setLocation(Location location)
Update the location after server start.
|
doAction, listActions, listFlightsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoExchange, getSchema, pollFlightInfopublic IntegrationProducer(BufferAllocator allocator, Location location)
allocator - The allocator for creating new Arrow buffers.location - The location of the storage.public void setLocation(Location location)
Useful for binding to port 0 to get a free port.
public void getStream(FlightProducer.CallContext context, Ticket ticket, FlightProducer.ServerStreamListener listener)
FlightProducergetStream in interface FlightProducergetStream in class NoOpFlightProducercontext - Per-call context.ticket - The application-defined ticket identifying this stream.listener - An interface for sending data back to the client.public FlightInfo getFlightInfo(FlightProducer.CallContext context, FlightDescriptor descriptor)
FlightProducergetFlightInfo in interface FlightProducergetFlightInfo in class NoOpFlightProducercontext - Per-call context.descriptor - The descriptor identifying the data stream.public Runnable acceptPut(FlightProducer.CallContext context, FlightStream flightStream, FlightProducer.StreamListener<PutResult> ackStream)
FlightProduceracceptPut in interface FlightProduceracceptPut in class NoOpFlightProducercontext - Per-call context.flightStream - The data stream being uploaded.public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.