use of io.joynr.capabilities.LocalCapabilitiesDirectoryModule in project joynr by bmwcarit.
the class ClusterControllerRuntimeModule method configure.
@Override
protected void configure() {
super.configure();
install(new LocalCapabilitiesDirectoryModule());
install(new NoBackendMessagingModule());
install(new AccessControlClientModule());
bind(RoutingProvider.class).to(RoutingProviderImpl.class);
bind(Address.class).annotatedWith(Names.named(GLOBAL_ADDRESS)).toProvider(GlobalAddressProvider.class);
bind(MessageSender.class).to(CcMessageSender.class);
bind(MessageRouter.class).to(CcMessageRouter.class).in(Singleton.class);
ThreadFactory namedThreadFactory = new ThreadFactoryBuilder().setNameFormat("joynr.scheduler.capabilities.freshness-%d").setDaemon(true).build();
ScheduledExecutorService capabilitiesFreshnessUpdateExecutor = Executors.newSingleThreadScheduledExecutor(namedThreadFactory);
bind(ScheduledExecutorService.class).annotatedWith(Names.named(LocalCapabilitiesDirectory.JOYNR_SCHEDULER_CAPABILITIES_FRESHNESS)).toInstance(capabilitiesFreshnessUpdateExecutor);
}
Aggregations