Package io.deephaven.dhservice.grpc
Class RoutingServiceImpl
java.lang.Object
io.deephaven.proto.routing.grpc.RoutingApiGrpc.RoutingApiImplBase
io.deephaven.dhservice.grpc.RoutingServiceImpl
- All Implemented Interfaces:
DataRoutingConfigListener,RoutingApiGrpc.AsyncService,io.grpc.BindableService
public class RoutingServiceImpl
extends RoutingApiGrpc.RoutingApiImplBase
implements DataRoutingConfigListener
Server side implementation of
DataRoutingService.
For Deephaven Internal use only.-
Method Summary
Modifier and TypeMethodDescriptionabout()voidabout(@NotNull AboutRequest request, @NotNull io.grpc.stub.StreamObserver<AboutReply> responseObserver) ========== DataRoutingService metadata ====================================voidgetAllDataImportServiceDestinationConfigs(@NotNull AllDataImportServiceDestinationConfigsRequest request, @NotNull io.grpc.stub.StreamObserver<DataImportServiceDestinationConfigResponse> responseObserver) Implements Collection<? extends DataImportServiceEndpointConfig> getAllDataImportServiceDestinationConfigs();voidgetAllLogAggregatorServiceConfigs(@NotNull AllLogAggregatorConfigRequest request, @NotNull io.grpc.stub.StreamObserver<LogAggregatorConfigResponse> responseObserver) Implements Collection<? extends LogAggregatorConfig> getAllLogAggregatorServiceConfigs();voidgetCollectedClaims(CollectedClaimsRequest request, io.grpc.stub.StreamObserver<CollectedClaimsResponse> responseObserver) voidgetDataImportServiceConfigs(@NotNull DataImportServiceConfigsRequest request, @NotNull io.grpc.stub.StreamObserver<DataImportServiceConfigsResponse> responseObserver) Implements DataImportServiceConfig getDataImportServiceConfig(@NotNull String name);voidgetDataImportServiceDestinationConfigs(@NotNull DataImportServiceDestinationConfigsRequest request, @NotNull io.grpc.stub.StreamObserver<DataImportServiceDestinationConfigResponse> responseObserver) Implements Collection<? extends DataImportServiceEndpointConfig> getDataImportServiceDestinations(@NotNull TableIdentifier tableIdentifier);voidgetFile(@NotNull DataRoutingFileRequest request, @NotNull io.grpc.stub.StreamObserver<com.google.protobuf.StringValue> responseObserver) this is just a workaround pending more TDS serialization workvoidgetFullConfiguration(DataRoutingConfigurationRequest request, io.grpc.stub.StreamObserver<DataRoutingConfigurationResponse> responseObserver) voidgetLogAggregatorConfig(@NotNull LogAggregatorConfigRequest request, @NotNull io.grpc.stub.StreamObserver<LogAggregatorConfigResponse> responseObserver) Implements Config getLogAggregatorConfig(@NotNull String configName);voidgetLogAggregatorDestinationConfig(@NotNull LogAggregatorDestinationConfigRequest request, @NotNull io.grpc.stub.StreamObserver<LogAggregatorDestinationConfigResponse> responseObserver) Implements LogAggregatorEndpoint getLogAggregatorDestinationConfig(@NotNull TableIdentifier tableIdentifier);voidgetTableDataServiceConfig(TableDataServiceConfigRequest request, io.grpc.stub.StreamObserver<TableDataServiceConfigResponse> responseObserver) Implements TableDataServiceConfig getTableDataServiceConfig(@NotNull String name);voidgetTableDataServiceConfigs(@NotNull AllTableDataServiceConfigRequest request, @NotNull io.grpc.stub.StreamObserver<TableDataServiceConfigsResponse> responseObserver) Implements Collection<? extends TableDataServiceConfig> getTableDataServiceConfigs();static RoutingServiceImplmake(@NotNull DataRoutingService routingService, @Nullable IrisGroupProvider irisGroupProvider, ConfigurationServer.ConfigurationAuditEventLogger ael) Factory: create a new RoutingServiceImpl with the given DataRoutingService provider.voidonConfigChange(long version) Called when the configuration changes.voidsubscribeToDataRoutingChangeNotifications(DataRoutingConfigurationChangeNotificationRequest request, io.grpc.stub.StreamObserver<DataRoutingConfigurationChangeMessage> responseObserver) ========== change notification =======================================voidupdateDises(DataRoutingUpdateDataImportServiceConfigsMessage request, io.grpc.stub.StreamObserver<DataRoutingFileUpdateResponse> responseObserver) Update one or more items comprising the data routing configuration.voidupdateFile(@NotNull DataRoutingFileUpdateRequest request, @NotNull io.grpc.stub.StreamObserver<DataRoutingFileUpdateResponse> responseObserver) Update the contents of the data routing fileMethods inherited from class io.deephaven.proto.routing.grpc.RoutingApiGrpc.RoutingApiImplBase
bindService
-
Method Details
-
make
public static RoutingServiceImpl make(@NotNull @NotNull DataRoutingService routingService, @Nullable @Nullable IrisGroupProvider irisGroupProvider, @NotNull ConfigurationServer.ConfigurationAuditEventLogger ael) Factory: create a new RoutingServiceImpl with the given DataRoutingService provider.- Parameters:
routingService- use this provider for DataRoutingServiceirisGroupProvider- the constructed group provider to use for permission checksael- logger for audit events- Returns:
- a new instance
-
about
-
about
public void about(@NotNull @NotNull AboutRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<AboutReply> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncService========== DataRoutingService metadata ====================================
- Specified by:
aboutin interfaceRoutingApiGrpc.AsyncService
-
getDataImportServiceConfigs
public void getDataImportServiceConfigs(@NotNull @NotNull DataImportServiceConfigsRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<DataImportServiceConfigsResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceImplements DataImportServiceConfig getDataImportServiceConfig(@NotNull String name);
- Specified by:
getDataImportServiceConfigsin interfaceRoutingApiGrpc.AsyncService
-
getDataImportServiceDestinationConfigs
public void getDataImportServiceDestinationConfigs(@NotNull @NotNull DataImportServiceDestinationConfigsRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<DataImportServiceDestinationConfigResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceImplements Collection<? extends DataImportServiceEndpointConfig> getDataImportServiceDestinations(@NotNull TableIdentifier tableIdentifier);
- Specified by:
getDataImportServiceDestinationConfigsin interfaceRoutingApiGrpc.AsyncService
-
getAllDataImportServiceDestinationConfigs
public void getAllDataImportServiceDestinationConfigs(@NotNull @NotNull AllDataImportServiceDestinationConfigsRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<DataImportServiceDestinationConfigResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceImplements Collection<? extends DataImportServiceEndpointConfig> getAllDataImportServiceDestinationConfigs();
- Specified by:
getAllDataImportServiceDestinationConfigsin interfaceRoutingApiGrpc.AsyncService
-
getLogAggregatorConfig
public void getLogAggregatorConfig(@NotNull @NotNull LogAggregatorConfigRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<LogAggregatorConfigResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceImplements Config getLogAggregatorConfig(@NotNull String configName);
- Specified by:
getLogAggregatorConfigin interfaceRoutingApiGrpc.AsyncService
-
getAllLogAggregatorServiceConfigs
public void getAllLogAggregatorServiceConfigs(@NotNull @NotNull AllLogAggregatorConfigRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<LogAggregatorConfigResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceImplements Collection<? extends LogAggregatorConfig> getAllLogAggregatorServiceConfigs();
- Specified by:
getAllLogAggregatorServiceConfigsin interfaceRoutingApiGrpc.AsyncService
-
getLogAggregatorDestinationConfig
public void getLogAggregatorDestinationConfig(@NotNull @NotNull LogAggregatorDestinationConfigRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<LogAggregatorDestinationConfigResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceImplements LogAggregatorEndpoint getLogAggregatorDestinationConfig(@NotNull TableIdentifier tableIdentifier);
- Specified by:
getLogAggregatorDestinationConfigin interfaceRoutingApiGrpc.AsyncService
-
getTableDataServiceConfig
public void getTableDataServiceConfig(TableDataServiceConfigRequest request, io.grpc.stub.StreamObserver<TableDataServiceConfigResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceImplements TableDataServiceConfig getTableDataServiceConfig(@NotNull String name);
- Specified by:
getTableDataServiceConfigin interfaceRoutingApiGrpc.AsyncService
-
getTableDataServiceConfigs
public void getTableDataServiceConfigs(@NotNull @NotNull AllTableDataServiceConfigRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<TableDataServiceConfigsResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceImplements Collection<? extends TableDataServiceConfig> getTableDataServiceConfigs();
- Specified by:
getTableDataServiceConfigsin interfaceRoutingApiGrpc.AsyncService
-
getFile
public void getFile(@NotNull @NotNull DataRoutingFileRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<com.google.protobuf.StringValue> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServicethis is just a workaround pending more TDS serialization work
- Specified by:
getFilein interfaceRoutingApiGrpc.AsyncService
-
getFullConfiguration
public void getFullConfiguration(DataRoutingConfigurationRequest request, io.grpc.stub.StreamObserver<DataRoutingConfigurationResponse> responseObserver) - Specified by:
getFullConfigurationin interfaceRoutingApiGrpc.AsyncService
-
getCollectedClaims
public void getCollectedClaims(CollectedClaimsRequest request, io.grpc.stub.StreamObserver<CollectedClaimsResponse> responseObserver) - Specified by:
getCollectedClaimsin interfaceRoutingApiGrpc.AsyncService
-
updateFile
public void updateFile(@NotNull @NotNull DataRoutingFileUpdateRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<DataRoutingFileUpdateResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceUpdate the contents of the data routing file
- Specified by:
updateFilein interfaceRoutingApiGrpc.AsyncService
-
updateDises
public void updateDises(DataRoutingUpdateDataImportServiceConfigsMessage request, io.grpc.stub.StreamObserver<DataRoutingFileUpdateResponse> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncServiceUpdate one or more items comprising the data routing configuration. According to the request message, add DISes, update or remove DISes, replace all DISes, and optionally update the main routing file at the same time for an atomic change.
- Specified by:
updateDisesin interfaceRoutingApiGrpc.AsyncService
-
subscribeToDataRoutingChangeNotifications
public void subscribeToDataRoutingChangeNotifications(DataRoutingConfigurationChangeNotificationRequest request, io.grpc.stub.StreamObserver<DataRoutingConfigurationChangeMessage> responseObserver) Description copied from interface:RoutingApiGrpc.AsyncService========== change notification =======================================
- Specified by:
subscribeToDataRoutingChangeNotificationsin interfaceRoutingApiGrpc.AsyncService
-
onConfigChange
public void onConfigChange(long version) Description copied from interface:DataRoutingConfigListenerCalled when the configuration changes. Additional heartbeat notifications are sent periodically.- Specified by:
onConfigChangein interfaceDataRoutingConfigListener- Parameters:
version- the new/current version of the configuration.
-