Search in sources :

Example 1 with MockMinionIdentity

use of org.opennms.core.rpc.camel.MockMinionIdentity in project opennms by OpenNMS.

the class EchoRpcThreadIT method addServicesOnStartup.

@SuppressWarnings("rawtypes")
@Override
protected void addServicesOnStartup(Map<String, KeyValueHolder<Object, Dictionary>> services) {
    services.put(MinionIdentity.class.getName(), new KeyValueHolder<Object, Dictionary>(new MockMinionIdentity(REMOTE_LOCATION_NAME), new Properties()));
    Properties props = new Properties();
    props.setProperty("alias", "opennms.broker");
    services.put(Component.class.getName(), new KeyValueHolder<Object, Dictionary>(queuingservice, props));
    services.put(RpcModule.class.getName(), new KeyValueHolder<Object, Dictionary>(lockingRpcModule, new Properties()));
}
Also used : MockMinionIdentity(org.opennms.core.rpc.camel.MockMinionIdentity) Dictionary(java.util.Dictionary) RpcModule(org.opennms.core.rpc.api.RpcModule) MockMinionIdentity(org.opennms.core.rpc.camel.MockMinionIdentity) MinionIdentity(org.opennms.minion.core.api.MinionIdentity) Properties(java.util.Properties) Component(org.apache.camel.Component)

Example 2 with MockMinionIdentity

use of org.opennms.core.rpc.camel.MockMinionIdentity in project opennms by OpenNMS.

the class EchoRpcBlueprintIT method addServicesOnStartup.

@SuppressWarnings("rawtypes")
@Override
protected void addServicesOnStartup(Map<String, KeyValueHolder<Object, Dictionary>> services) {
    services.put(MinionIdentity.class.getName(), new KeyValueHolder<Object, Dictionary>(new MockMinionIdentity(REMOTE_LOCATION_NAME), new Properties()));
    Properties props = new Properties();
    props.setProperty("alias", "opennms.broker");
    services.put(Component.class.getName(), new KeyValueHolder<Object, Dictionary>(queuingservice, props));
}
Also used : MockMinionIdentity(org.opennms.core.rpc.camel.MockMinionIdentity) Dictionary(java.util.Dictionary) MockMinionIdentity(org.opennms.core.rpc.camel.MockMinionIdentity) MinionIdentity(org.opennms.minion.core.api.MinionIdentity) Properties(java.util.Properties) Component(org.apache.camel.Component)

Aggregations

Dictionary (java.util.Dictionary)2 Properties (java.util.Properties)2 Component (org.apache.camel.Component)2 MockMinionIdentity (org.opennms.core.rpc.camel.MockMinionIdentity)2 MinionIdentity (org.opennms.minion.core.api.MinionIdentity)2 RpcModule (org.opennms.core.rpc.api.RpcModule)1