reactor.bus.EventBus Java Examples
The following examples show how to use
reactor.bus.EventBus.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PrerequisitesCreationHandler.java From cloudbreak with Apache License 2.0 | 6 votes |
protected PrerequisitesCreationHandler(EventSender eventSender, CloudPlatformConnectors cloudPlatformConnectors, CredentialToCloudCredentialConverter credentialToCloudCredentialConverter, EntitlementService entitlementService, CostTagging costTagging, EventBus eventBus, EnvironmentService environmentService, ParametersService parameterService, Clock clock) { super(eventSender); this.cloudPlatformConnectors = cloudPlatformConnectors; this.credentialToCloudCredentialConverter = credentialToCloudCredentialConverter; this.entitlementService = entitlementService; this.costTagging = costTagging; this.eventBus = eventBus; this.environmentService = environmentService; this.parameterService = parameterService; this.clock = clock; }
Example #2
Source File: FreeIpaCreationHandler.java From cloudbreak with Apache License 2.0 | 6 votes |
public FreeIpaCreationHandler( EventSender eventSender, EnvironmentService environmentService, FreeIpaService freeIpaService, DnsV1Endpoint dnsV1Endpoint, SupportedPlatforms supportedPlatforms, Map<CloudPlatform, FreeIpaNetworkProvider> freeIpaNetworkProviderMapByCloudPlatform, PollingService<FreeIpaPollerObject> freeIpaPollingService, FreeIpaServerRequestProvider freeIpaServerRequestProvider, TelemetryApiConverter telemetryApiConverter, CloudPlatformConnectors connectors, EventBus eventBus, @Value("${environment.enabledChildPlatforms}") Set<String> enabledChildPlatforms) { super(eventSender); this.environmentService = environmentService; this.freeIpaService = freeIpaService; this.dnsV1Endpoint = dnsV1Endpoint; this.supportedPlatforms = supportedPlatforms; this.freeIpaNetworkProviderMapByCloudPlatform = freeIpaNetworkProviderMapByCloudPlatform; this.freeIpaPollingService = freeIpaPollingService; this.freeIpaServerRequestProvider = freeIpaServerRequestProvider; this.telemetryApiConverter = telemetryApiConverter; this.connectors = connectors; this.eventBus = eventBus; this.enabledChildPlatforms = enabledChildPlatforms; }
Example #3
Source File: NetworkCreationHandler.java From cloudbreak with Apache License 2.0 | 6 votes |
protected NetworkCreationHandler(EventSender eventSender, EnvironmentService environmentService, NetworkService networkService, EnvironmentNetworkService environmentNetworkService, CloudNetworkService cloudNetworkService, EnvironmentResourceService environmentResourceService, @Value("${environment.enabledplatforms}") Set<String> enabledPlatforms, EventBus eventBus) { super(eventSender); this.environmentService = environmentService; this.networkService = networkService; this.environmentNetworkService = environmentNetworkService; this.enabledPlatforms = enabledPlatforms; this.cloudNetworkService = cloudNetworkService; this.environmentResourceService = environmentResourceService; this.eventBus = eventBus; }
Example #4
Source File: ViolationJpaPersister.java From fullstop with Apache License 2.0 | 5 votes |
public ViolationJpaPersister(final EventBus eventBus, final ViolationRepository violationRepository, final ViolationTypeRepository violationTypeRepository, final CounterService counterService, final WhitelistRules whitelistRules, final ApplicationVersionService applicationVersionService) { super(eventBus); this.violationRepository = violationRepository; this.violationTypeRepository = violationTypeRepository; this.counterService = counterService; this.whitelistRules = whitelistRules; this.applicationVersionService = applicationVersionService; }
Example #5
Source File: ExternalDatabaseTerminationActionsTest.java From cloudbreak with Apache License 2.0 | 5 votes |
private void setActionPrivateFields(Action<?, ?> action) { ReflectionTestUtils.setField(action, null, runningFlows, FlowRegister.class); ReflectionTestUtils.setField(action, null, eventBus, EventBus.class); ReflectionTestUtils.setField(action, null, reactorEventFactory, ErrorHandlerAwareReactorEventFactory.class); ReflectionTestUtils.setField(action, null, stackService, StackService.class); ReflectionTestUtils.setField(action, null, metricService, MetricService.class); ReflectionTestUtils.setField(action, null, tracer, Tracer.class); }
Example #6
Source File: ExternalDatabaseCreationActionsTest.java From cloudbreak with Apache License 2.0 | 5 votes |
private void setActionPrivateFields(Action<?, ?> action) { ReflectionTestUtils.setField(action, null, runningFlows, FlowRegister.class); ReflectionTestUtils.setField(action, null, eventBus, EventBus.class); ReflectionTestUtils.setField(action, null, reactorEventFactory, ErrorHandlerAwareReactorEventFactory.class); ReflectionTestUtils.setField(action, null, stackService, StackService.class); ReflectionTestUtils.setField(action, null, metricService, MetricService.class); ReflectionTestUtils.setField(action, null, tracer, Tracer.class); }
Example #7
Source File: EventBusConfig.java From cloudbreak with Apache License 2.0 | 5 votes |
@Bean public EventBus reactor(MDCCleanerThreadPoolExecutor threadPoolExecutor, Environment env) { return new EventBusSpec() .env(env) .dispatcher(new ThreadPoolExecutorDispatcher(eventBusThreadPoolBacklogSize, eventBusThreadPoolCoreSize, threadPoolExecutor)) .traceEventPath() .dispatchErrorHandler(throwable -> { handleFlowFail(throwable); LOGGER.error("Exception happened in dispatcher", throwable); }) .consumerNotFoundHandler(new ConsumerNotFoundHandler()) .get(); }
Example #8
Source File: ReactorEventHandlerInitializer.java From cloudbreak with Apache License 2.0 | 5 votes |
public ReactorEventHandlerInitializer(EventHandlerConfiguration.EventHandlers eventHandlers, EventBus eventBus) { this.eventHandlers = eventHandlers; validateSelectors(); LOGGER.debug("Registering ReactorEventHandlers"); for (EventHandler<?> handler : eventHandlers.getEventHandlers()) { String selector = handler.selector(); LOGGER.debug("Registering handler [{}] for selector [{}]", handler.getClass(), selector); eventBus.on($(selector), handler); } }
Example #9
Source File: PublicKeyCreationHandler.java From cloudbreak with Apache License 2.0 | 5 votes |
protected PublicKeyCreationHandler(EventSender eventSender, EnvironmentService environmentService, EnvironmentResourceService environmentResourceService, EventBus eventBus) { super(eventSender); this.environmentService = environmentService; this.environmentResourceService = environmentResourceService; this.eventBus = eventBus; }
Example #10
Source File: EnvironmentInitHandler.java From cloudbreak with Apache License 2.0 | 5 votes |
protected EnvironmentInitHandler(EventSender eventSender, EnvironmentService environmentService, EventBus eventBus, VirtualGroupService virtualGroupService) { super(eventSender); this.environmentService = environmentService; this.eventBus = eventBus; this.virtualGroupService = virtualGroupService; }
Example #11
Source File: EnvironmentValidationHandler.java From cloudbreak with Apache License 2.0 | 5 votes |
protected EnvironmentValidationHandler( EventSender eventSender, EnvironmentService environmentService, EnvironmentFlowValidatorService validatorService, WebApplicationExceptionMessageExtractor messageExtractor, EventBus eventBus) { super(eventSender); this.validatorService = validatorService; this.environmentService = environmentService; webApplicationExceptionMessageExtractor = messageExtractor; this.eventBus = eventBus; }
Example #12
Source File: Config.java From tutorials with MIT License | 4 votes |
@Bean public EventBus createEventBus(Environment env) { return EventBus.create(env, Environment.THREAD_POOL); }
Example #13
Source File: EnvClustersDeleteActionsTest.java From cloudbreak with Apache License 2.0 | 4 votes |
private void setActionPrivateFields(Action<?, ?> action) { ReflectionTestUtils.setField(action, null, runningFlows, FlowRegister.class); ReflectionTestUtils.setField(action, null, eventBus, EventBus.class); ReflectionTestUtils.setField(action, null, reactorEventFactory, ErrorHandlerAwareReactorEventFactory.class); ReflectionTestUtils.setField(action, null, tracer, Tracer.class); }
Example #14
Source File: EnvDeleteActionsTest.java From cloudbreak with Apache License 2.0 | 4 votes |
private void setActionPrivateFields(Action<?, ?> action) { ReflectionTestUtils.setField(action, null, runningFlows, FlowRegister.class); ReflectionTestUtils.setField(action, null, eventBus, EventBus.class); ReflectionTestUtils.setField(action, null, reactorEventFactory, ErrorHandlerAwareReactorEventFactory.class); ReflectionTestUtils.setField(action, null, tracer, Tracer.class); }
Example #15
Source File: EnvCreationActionsTest.java From cloudbreak with Apache License 2.0 | 4 votes |
private void setActionPrivateFields(Action<?, ?> action) { ReflectionTestUtils.setField(action, null, runningFlows, FlowRegister.class); ReflectionTestUtils.setField(action, null, eventBus, EventBus.class); ReflectionTestUtils.setField(action, null, reactorEventFactory, ErrorHandlerAwareReactorEventFactory.class); ReflectionTestUtils.setField(action, null, tracer, Tracer.class); }
Example #16
Source File: EventSender.java From cloudbreak with Apache License 2.0 | 4 votes |
public EventSender(EventBus reactor, ErrorHandlerAwareReactorEventFactory eventFactory) { this.reactor = reactor; this.eventFactory = eventFactory; }
Example #17
Source File: SimpleDemonstrationViolationHandler.java From fullstop with Apache License 2.0 | 4 votes |
public SimpleDemonstrationViolationHandler(final EventBus eventBus) { super(eventBus); }
Example #18
Source File: EventBusViolationSink.java From fullstop with Apache License 2.0 | 4 votes |
public EventBusViolationSink(final EventBus eventBus, final CounterService counterService) { this.eventBus = eventBus; this.counterService = counterService; }
Example #19
Source File: EventBusViolationSinkAutoConfiguration.java From fullstop with Apache License 2.0 | 4 votes |
@Bean public EventBus eventBus() { return EventBus.create(Environment.initializeIfEmpty()); }
Example #20
Source File: EventBusViolationHandler.java From fullstop with Apache License 2.0 | 4 votes |
public EventBusViolationHandler(final EventBus eventBus) { this.eventBus = eventBus; }