use of joynr.types.ProviderQos in project joynr by bmwcarit.
the class GlobalCapabilitiesDirectoryEjbTest method setup.
@Before
public void setup() throws NoSuchFieldException, IllegalAccessException {
Field field = CapabilityUtils.class.getDeclaredField("objectMapper");
field.setAccessible(true);
field.set(CapabilityUtils.class, new ObjectMapper());
testParticpantId = "participantId";
testGlobalDiscoveryEntry = CapabilityUtils.newGlobalDiscoveryEntry(new Version(0, 1), "domain", "interfaceName", testParticpantId, new ProviderQos(), System.currentTimeMillis(), System.currentTimeMillis() + 1000L, "public key ID", new MqttAddress("tcp://mqttbroker:1883", TOPIC_NAME));
}
use of joynr.types.ProviderQos in project joynr by bmwcarit.
the class GlobalDiscoveryEntryPersisted method setProviderQosPersisted.
public void setProviderQosPersisted(ProviderQosPersisted providerQosPersisted) {
this.providerQosPersisted = providerQosPersisted;
super.setQos(new ProviderQos(providerQosPersisted));
}
use of joynr.types.ProviderQos in project joynr by bmwcarit.
the class BroadcastEnd2EndTest method setUp.
@Override
@Before
public void setUp() throws Exception {
final int port = ServletUtil.findFreePort();
webSocketConfig = new Properties();
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_HOST, "localhost");
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PORT, "" + port);
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PROTOCOL, "ws");
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PATH, "");
providerQos = new ProviderQos(new CustomParameter[0], System.currentTimeMillis(), ProviderScope.LOCAL, false);
discoveryQos = new DiscoveryQos(10000, ArbitrationStrategy.HighestPriority, Long.MAX_VALUE, DiscoveryScope.LOCAL_ONLY);
// init websocket properties before libjoynr runtimes are created
super.setUp();
// Uncomment to log the verbose android logs to stdout
// ShadowLog.stream = System.out;
}
use of joynr.types.ProviderQos in project joynr by bmwcarit.
the class ProviderProxyEnd2EndTest method baseSetup.
@Override
@Before
public void baseSetup() throws Exception {
final int port = ServletUtil.findFreePort();
webSocketConfig = new Properties();
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_HOST, "localhost");
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PORT, "" + port);
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PROTOCOL, "ws");
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PATH, "");
testProviderQos = new ProviderQos(new CustomParameter[0], System.currentTimeMillis(), ProviderScope.LOCAL, false);
discoveryQos = new DiscoveryQos(10000, ArbitrationStrategy.HighestPriority, Long.MAX_VALUE, DiscoveryScope.LOCAL_ONLY);
// init websocket properties before libjoynr runtimes are created
super.baseSetup();
// Uncomment to log the verbose android logs to stdout
// ShadowLog.stream = System.out;
}
use of joynr.types.ProviderQos in project joynr by bmwcarit.
the class SubscriptionEnd2EndTest method setUp.
@Override
@Before
public void setUp() throws Exception {
final int port = ServletUtil.findFreePort();
webSocketConfig = new Properties();
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_HOST, "localhost");
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PORT, "" + port);
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PROTOCOL, "ws");
webSocketConfig.setProperty(WebsocketModule.PROPERTY_WEBSOCKET_MESSAGING_PATH, "");
providerQos = new ProviderQos(new CustomParameter[0], System.currentTimeMillis(), ProviderScope.LOCAL, false);
discoveryQos = new DiscoveryQos(10000, ArbitrationStrategy.HighestPriority, Long.MAX_VALUE, DiscoveryScope.LOCAL_ONLY);
super.setUp();
// Uncomment to log the verbose android logs to stdout
// ShadowLog.stream = System.out;
}
Aggregations