NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
Coordinator RPC server responsible for receiving requests over GRPC interface. More...
#include <CoordinatorRPCServer.hpp>
Public Member Functions | |
CoordinatorRPCServer (RequestHandlerServicePtr requestHandlerService, TopologyPtr topology, Catalogs::Query::QueryCatalogPtr queryCatalog, Monitoring::MonitoringManagerPtr monitoringManager, QueryParsingServicePtr queryParsingService, CoordinatorHealthCheckServicePtr coordinatorHealthCheckService) | |
Create coordinator RPC server. More... | |
Status | RegisterWorker (ServerContext *context, const RegisterWorkerRequest *registrationRequest, RegisterWorkerReply *reply) override |
RPC Call to register a node. More... | |
Status | UnregisterWorker (ServerContext *context, const UnregisterWorkerRequest *request, UnregisterWorkerReply *reply) override |
RPC Call to unregister a node. More... | |
Status | RegisterPhysicalSource (ServerContext *context, const RegisterPhysicalSourcesRequest *request, RegisterPhysicalSourcesReply *reply) override |
RPC Call to register physical source. More... | |
Status | UnregisterPhysicalSource (ServerContext *context, const UnregisterPhysicalSourceRequest *request, UnregisterPhysicalSourceReply *reply) override |
RPC Call to unregister physical source. More... | |
Status | RegisterLogicalSource (ServerContext *context, const RegisterLogicalSourceRequest *request, RegisterLogicalSourceReply *reply) override |
RPC Call to register logical source. More... | |
Status | UnregisterLogicalSource (ServerContext *context, const UnregisterLogicalSourceRequest *request, UnregisterLogicalSourceReply *reply) override |
RPC Call to unregister logical source. More... | |
Status | AddParent (ServerContext *context, const AddParentRequest *request, AddParentReply *reply) override |
RPC Call to add parent. More... | |
Status | ReplaceParent (ServerContext *context, const ReplaceParentRequest *request, ReplaceParentReply *reply) override |
RPC Call to replace parent. More... | |
Status | RemoveParent (ServerContext *context, const RemoveParentRequest *request, RemoveParentReply *reply) override |
RPC Call to remove parent. More... | |
Status | NotifyQueryFailure (ServerContext *context, const QueryFailureNotification *request, QueryFailureNotificationReply *reply) override |
RPC Call to notify the failure of a query. More... | |
Status | GetNodesInRange (ServerContext *, const GetNodesInRangeRequest *request, GetNodesInRangeReply *reply) override |
RPC Call to get a list of field nodes within a defined radius around a geographical location. More... | |
Status | SendErrors (ServerContext *, const SendErrorsMessage *request, ErrorReply *reply) override |
RPC Call to send errors to the coordinator. More... | |
Status | RequestSoftStop (::grpc::ServerContext *context, const ::RequestSoftStopMessage *request, ::StopRequestReply *response) override |
Status | notifySourceStopTriggered (::grpc::ServerContext *context, const ::SoftStopTriggeredMessage *request, ::SoftStopTriggeredReply *response) override |
Status | NotifySoftStopCompleted (::grpc::ServerContext *context, const ::SoftStopCompletionMessage *request, ::SoftStopCompletionReply *response) override |
Status | SendScheduledReconnect (ServerContext *, const SendScheduledReconnectRequest *request, SendScheduledReconnectReply *reply) override |
inform the coordinator that a mobile devices reconnect prediction has changed More... | |
Status | SendLocationUpdate (ServerContext *, const LocationUpdateRequest *request, LocationUpdateReply *reply) override |
inform the coordinator that the devices location has changed More... | |
Status | GetParents (ServerContext *, const GetParentsRequest *request, GetParentsReply *reply) override |
Status | RelocateTopologyNode (ServerContext *, const NodeRelocationRequest *request, NodeRelocationReply *reply) override |
modify the topology by removing and adding links and then rerun an incremental placement for queries that were sending data over one of the removed links More... | |
Coordinator RPC server responsible for receiving requests over GRPC interface.
|
explicit |
Create coordinator RPC server.
requestHandlerService | the instance of Query Service |
topology | : the instance of the topology |
queryCatalog | : the instance of query catalog |
monitoringService | : the instance of monitoring service |
coordinatorHealthCheckService | : coordinator health check service |
|
override |
|
override |
RPC Call to get a list of field nodes within a defined radius around a geographical location.
context | the server context |
request | that is sent from worker to the coordinator containing the center of the query area and the radius |
reply | that is sent back from the coordinator to the worker containing the ids of all nodes in the defined area and their corresponding locations |
|
override |
|
override |
RPC Call to notify the failure of a query.
context | the server context |
request | that is sent from worker to the coordinator and filled with information of the failed query (Ids of query, worker, etc. and error message) |
reply | that is sent back from the coordinator to the worker to confirm that notification was successful |
References NES_ASSERT2_FMT, and NES_ERROR.
|
override |
Notify coordinator that for a subquery plan the soft stop is completed or not
context | : the server context |
request | : that is sent from worker to the coordinator and containing the query id, sub query id, and if soft stop is completed |
response | : that is sent back from the coordinator to the worker if request is processed |
References NES::SOFT_STOP_COMPLETED.
|
override |
Notify coordinator that for a subquery plan the soft stop is triggered or not
context | : the server context |
request | : that is sent from worker to the coordinator and containing the query id, sub query id, and if soft stop is triggered |
response | : that is sent back from the coordinator to the worker if request is processed |
References NES_INFO, and NES::SOFT_STOP_TRIGGERED.
|
override |
|
override |
RPC Call to register physical source.
context | the server context |
request | register physical source request |
reply | register physical source response |
References NES_DEBUG, NES_ERROR, and NES_WARNING.
|
override |
RPC Call to register a node.
context | the server context |
registrationRequest | node registration request |
reply | the node registration reply |
References NES::TestUtils::dataPort(), deserializeOpenCLDeviceInfo(), NES::NESStrongType< T, Tag, invalid, initial >::getRawValue(), backward::details::move(), NES_DEBUG, NES_ERROR, NES_TRACE, nodeId, NES::Spatial::Util::SpatialTypeUtility::protobufEnumToNodeType(), and NES::Monitoring::RegistrationMetric.
|
override |
modify the topology by removing and adding links and then rerun an incremental placement for queries that were sending data over one of the removed links
request | contains a list of topology links to remvoe and a list of topology links to add |
reply | contains a boolean which is set to true if the operation succeeded |
References NES::RequestProcessor::ISQPAddLinkEvent::create(), and NES::RequestProcessor::ISQPRemoveLinkEvent::create().
|
override |
|
override |
|
override |
Request if soft stop can be performed for the query
context | : the server context |
request | : that is sent from worker to the coordinator and containing the query id for which the soft stop to request |
response | : that is sent back from the coordinator to the worker if soft stop can be processed or not |
References NES::MARKED_FOR_SOFT_STOP, and NES_WARNING.
|
override |
RPC Call to send errors to the coordinator.
context | the server context |
request | that is sent from worker to the coordinator and filled with information of errors |
reply | that is sent back from the coordinator to the worker to confirm that notification was successful |
References NES_ERROR.
|
override |
inform the coordinator that the devices location has changed
request | : sent from worker to coordinator containing the id of the mobile device, its new location and the time when this location was recorded |
reply | : sent from coordinator to worker containing no data |
References backward::details::move(), NES_DEBUG, and timestamp.
|
override |
inform the coordinator that a mobile devices reconnect prediction has changed
request | : sent from worker to coordinator containing the id of the mobile device and a list of the old scheduled reconnects to be removed as well as the new scheduled reconnects to be added. With each reconnect consisting of the id of the node which the mobile device expects to connect to and the location and time at which the reconnect is expected to happen |
reply | : sent from coordinator to worker not containing any data |
|
override |
|
override |
|
override |