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
IOException
public void awaitTermination() throws InterruptedException
InterruptedException
public InMemoryStore getStore()
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2022 The Apache Software Foundation. All rights reserved.