public class ExampleFlightServer extends Object implements AutoCloseable
| Constructor and Description |
|---|
ExampleFlightServer(BufferAllocator allocator,
Location location)
Constructs a new instance using Allocator for allocating buffer storage that binds
to the given location.
|
| Modifier and Type | Method and Description |
|---|---|
void |
awaitTermination() |
void |
close() |
Location |
getLocation() |
int |
getPort() |
InMemoryStore |
getStore() |
static void |
main(String[] args)
Main method starts the server listening to localhost:12233.
|
void |
start() |
public ExampleFlightServer(BufferAllocator allocator, Location location)
public Location getLocation()
public int getPort()
public void start()
throws IOException
IOExceptionpublic void awaitTermination()
throws InterruptedException
InterruptedExceptionpublic InMemoryStore getStore()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.