@Component public abstract class AbstractService extends Object implements ActivationService
| Constructor and Description |
|---|
AbstractService() |
@Autowired public void setSender(StubsIntegrationMessageSender sender)
@Autowired public void setExecutorService(ExecutorService executorService)
@Autowired public void setTriggerMaintainer(TriggerMaintainer triggerMaintainer)
@Autowired public void setMetricsAggregateService(MetricsAggregateService metricsAggregateService)
@Autowired public void setThreadPoolProvider(ThreadPoolProvider threadPoolProvider)
@Autowired
public void setBulkProcessingMaxTime(@Value(value="${bulk.processing.max.time}")
int bulkProcessingMaxTime)
protected void sendSuccessMessageToConfigurator(org.qubership.automation.itf.core.model.communication.message.TriggerStatusMessage.ObjectType objectType, BigInteger id, String status, org.qubership.automation.itf.core.model.communication.StubUser user, String sessionId, String tenantId)
protected void sendFailMessageToConfigurator(org.qubership.automation.itf.core.model.communication.message.TriggerStatusMessage.ObjectType objectType, BigInteger id, String status, String description, org.qubership.automation.itf.core.model.communication.StubUser user, String sessionId, String tenantId)
protected org.qubership.automation.itf.core.model.communication.Result updateTriggerStatus(BigInteger id, String status, String description)
protected void processTriggers(List<org.qubership.automation.itf.core.model.communication.TriggerSample> triggers, ActivationServiceConstants actionValue, org.qubership.automation.itf.core.model.communication.StubUser user, AtomicBoolean isSuccess, ConcurrentMap<String,Boolean> availableServers, String action, String sessionId, String projectUuid)
protected org.qubership.automation.itf.core.model.communication.Result performActionForTrigger(org.qubership.automation.itf.core.model.communication.TriggerSample triggerSample, ActivationServiceConstants actionValue, ConcurrentMap<String,Boolean> availableServers)
protected void performActionForTrigger(org.qubership.automation.itf.core.model.communication.TriggerSample triggerSample, ActivationServiceConstants actionValue, org.qubership.automation.itf.core.model.communication.StubUser user, AtomicBoolean isSuccess, ConcurrentMap<String,Boolean> availableServers)
protected org.qubership.automation.itf.core.model.communication.Result performActionForTrigger(org.qubership.automation.itf.core.model.communication.TriggerSample triggerSample, ActivationServiceConstants action, org.qubership.automation.itf.core.model.communication.StubUser user, ConcurrentMap<String,Boolean> availableServers)
protected org.qubership.automation.itf.core.model.communication.Result doTriggerAction(org.qubership.automation.itf.core.model.communication.TriggerSample triggerSample, ActivationServiceConstants action, ConcurrentMap<String,Boolean> availableServers) throws Exception
Exceptionpublic void activateListOfTriggers(List<org.qubership.automation.itf.core.model.communication.TriggerSample> triggers, ConcurrentMap<String,Boolean> availableServers, String sessionId)
triggers - - triggers to activate,availableServers - - (un)availability servers map,sessionId - - generated sessionId for logging purposes.public org.qubership.automation.itf.core.model.communication.message.ServerTriggerStateResponse performBulkAction(List<org.qubership.automation.itf.core.model.communication.TriggerSample> triggers, ConcurrentMap<String,Boolean> availableServers, ActivationServiceConstants action, org.qubership.automation.itf.core.model.communication.StubUser user, String sessionId)
triggers - - triggers to (de)activate,availableServers - - (un)availability servers map,action - - action to perform,user - - user performing action,sessionId - - generated sessionId for logging purposes.Copyright © 2025. All rights reserved.