![JAR search and dependency download from the Maven repository](/logo.png)
joynr.system.RoutingProxy.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libjoynr-js Show documentation
Show all versions of libjoynr-js Show documentation
JOYnr JavaScript libjoynr-js
/**
* PLEASE NOTE: THIS IS A GENERATED FILE!
* Generation date: Wed Jan 27 16:29:10 CET 2016
*
* RoutingProxy, generated from the corresponding interface description.
*/
(function (undefined){
/**
* @name RoutingProxy
* @constructor
*
* @classdesc
*
Generation date: Wed Jan 27 16:29:10 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.discoveryTimeout 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.cacheMaxAge 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 {String} participantId -
* the ID of the target participant
* @param {ChannelAddress} 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 {String} participantId -
* the ID of the target participant
* @param {CommonApiDbusAddress} 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 {String} participantId -
* the ID of the target participant
* @param {BrowserAddress} 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 {String} participantId -
* the ID of the target participant
* @param {WebSocketAddress} 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 {String} participantId -
* the ID of the target participant
* @param {WebSocketClientAddress} 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"
},
{
name : "channelAddress",
type : "joynr.system.RoutingTypes.ChannelAddress"
}
],
outputParameter: [
]
}, {
inputParameter: [
{
name : "participantId",
type : "String"
},
{
name : "commonApiDbusAddress",
type : "joynr.system.RoutingTypes.CommonApiDbusAddress"
}
],
outputParameter: [
]
}, {
inputParameter: [
{
name : "participantId",
type : "String"
},
{
name : "browserAddress",
type : "joynr.system.RoutingTypes.BrowserAddress"
}
],
outputParameter: [
]
}, {
inputParameter: [
{
name : "participantId",
type : "String"
},
{
name : "webSocketAddress",
type : "joynr.system.RoutingTypes.WebSocketAddress"
}
],
outputParameter: [
]
}, {
inputParameter: [
{
name : "participantId",
type : "String"
},
{
name : "webSocketClientAddress",
type : "joynr.system.RoutingTypes.WebSocketClientAddress"
}
],
outputParameter: [
]
}
]).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 {String} participantId -
* the ID of the target participant to resolve
* @returns {Boolean} resolved -
* true, if the participant ID could be resolved
*/
this.resolveNextHop = new settings.proxyElementTypes.ProxyOperation(this, settings, "resolveNextHop", [
{
inputParameter: [
{
name : "participantId",
type : "String"
}
],
outputParameter: [
{
name : "resolved",
type : "Boolean"
}
]
}
]).buildFunction();
/**
* @function RoutingProxy#removeNextHop
* @summary The removeNextHop operation is GENERATED FROM THE INTERFACE DESCRIPTION
*
Removes a hop from the parent routing table.
*
* @param {String} participantId -
* the ID of the target participant
*/
this.removeNextHop = new settings.proxyElementTypes.ProxyOperation(this, settings, "removeNextHop", [
{
inputParameter: [
{
name : "participantId",
type : "String"
}
],
outputParameter: [
]
}
]).buildFunction();
Object.defineProperty(this, "interfaceName", {
writable: false,
readable: true,
value: "system/Routing"
});
};
RoutingProxy.getUsedDatatypes = function getUsedDatatypes(){
return [
"joynr.system.RoutingTypes.WebSocketClientAddress",
"joynr.system.RoutingTypes.ChannelAddress",
"joynr.system.RoutingTypes.WebSocketAddress",
"joynr.system.RoutingTypes.CommonApiDbusAddress",
"joynr.system.RoutingTypes.BrowserAddress"
];
};
// AMD support
if (typeof define === 'function' && define.amd) {
define("joynr/system/RoutingProxy", [
"joynr/system/RoutingTypes/WebSocketClientAddress",
"joynr/system/RoutingTypes/ChannelAddress",
"joynr/system/RoutingTypes/WebSocketAddress",
"joynr/system/RoutingTypes/CommonApiDbusAddress",
"joynr/system/RoutingTypes/BrowserAddress"
], function () {
return RoutingProxy;
});
} else if (typeof exports !== 'undefined' ) {
if ((module !== undefined) && module.exports) {
require("../../joynr/system/RoutingTypes/WebSocketClientAddress");
require("../../joynr/system/RoutingTypes/ChannelAddress");
require("../../joynr/system/RoutingTypes/WebSocketAddress");
require("../../joynr/system/RoutingTypes/CommonApiDbusAddress");
require("../../joynr/system/RoutingTypes/BrowserAddress");
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