public class FlightClient extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static interface |
FlightClient.ClientStreamListener |
| Constructor and Description |
|---|
FlightClient(BufferAllocator incomingAllocator,
Location location)
Construct client for accessing RouteGuide server using the existing channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(ClientAuthHandler handler) |
void |
authenticateBasic(String username,
String password) |
void |
close() |
Iterator<Result> |
doAction(Action action) |
FlightInfo |
getInfo(FlightDescriptor descriptor) |
FlightStream |
getStream(Ticket ticket) |
Iterable<ActionType> |
listActions() |
Iterable<FlightInfo> |
listFlights(Criteria criteria)
Get a list of available flights.
|
FlightClient.ClientStreamListener |
startPut(FlightDescriptor descriptor,
VectorSchemaRoot root)
Create or append a descriptor with another stream.
|
public FlightClient(BufferAllocator incomingAllocator, Location location)
public Iterable<FlightInfo> listFlights(Criteria criteria)
criteria - Critera for selecting flightspublic Iterable<ActionType> listActions()
public void authenticate(ClientAuthHandler handler)
public FlightClient.ClientStreamListener startPut(FlightDescriptor descriptor, VectorSchemaRoot root)
descriptor - FlightDescriptorroot - VectorSchemaRootpublic FlightInfo getInfo(FlightDescriptor descriptor)
public FlightStream getStream(Ticket ticket)
public void close()
throws InterruptedException
close in interface AutoCloseableInterruptedExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.