use of com.mercedesbenz.sechub.sharedkernel.messaging.IsSendingAsyncMessage in project sechub by mercedes-benz.
the class JobRestartRequestService method triggerJobHardRestartRequest.
@IsSendingAsyncMessage(MessageID.REQUEST_JOB_RESTART_HARD)
private void triggerJobHardRestartRequest(JobMessage message) {
DomainMessage infoRequest = DomainMessageFactory.createEmptyRequest(MessageID.REQUEST_JOB_RESTART_HARD);
infoRequest.set(MessageDataKeys.JOB_RESTART_DATA, message);
infoRequest.set(MessageDataKeys.ENVIRONMENT_BASE_URL, sechubEnvironment.getServerBaseUrl());
eventBusService.sendAsynchron(infoRequest);
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.IsSendingAsyncMessage in project sechub by mercedes-benz.
the class UpdateMappingService method sendEvent.
@IsSendingAsyncMessage(MessageID.MAPPING_CONFIGURATION_CHANGED)
private void sendEvent(Mapping mapping) {
MappingMessage mappingMessage = new MappingMessage();
mappingMessage.setMappingId(mapping.getId());
mappingMessage.setMappingData(MappingData.fromString(mapping.getData()));
DomainMessage request = DomainMessageFactory.createEmptyRequest(MessageID.MAPPING_CONFIGURATION_CHANGED);
request.set(MessageDataKeys.CONFIG_MAPPING_DATA, mappingMessage);
eventBus.sendAsynchron(request);
}
Aggregations