Package energy.eddie.aiida.services
Class PermissionCommandService
java.lang.Object
energy.eddie.aiida.services.PermissionCommandService
Handles
PermissionCommands that the EP sends to a streamer. The MqttStreamer
only parses and forwards the commands; all validation, persistence and side effects live here so the streamer stays
free of command logic.-
Constructor Summary
ConstructorsConstructorDescriptionPermissionCommandService(PermissionRepository permissionRepository, StreamerManager streamerManager, Clock clock, PermissionScheduler permissionScheduler, AiidaEventPublisher aiidaEventPublisher, PermissionCommandService self) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleCommand(PermissionCommand command) Validates and applies a singlePermissionCommandreceived from the EP.
-
Constructor Details
-
PermissionCommandService
@Autowired public PermissionCommandService(PermissionRepository permissionRepository, StreamerManager streamerManager, Clock clock, PermissionScheduler permissionScheduler, AiidaEventPublisher aiidaEventPublisher, @Lazy PermissionCommandService self)
-
-
Method Details
-
handleCommand
Validates and applies a singlePermissionCommandreceived from the EP.
-