joynr.system.RoutingProxy.js Maven / Gradle / Ivy
/**
* PLEASE NOTE: THIS IS A GENERATED FILE!
* Generation date: Mon Dec 05 09:32:58 CET 2016
*
* RoutingProxy, generated from the corresponding interface description.
*/
(function (undefined){
/**
* @name RoutingProxy
* @constructor
*
* @classdesc
*
Generation date: Mon Dec 05 09:32:58 CET 2016
*
* RoutingProxy, generated from the corresponding interface description.
*
The Routing
interface is a joynr internal
* interface. joynr uses a hierarchy of MessageRouter
s to
* route messages from source to destination. The Routing
* interface is used to update routing information between parent and
* child MessageRouter
s.
*
* @param {object} settings the settings object for this function call
* @param {String} settings.domain the domain name //TODO: check do we need this?
* @param {String} settings.joynrName the interface name //TODO: check do we need this?
*
* @param {Object} settings.discoveryQos the Quality of Service parameters for arbitration
* @param {Number} settings.discoveryQos.discoveryTimeoutMs for rpc calls to wait for arbitration to finish.
* @param {String} settings.discoveryQos.arbitrationStrategy Strategy for choosing the appropriate provider from the list returned by the capabilities directory
* @param {Number} settings.discoveryQos.cacheMaxAgeMs Maximum age of entries in the localCapabilitiesDirectory. If this value filters out all entries of the local capabilities directory a lookup in the global capabilitiesDirectory will take place.
* @param {Boolean} settings.discoveryQos.discoveryScope If localOnly is set to true, only local providers will be considered.
* @param {Object} settings.discoveryQos.additionalParameters a map holding additional parameters in the form of key value pairs in the javascript object, e.g.: {"myKey": "myValue", "myKey2": 5}
*
* @param {object} settings.messagingQos the Quality of Service parameters for messaging
* @param {Number} settings.messagingQos.ttl Roundtrip timeout for rpc requests.
* @param {Number} settings.dependencies instances of the internal objects needed by the proxy to interface with joynr
* @param {Number} settings.proxyElementTypes constructors for attribute, method and broadcasts, used to create the proxy's elements
*
* @returns {RoutingProxy} a RoutingProxy object to access other providers
*/
var RoutingProxy = function RoutingProxy(
settings) {
if (!(this instanceof RoutingProxy)) {
// in case someone calls constructor without new keyword (e.g. var c = Constructor({..}))
return new RoutingProxy(
settings);
}
// generated package name
this.settings = settings || {};
/**
* @function RoutingProxy#addNextHop
* @summary The addNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
method overloading: different call semantics possible
*
Adds a hop to the parent routing table.
*
* The overloaded methods (one for each concrete Address type) is
* needed since polymorphism is currently not supported by joynr.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.participantId -
* the ID of the target participant
* @param {ChannelAddress} settings.channelAddress -
* the messaging address of the next hop towards
* the corresponding participant ID
*/
/**
* @function RoutingProxy#addNextHop
* @summary The addNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
method overloading: different call semantics possible
*
Adds a hop to the parent routing table.
*
* The overloaded methods (one for each concrete Address type) is
* needed since polymorphism is currently not supported by joynr.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.participantId -
* the ID of the target participant
* @param {MqttAddress} settings.mqttAddress -
* the messaging address of the next hop towards
* the corresponding participant ID
*/
/**
* @function RoutingProxy#addNextHop
* @summary The addNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
method overloading: different call semantics possible
*
Adds a hop to the parent routing table.
*
* The overloaded methods (one for each concrete Address type) is
* needed since polymorphism is currently not supported by joynr.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.participantId -
* the ID of the target participant
* @param {CommonApiDbusAddress} settings.commonApiDbusAddress -
* the messaging address of the next hop towards
* the corresponding participant ID
*/
/**
* @function RoutingProxy#addNextHop
* @summary The addNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
method overloading: different call semantics possible
*
Adds a hop to the parent routing table.
*
* The overloaded methods (one for each concrete Address type) is
* needed since polymorphism is currently not supported by joynr.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.participantId -
* the ID of the target participant
* @param {BrowserAddress} settings.browserAddress -
* the messaging address of the next hop towards
* the corresponding participant ID
*/
/**
* @function RoutingProxy#addNextHop
* @summary The addNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
method overloading: different call semantics possible
*
Adds a hop to the parent routing table.
*
* The overloaded methods (one for each concrete Address type) is
* needed since polymorphism is currently not supported by joynr.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.participantId -
* the ID of the target participant
* @param {WebSocketAddress} settings.webSocketAddress -
* the messaging address of the next hop towards
* the corresponding participant ID
*/
/**
* @function RoutingProxy#addNextHop
* @summary The addNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
method overloading: different call semantics possible
*
Adds a hop to the parent routing table.
*
* The overloaded methods (one for each concrete Address type) is
* needed since polymorphism is currently not supported by joynr.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.participantId -
* the ID of the target participant
* @param {WebSocketClientAddress} settings.webSocketClientAddress -
* the messaging address of the next hop towards
* the corresponding participant ID
*/
this.addNextHop = new settings.proxyElementTypes.ProxyOperation(this, settings, "addNextHop", [
{
inputParameter: [
{
name : "participantId",
type : "String",
javascriptType : "string"
},
{
name : "channelAddress",
type : "joynr.system.RoutingTypes.ChannelAddress",
javascriptType : "joynr.system.RoutingTypes.ChannelAddress"
}
],
outputParameter: [
],
fireAndForget: false
}, {
inputParameter: [
{
name : "participantId",
type : "String",
javascriptType : "string"
},
{
name : "mqttAddress",
type : "joynr.system.RoutingTypes.MqttAddress",
javascriptType : "joynr.system.RoutingTypes.MqttAddress"
}
],
outputParameter: [
],
fireAndForget: false
}, {
inputParameter: [
{
name : "participantId",
type : "String",
javascriptType : "string"
},
{
name : "commonApiDbusAddress",
type : "joynr.system.RoutingTypes.CommonApiDbusAddress",
javascriptType : "joynr.system.RoutingTypes.CommonApiDbusAddress"
}
],
outputParameter: [
],
fireAndForget: false
}, {
inputParameter: [
{
name : "participantId",
type : "String",
javascriptType : "string"
},
{
name : "browserAddress",
type : "joynr.system.RoutingTypes.BrowserAddress",
javascriptType : "joynr.system.RoutingTypes.BrowserAddress"
}
],
outputParameter: [
],
fireAndForget: false
}, {
inputParameter: [
{
name : "participantId",
type : "String",
javascriptType : "string"
},
{
name : "webSocketAddress",
type : "joynr.system.RoutingTypes.WebSocketAddress",
javascriptType : "joynr.system.RoutingTypes.WebSocketAddress"
}
],
outputParameter: [
],
fireAndForget: false
}, {
inputParameter: [
{
name : "participantId",
type : "String",
javascriptType : "string"
},
{
name : "webSocketClientAddress",
type : "joynr.system.RoutingTypes.WebSocketClientAddress",
javascriptType : "joynr.system.RoutingTypes.WebSocketClientAddress"
}
],
outputParameter: [
],
fireAndForget: false
}
]).buildFunction();
/**
* @function RoutingProxy#resolveNextHop
* @summary The resolveNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
Asks the parent routing table whether it is able to
* resolve the destination participant ID.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.participantId -
* the ID of the target participant to resolve
* @returns {RoutingProxy#ResolveNextHopReturned}
* {Boolean} resolved
*/
/**
* @typedef {Object} RoutingProxy#ResolveNextHopReturned
* @property {Boolean} resolved
* true, if the participant ID could be resolved
*/
this.resolveNextHop = new settings.proxyElementTypes.ProxyOperation(this, settings, "resolveNextHop", [
{
inputParameter: [
{
name : "participantId",
type : "String",
javascriptType : "string"
}
],
outputParameter: [
{
name : "resolved",
type : "Boolean",
javascriptType : "boolean"
}
],
fireAndForget: false
}
]).buildFunction();
/**
* @function RoutingProxy#removeNextHop
* @summary The removeNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
Removes a hop from the parent routing table.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.participantId -
* the ID of the target participant
*/
this.removeNextHop = new settings.proxyElementTypes.ProxyOperation(this, settings, "removeNextHop", [
{
inputParameter: [
{
name : "participantId",
type : "String",
javascriptType : "string"
}
],
outputParameter: [
],
fireAndForget: false
}
]).buildFunction();
/**
* @function RoutingProxy#addMulticastReceiver
* @summary The addMulticastReceiver operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
Adds a new receiver via their participant ID to for the
* identified multicasts.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.multicastId -
* the multicast ID the receiver is interested in.
* @param {String} settings.subscriberParticipantId -
* the participant ID of the receiver.
* @param {String} settings.providerParticipantId -
* the participant ID of the provider.
*/
this.addMulticastReceiver = new settings.proxyElementTypes.ProxyOperation(this, settings, "addMulticastReceiver", [
{
inputParameter: [
{
name : "multicastId",
type : "String",
javascriptType : "string"
},
{
name : "subscriberParticipantId",
type : "String",
javascriptType : "string"
},
{
name : "providerParticipantId",
type : "String",
javascriptType : "string"
}
],
outputParameter: [
],
fireAndForget: false
}
]).buildFunction();
/**
* @function RoutingProxy#removeMulticastReceiver
* @summary The removeMulticastReceiver operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
Removes a new receiver via their participant ID to for the
* identified multicasts which was previously added via addMulticastReceiver.
*
* @param {Object} settings the arguments object for this function call
* @param {String} settings.multicastId -
* the multicast ID the receiver registered for.
* @param {String} settings.subscriberParticipantId -
* the participant ID of the receiver.
* @param {String} settings.providerParticipantId -
* the participant ID of the provider.
*/
this.removeMulticastReceiver = new settings.proxyElementTypes.ProxyOperation(this, settings, "removeMulticastReceiver", [
{
inputParameter: [
{
name : "multicastId",
type : "String",
javascriptType : "string"
},
{
name : "subscriberParticipantId",
type : "String",
javascriptType : "string"
},
{
name : "providerParticipantId",
type : "String",
javascriptType : "string"
}
],
outputParameter: [
],
fireAndForget: false
}
]).buildFunction();
Object.defineProperty(this, "interfaceName", {
writable: false,
readable: true,
value: "system/Routing"
});
};
/**
* @name RoutingProxy#MAJOR_VERSION
* @constant {Number}
* @default 0
* @summary The MAJOR_VERSION of the proxy is GENERATED FROM THE INTERFACE DESCRIPTION
*/
Object.defineProperty(RoutingProxy, 'MAJOR_VERSION', {
enumerable: false,
configurable: false,
writable: false,
readable: true,
value: 0
});
/**
* @name RoutingProxy#MINOR_VERSION
* @constant {Number}
* @default 1
* @summary The MINOR_VERSION of the proxy is GENERATED FROM THE INTERFACE DESCRIPTION
*/
Object.defineProperty(RoutingProxy, 'MINOR_VERSION', {
enumerable: false,
configurable: false,
writable: false,
readable: true,
value: 1
});
RoutingProxy.getUsedDatatypes = function getUsedDatatypes(){
return [
"joynr.system.RoutingTypes.WebSocketClientAddress",
"joynr.system.RoutingTypes.CommonApiDbusAddress",
"joynr.system.RoutingTypes.BrowserAddress",
"joynr.system.RoutingTypes.WebSocketAddress",
"joynr.system.RoutingTypes.ChannelAddress",
"joynr.system.RoutingTypes.MqttAddress"
];
};
// AMD support
if (typeof define === 'function' && define.amd) {
define("joynr/system/RoutingProxy", [
"joynr/system/RoutingTypes/WebSocketClientAddress",
"joynr/system/RoutingTypes/CommonApiDbusAddress",
"joynr/system/RoutingTypes/BrowserAddress",
"joynr/system/RoutingTypes/WebSocketAddress",
"joynr/system/RoutingTypes/WebSocketProtocol",
"joynr/system/RoutingTypes/ChannelAddress",
"joynr/system/RoutingTypes/MqttAddress"
], function () {
return RoutingProxy;
});
} else if (typeof exports !== 'undefined' ) {
if ((module !== undefined) && module.exports) {
require("../../joynr/system/RoutingTypes/WebSocketClientAddress");
require("../../joynr/system/RoutingTypes/CommonApiDbusAddress");
require("../../joynr/system/RoutingTypes/BrowserAddress");
require("../../joynr/system/RoutingTypes/WebSocketAddress");
require("../../joynr/system/RoutingTypes/WebSocketProtocol");
require("../../joynr/system/RoutingTypes/ChannelAddress");
require("../../joynr/system/RoutingTypes/MqttAddress");
exports = module.exports = RoutingProxy;
}
else {
// support CommonJS module 1.1.1 spec (`exports` cannot be a function)
exports.RoutingProxy = RoutingProxy;
}
} else {
window.RoutingProxy = RoutingProxy;
}
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy