Search in sources :

Example 1 with ClusterControllerRuntime

use of io.joynr.runtime.ClusterControllerRuntime in project joynr by bmwcarit.

the class ProviderProxyEnd2EndTest method createClusterController.

private ClusterControllerRuntime createClusterController(Properties webSocketConfig) {
    Properties ccConfig = new Properties();
    ccConfig.putAll(webSocketConfig);
    ccConfig.setProperty(ConfigurableMessagingSettings.PROPERTY_CC_CONNECTION_TYPE, "WEBSOCKET");
    Injector injectorCC = new JoynrInjectorFactory(ccConfig, new CCWebSocketRuntimeModule()).getInjector();
    return (ClusterControllerRuntime) injectorCC.getInstance(JoynrRuntime.class);
}
Also used : JoynrRuntime(io.joynr.runtime.JoynrRuntime) ClusterControllerRuntime(io.joynr.runtime.ClusterControllerRuntime) Injector(com.google.inject.Injector) CCWebSocketRuntimeModule(io.joynr.runtime.CCWebSocketRuntimeModule) Properties(java.util.Properties) JoynrInjectorFactory(io.joynr.runtime.JoynrInjectorFactory)

Example 2 with ClusterControllerRuntime

use of io.joynr.runtime.ClusterControllerRuntime in project joynr by bmwcarit.

the class SubscriptionEnd2EndTest method createClusterController.

private ClusterControllerRuntime createClusterController(Properties webSocketConfig) {
    Properties ccConfig = new Properties();
    ccConfig.putAll(webSocketConfig);
    ccConfig.setProperty(ConfigurableMessagingSettings.PROPERTY_CC_CONNECTION_TYPE, "WEBSOCKET");
    Injector injectorCC = new JoynrInjectorFactory(ccConfig, new CCWebSocketRuntimeModule()).getInjector();
    return (ClusterControllerRuntime) injectorCC.getInstance(JoynrRuntime.class);
}
Also used : JoynrRuntime(io.joynr.runtime.JoynrRuntime) ClusterControllerRuntime(io.joynr.runtime.ClusterControllerRuntime) Injector(com.google.inject.Injector) CCWebSocketRuntimeModule(io.joynr.runtime.CCWebSocketRuntimeModule) Properties(java.util.Properties) JoynrInjectorFactory(io.joynr.runtime.JoynrInjectorFactory)

Example 3 with ClusterControllerRuntime

use of io.joynr.runtime.ClusterControllerRuntime in project joynr by bmwcarit.

the class BroadcastEnd2EndTest method createClusterController.

private ClusterControllerRuntime createClusterController(Properties webSocketConfig) {
    Properties ccConfig = new Properties();
    ccConfig.putAll(webSocketConfig);
    ccConfig.setProperty(ConfigurableMessagingSettings.PROPERTY_CC_CONNECTION_TYPE, "WEBSOCKET");
    Injector injectorCC = new JoynrInjectorFactory(ccConfig, new CCWebSocketRuntimeModule()).getInjector();
    return (ClusterControllerRuntime) injectorCC.getInstance(JoynrRuntime.class);
}
Also used : JoynrRuntime(io.joynr.runtime.JoynrRuntime) ClusterControllerRuntime(io.joynr.runtime.ClusterControllerRuntime) Injector(com.google.inject.Injector) CCWebSocketRuntimeModule(io.joynr.runtime.CCWebSocketRuntimeModule) Properties(java.util.Properties) JoynrInjectorFactory(io.joynr.runtime.JoynrInjectorFactory)

Aggregations

Injector (com.google.inject.Injector)3 CCWebSocketRuntimeModule (io.joynr.runtime.CCWebSocketRuntimeModule)3 ClusterControllerRuntime (io.joynr.runtime.ClusterControllerRuntime)3 JoynrInjectorFactory (io.joynr.runtime.JoynrInjectorFactory)3 JoynrRuntime (io.joynr.runtime.JoynrRuntime)3 Properties (java.util.Properties)3