| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.flight.FlightServerBase.html | [Back] [Original] |
Bases: _Weakrefable
A Flight service definition.
To start the server, create an instance of this class with an
appropriate location. The server will be running as soon as the
instance is created; it is not required to call serve().
Override methods to define your Flight service.
str, tuple or Location optional, default NoneLocation to serve on. Either a gRPC URI like grpc://localhost:port, a tuple of (host, port) pair, or a Location instance. If None is passed then the server will be started on localhost with a system provided random port.
ServerAuthHandler optional, default NoneAn authentication mechanism to use. May be None.
list optional, default NoneA list of (certificate, key) pairs.
FalseIf True, then enable mutual TLS: require the client to present a client certificate, and validate the certificate.
bytes optional, default NoneIf enabling mutual TLS, this specifies the PEM-encoded root certificate used to validate client certificates.
dict optional, default NoneA dictionary of ServerMiddlewareFactory instances. The
string keys can be used to retrieve the middleware instance within
RPC handlers (see ServerCallContext.get_middleware()).
Methods
|
|
|
Execute a custom action. |
|
Write data to a flight. |
|
Write data to a flight. |
|
Write data to a flight. |
|
Get information about a flight. |
|
Get the schema of a flight. |
|
List custom actions available on this server. |
|
List flights available on this service. |
|
Block until the server shuts down. |
|
Block until the server shuts down. |
|
Shut down the server, blocking until current requests finish. |
|
Block until server is terminated with shutdown. |
Attributes
Get the port that this server is listening on. |
Execute a custom action.
This method should return an iterator, or it should be a generator. Applications should override this method to implement their own behavior. The default method raises a NotImplementedError.
ServerCallContextCommon contextual information.
ActionThe action to execute.
bytesWrite data to a flight.
Applications should override this method to implement their own behavior. The default method raises a NotImplementedError.
ServerCallContextCommon contextual information.
FlightDescriptorThe descriptor for the flight provided by the client.
MetadataRecordBatchReaderA reader for data uploaded by the client.
MetadataRecordBatchWriterA writer to send responses to the client.
Write data to a flight.
Applications should override this method to implement their own behavior. The default method raises a NotImplementedError.
ServerCallContextCommon contextual information.
TicketThe ticket for the flight.
FlightDataStreamA stream of data to send back to the client.
Write data to a flight.
Applications should override this method to implement their own behavior. The default method raises a NotImplementedError.
ServerCallContextCommon contextual information.
FlightDescriptorThe descriptor for the flight provided by the client.
MetadataRecordBatchReaderA reader for data uploaded by the client.
FlightMetadataWriterA writer to send responses to the client.
Get information about a flight.
Applications should override this method to implement their own behavior. The default method raises a NotImplementedError.
ServerCallContextCommon contextual information.
FlightDescriptorThe descriptor for the flight provided by the client.
Get the schema of a flight.
Applications should override this method to implement their own behavior. The default method raises a NotImplementedError.
ServerCallContextCommon contextual information.
FlightDescriptorThe descriptor for the flight provided by the client.
List custom actions available on this server.
Applications should override this method to implement their own behavior. The default method raises a NotImplementedError.
ServerCallContextCommon contextual information.
ActionType or tupleList flights available on this service.
Applications should override this method to implement their own behavior. The default method raises a NotImplementedError.
ServerCallContextCommon contextual information.
bytesFilter criteria provided by the client.
FlightInfoGet the port that this server is listening on.
Returns a non-positive value if the operation is invalid (e.g. init() was not called or server is listening on a domain socket).
Block until the server shuts down.
Deprecated since version 0.15.0: Use the FlightServer.serve method instead
Block until the server shuts down.
This method only returns if shutdown() is called or a signal is received.
Shut down the server, blocking until current requests finish.
Do not call this directly from the implementation of a Flight method, as then the server will block forever waiting for that request to finish. Instead, call this method from a background thread.
This method should only be called once.
Block until server is terminated with shutdown.
| Web Proxy Viewer | New URL | Original Page |