![JAR search and dependency download from the Maven repository](/logo.png)
joynr.types.DiscoveryEntryWithMetaInfo.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
/**
* This is the generated struct type DiscoveryEntryWithMetaInfo: DOCS GENERATED FROM INTERFACE DESCRIPTION
* Generation date: Fri Jun 29 14:35:22 CEST 2018
*/
(function(undefined) {
/**
* @name DiscoveryEntryWithMetaInfo
* @constructor
*
* @classdesc
* This is the generated struct type DiscoveryEntryWithMetaInfo: DOCS GENERATED FROM INTERFACE DESCRIPTION
*
Generation date: Fri Jun 29 14:35:22 CEST 2018
*
Used for lookups between libjoynr and a cluster controller. Contains additional information
*
* @param {Object} members - an object containing the individual member elements
* @param {Version} members.providerVersion - semantic version information
* @param {String} members.domain - the domain to register the provider with
* @param {String} members.interfaceName - the name of the provider interface
* @param {String} members.participantId - the participant ID of the provider
* @param {ProviderQos} members.qos - the qos of the provider
* @param {Number} members.lastSeenDateMs - the date in millis since epoch when the source for this provider last
* contacted the directory
* @param {Number} members.expiryDateMs - the date in millis since epoch when this entry can be purged from the
* directory and caches
* @param {String} members.publicKeyId - the ID of the public key to be used to encrypt messages to
* this provider
* @param {Boolean} members.isLocal - Indicates whether a provider is registered at the local cluster controller
* @returns {DiscoveryEntryWithMetaInfo} a new instance of a DiscoveryEntryWithMetaInfo
*/
var DiscoveryEntryWithMetaInfo = function DiscoveryEntryWithMetaInfo(members) {
if (!(this instanceof DiscoveryEntryWithMetaInfo)) {
// in case someone calls constructor without new keyword (e.g. var c = Constructor({..}))
return new DiscoveryEntryWithMetaInfo(members);
}
/**
* Used for serialization.
* @name DiscoveryEntryWithMetaInfo#_typeName
* @type String
* @readonly
*/
Object.defineProperty(this, "_typeName", {
enumerable : true,
value : DiscoveryEntryWithMetaInfo._typeName
});
/**
* Parent class.
* @name DiscoveryEntryWithMetaInfo#_extends
* @type String
* @readonly
*/
Object.defineProperty(this, "_extends", {
value : "joynr.types.DiscoveryEntry"
});
/**
* semantic version information
* @name DiscoveryEntryWithMetaInfo#providerVersion
* @type Version
*/
/**
* the domain to register the provider with
* @name DiscoveryEntryWithMetaInfo#domain
* @type String
*/
/**
* the name of the provider interface
* @name DiscoveryEntryWithMetaInfo#interfaceName
* @type String
*/
/**
* the participant ID of the provider
* @name DiscoveryEntryWithMetaInfo#participantId
* @type String
*/
/**
* the qos of the provider
* @name DiscoveryEntryWithMetaInfo#qos
* @type ProviderQos
*/
/**
* the date in millis since epoch when the source for this provider last
* contacted the directory
* @name DiscoveryEntryWithMetaInfo#lastSeenDateMs
* @type Number
*/
/**
* the date in millis since epoch when this entry can be purged from the
* directory and caches
* @name DiscoveryEntryWithMetaInfo#expiryDateMs
* @type Number
*/
/**
* the ID of the public key to be used to encrypt messages to
* this provider
* @name DiscoveryEntryWithMetaInfo#publicKeyId
* @type String
*/
/**
* Indicates whether a provider is registered at the local cluster controller
* @name DiscoveryEntryWithMetaInfo#isLocal
* @type Boolean
*/
if (members !== undefined) {
this.providerVersion = members.providerVersion;
this.domain = members.domain;
this.interfaceName = members.interfaceName;
this.participantId = members.participantId;
this.qos = members.qos;
this.lastSeenDateMs = members.lastSeenDateMs;
this.expiryDateMs = members.expiryDateMs;
this.publicKeyId = members.publicKeyId;
this.isLocal = members.isLocal;
}
};
Object.defineProperty(DiscoveryEntryWithMetaInfo, "_typeName", {
value : "joynr.types.DiscoveryEntryWithMetaInfo"
});
Object.defineProperty(DiscoveryEntryWithMetaInfo, 'checkMembers', {
value: function checkMembers(instance, check) {
check(instance.providerVersion, ["Object", "Version"], "members.providerVersion");
check(instance.domain, "String", "members.domain");
check(instance.interfaceName, "String", "members.interfaceName");
check(instance.participantId, "String", "members.participantId");
check(instance.qos, ["Object", "ProviderQos"], "members.qos");
check(instance.lastSeenDateMs, "Number", "members.lastSeenDateMs");
check(instance.expiryDateMs, "Number", "members.expiryDateMs");
check(instance.publicKeyId, "String", "members.publicKeyId");
check(instance.isLocal, "Boolean", "members.isLocal");
}
});
/**
* @name DiscoveryEntryWithMetaInfo#MAJOR_VERSION
* @constant {Number}
* @default 0
* @summary The MAJOR_VERSION of the struct type DiscoveryEntryWithMetaInfo is GENERATED FROM THE INTERFACE DESCRIPTION
*/
Object.defineProperty(DiscoveryEntryWithMetaInfo, 'MAJOR_VERSION', { value: 0 });
/**
* @name DiscoveryEntryWithMetaInfo#MINOR_VERSION
* @constant {Number}
* @default 0
* @summary The MINOR_VERSION of the struct type DiscoveryEntryWithMetaInfo is GENERATED FROM THE INTERFACE DESCRIPTION
*/
Object.defineProperty(DiscoveryEntryWithMetaInfo, 'MINOR_VERSION', { value: 0 });
var preparePrototype = function(joynr) {
DiscoveryEntryWithMetaInfo.prototype = new joynr.JoynrObject();
DiscoveryEntryWithMetaInfo.prototype.constructor = DiscoveryEntryWithMetaInfo;
joynr.util.GenerationUtil.addEqualsCompound(DiscoveryEntryWithMetaInfo);
joynr.util.GenerationUtil.addMemberTypeGetter(DiscoveryEntryWithMetaInfo);
};
Object.defineProperty(DiscoveryEntryWithMetaInfo, '_memberTypes', {
value: {
providerVersion: "joynr.types.Version",
domain: "String",
interfaceName: "String",
participantId: "String",
qos: "joynr.types.ProviderQos",
lastSeenDateMs: "Long",
expiryDateMs: "Long",
publicKeyId: "String",
isLocal: "Boolean"
}
});
var joynr = require("joynr");
preparePrototype(joynr);
joynr.addType("joynr.types.DiscoveryEntryWithMetaInfo", DiscoveryEntryWithMetaInfo);
module.exports = DiscoveryEntryWithMetaInfo;
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy