Class BulkDataCleanupHandler
java.lang.Object
org.springframework.web.socket.handler.AbstractWebSocketHandler
org.springframework.web.socket.handler.TextWebSocketHandler
org.qubership.atp.tdm.websocket.bulkaction.BulkActionsHandler
org.qubership.atp.tdm.websocket.bulkaction.cleanup.BulkDataCleanupHandler
- All Implemented Interfaces:
org.springframework.web.socket.WebSocketHandler
-
Field Summary
Fields inherited from class org.qubership.atp.tdm.websocket.bulkaction.BulkActionsHandler
catalogRepository, currentTime, environmentsService, lockManager, mdcHelper -
Constructor Summary
ConstructorsConstructorDescriptionBulkDataCleanupHandler(ExecutorService executorService, CatalogRepository catalogRepository, EnvironmentsService environmentsService, CleanupService cleanupService, CleanupConfigRepository cleanupConfigRepository, BulkCleanupMailSender mailSender, CurrentTime currentTime, org.qubership.atp.common.lock.LockManager lockManager, TdmMdcHelper helper) Constructor with parameters. -
Method Summary
Modifier and TypeMethodDescriptionrunBulkAction(org.springframework.web.socket.WebSocketSession session, ExecutorService executor, List<LazyEnvironment> lazyEnvironments, BulkActionConfig config, long processId) Methods inherited from class org.qubership.atp.tdm.websocket.bulkaction.BulkActionsHandler
getEnvName, handleTextMessageMethods inherited from class org.springframework.web.socket.handler.TextWebSocketHandler
handleBinaryMessageMethods inherited from class org.springframework.web.socket.handler.AbstractWebSocketHandler
afterConnectionClosed, afterConnectionEstablished, handleMessage, handlePongMessage, handleTransportError, supportsPartialMessages
-
Constructor Details
-
BulkDataCleanupHandler
public BulkDataCleanupHandler(@Qualifier("websocket") ExecutorService executorService, @Nonnull CatalogRepository catalogRepository, @Nonnull EnvironmentsService environmentsService, @Nonnull CleanupService cleanupService, @Nonnull CleanupConfigRepository cleanupConfigRepository, @Nonnull BulkCleanupMailSender mailSender, @Nonnull CurrentTime currentTime, @Nonnull org.qubership.atp.common.lock.LockManager lockManager, TdmMdcHelper helper) Constructor with parameters.
-
-
Method Details
-
runBulkAction
public List<Future<BulkActionResult>> runBulkAction(@Nonnull org.springframework.web.socket.WebSocketSession session, @Nonnull ExecutorService executor, @Nonnull List<LazyEnvironment> lazyEnvironments, @Nonnull BulkActionConfig config, long processId) - Specified by:
runBulkActionin classBulkActionsHandler
-