#include <server.h>
|
void | AddListener (OrphanablePtr< ListenerInterface > listener) |
|
void | CancelAllCalls () ABSL_LOCKS_EXCLUDED(mu_global_) |
|
const grpc_channel_args * | channel_args () const |
|
channelz::ServerNode * | channelz_node () const |
|
grpc_server_config_fetcher * | config_fetcher () const |
|
bool | HasOpenConnections () ABSL_LOCKS_EXCLUDED(mu_global_) |
|
void | Orphan () ABSL_LOCKS_EXCLUDED(mu_global_) override |
|
const std::vector< grpc_pollset * > & | pollsets () const |
|
void | RegisterCompletionQueue (grpc_completion_queue *cq) |
|
RegisteredMethod * | RegisterMethod (const char *method, const char *host, grpc_server_register_method_payload_handling payload_handling, uint32_t flags) |
|
grpc_call_error | RequestCall (grpc_call **call, grpc_call_details *details, grpc_metadata_array *request_metadata, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag) |
|
grpc_call_error | RequestRegisteredCall (RegisteredMethod *rm, grpc_call **call, gpr_timespec *deadline, grpc_metadata_array *request_metadata, grpc_byte_buffer **optional_payload, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag_new) |
|
void | SendGoaways () ABSL_LOCKS_EXCLUDED(mu_global_ |
|
| Server (ChannelArgs args) |
|
void | set_config_fetcher (std::unique_ptr< grpc_server_config_fetcher > config_fetcher) |
|
void | SetBatchMethodAllocator (grpc_completion_queue *cq, std::function< BatchCallAllocation()> allocator) |
|
void | SetRegisteredMethodAllocator (grpc_completion_queue *cq, void *method_tag, std::function< RegisteredCallAllocation()> allocator) |
|
grpc_error_handle | SetupTransport (grpc_transport *transport, grpc_pollset *accepting_pollset, const grpc_channel_args *args, const RefCountedPtr< channelz::SocketNode > &socket_node) |
|
void | ShutdownAndNotify (grpc_completion_queue *cq, void *tag) ABSL_LOCKS_EXCLUDED(mu_global_ |
|
void | Start () ABSL_LOCKS_EXCLUDED(mu_global_) |
|
void | StopListening () |
|
| ~Server () override |
|
| InternallyRefCounted (const InternallyRefCounted &)=delete |
|
InternallyRefCounted & | operator= (const InternallyRefCounted &)=delete |
|
Orphanable & | operator= (const Orphanable &)=delete |
|
| Orphanable (const Orphanable &)=delete |
|
grpc_server * | c_ptr () |
|
◆ Server()
◆ ~Server()
grpc_core::Server::~Server |
( |
| ) |
|
|
override |
◆ ABSL_GUARDED_BY() [1/4]
◆ ABSL_GUARDED_BY() [2/4]
bool shutdown_published_ grpc_core::Server::ABSL_GUARDED_BY |
( |
mu_global_ |
| ) |
|
|
private |
◆ ABSL_GUARDED_BY() [3/4]
◆ ABSL_GUARDED_BY() [4/4]
◆ AddListener()
◆ CancelAllCalls()
void grpc_core::Server::CancelAllCalls |
( |
| ) |
|
◆ channel_args()
◆ channelz_node()
◆ config_fetcher()
◆ DoneRequestEvent()
◆ DoneShutdownEvent()
◆ FailCall()
void grpc_core::Server::FailCall |
( |
size_t |
cq_idx, |
|
|
RequestedCall * |
rc, |
|
|
grpc_error_handle |
error |
|
) |
| |
|
private |
◆ GetChannelsLocked()
◆ HasOpenConnections()
bool grpc_core::Server::HasOpenConnections |
( |
| ) |
|
◆ KillPendingWorkLocked()
◆ ListenerDestroyDone()
◆ MaybeFinishShutdown()
void grpc_core::Server::MaybeFinishShutdown |
( |
| ) |
|
|
private |
◆ Orphan()
void grpc_core::Server::Orphan |
( |
| ) |
|
|
overridevirtual |
◆ pollsets()
◆ QueueRequestedCall()
grpc_call_error grpc_core::Server::QueueRequestedCall |
( |
size_t |
cq_idx, |
|
|
RequestedCall * |
rc |
|
) |
| |
|
private |
◆ RegisterCompletionQueue()
◆ RegisterMethod()
◆ RequestCall()
◆ RequestRegisteredCall()
◆ SendGoaways()
void grpc_core::Server::SendGoaways |
( |
| ) |
|
◆ set_config_fetcher()
◆ SetBatchMethodAllocator()
◆ SetRegisteredMethodAllocator()
◆ SetupTransport()
◆ ShutdownAndNotify()
◆ ShutdownCalled()
bool grpc_core::Server::ShutdownCalled |
( |
| ) |
const |
|
inlineprivate |
◆ ShutdownReady()
bool grpc_core::Server::ShutdownReady |
( |
| ) |
const |
|
inlineprivate |
◆ ShutdownRefOnRequest()
bool grpc_core::Server::ShutdownRefOnRequest |
( |
| ) |
|
|
inlineprivate |
◆ ShutdownUnrefOnRequest()
void grpc_core::Server::ShutdownUnrefOnRequest |
( |
| ) |
|
|
inlineprivate |
◆ ShutdownUnrefOnShutdownCall()
◆ Start()
void grpc_core::Server::Start |
( |
| ) |
|
◆ StopListening()
void grpc_core::Server::StopListening |
( |
| ) |
|
◆ ValidateServerRequest()
◆ ValidateServerRequestAndCq()
◆ channel_args_
◆ channels_
◆ channelz_node_
◆ config_fetcher_
◆ cqs_
◆ kServerTopFilter
◆ last_shutdown_message_time_
◆ listeners_
std::list<Listener> grpc_core::Server::listeners_ |
|
private |
◆ listeners_destroyed_
size_t grpc_core::Server::listeners_destroyed_ = 0 |
|
private |
◆ mu_call_ [1/2]
void grpc_core::Server::mu_call_ |
◆ mu_call_ [2/2]
Mutex grpc_core::Server::mu_call_ |
|
private |
◆ mu_global_
Mutex grpc_core::Server::mu_global_ |
|
private |
◆ pollsets_
◆ registered_methods_
std::vector<std::unique_ptr<RegisteredMethod> > grpc_core::Server::registered_methods_ |
|
private |
◆ shutdown_refs_
std::atomic<int> grpc_core::Server::shutdown_refs_ {1} |
|
private |
◆ started_
◆ starting_cv_
CondVar grpc_core::Server::starting_cv_ |
|
private |
◆ unregistered_request_matcher_
std::unique_ptr<RequestMatcherInterface> grpc_core::Server::unregistered_request_matcher_ |
|
private |
The documentation for this class was generated from the following files: