You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
11 KiB
1 lines
11 KiB
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=e.ice||{};e.IceStorm=e.IceStorm||{},t.IceStorm=e.IceStorm;var r=Ice.Slice;!function(e,t,r){Ice._ModuleRegistry;var n=Ice.Slice;IceMX.TopicMetrics=function(e){function t(e,r,n,i,o){var c,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Ice.Long(0,0),u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Ice.Long(0,0);return _classCallCheck(this,t),(c=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,r,n,i,o))).published=s,c.forwarded=u,c}return _inherits(t,IceMX.Metrics),_createClass(t,[{key:"_iceWriteMemberImpl",value:function(e){e.writeLong(this.published),e.writeLong(this.forwarded)}},{key:"_iceReadMemberImpl",value:function(e){this.published=e.readLong(),this.forwarded=e.readLong()}}]),t}(),n.defineValue(IceMX.TopicMetrics,"::IceMX::TopicMetrics",!1),IceMX.SubscriberMetrics=function(e){function t(e,r,n,i,o){var c,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:new Ice.Long(0,0);return _classCallCheck(this,t),(c=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,r,n,i,o))).queued=s,c.outstanding=u,c.delivered=l,c}return _inherits(t,IceMX.Metrics),_createClass(t,[{key:"_iceWriteMemberImpl",value:function(e){e.writeInt(this.queued),e.writeInt(this.outstanding),e.writeLong(this.delivered)}},{key:"_iceReadMemberImpl",value:function(e){this.queued=e.readInt(),this.outstanding=e.readInt(),this.delivered=e.readLong()}}]),t}(),n.defineValue(IceMX.SubscriberMetrics,"::IceMX::SubscriberMetrics",!1)}("undefined"!=typeof global&&void 0!==global.process&&module,"undefined"!=typeof global&&void 0!==global.process?require:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self.Ice._require:window.Ice._require,"undefined"!=typeof global&&void 0!==global.process?exports:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:window),function(){IceStorm.LinkInfo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_classCallCheck(this,e),this.theTopic=t,this.name=r,this.cost=n}return _createClass(e,[{key:"_write",value:function(e){IceStorm.TopicPrx.write(e,this.theTopic),e.writeString(this.name),e.writeInt(this.cost)}},{key:"_read",value:function(e){this.theTopic=IceStorm.TopicPrx.read(e,this.theTopic),this.name=e.readString(),this.cost=e.readInt()}}],[{key:"minWireSize",get:function(){return 7}}]),e}(),r.defineStruct(IceStorm.LinkInfo,!1,!0),r.defineSequence(IceStorm,"LinkInfoSeqHelper","IceStorm.LinkInfo",!1),r.defineDictionary(IceStorm,"QoS","QoSHelper","Ice.StringHelper","Ice.StringHelper",!1,void 0,void 0),IceStorm.LinkExists=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n))).name=r,e}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return IceStorm.LinkExists}},{key:"_writeMemberImpl",value:function(e){e.writeString(this.name)}},{key:"_readMemberImpl",value:function(e){this.name=e.readString()}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::IceStorm::LinkExists"}}]),t}(),IceStorm.NoSuchLink=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n))).name=r,e}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return IceStorm.NoSuchLink}},{key:"_writeMemberImpl",value:function(e){e.writeString(this.name)}},{key:"_readMemberImpl",value:function(e){this.name=e.readString()}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::IceStorm::NoSuchLink"}}]),t}(),IceStorm.AlreadySubscribed=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return IceStorm.AlreadySubscribed}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::IceStorm::AlreadySubscribed"}}]),t}(),IceStorm.InvalidSubscriber=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n))).reason=r,e}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return IceStorm.InvalidSubscriber}},{key:"_writeMemberImpl",value:function(e){e.writeString(this.reason)}},{key:"_readMemberImpl",value:function(e){this.reason=e.readString()}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::IceStorm::InvalidSubscriber"}}]),t}(),IceStorm.BadQoS=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n))).reason=r,e}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return IceStorm.BadQoS}},{key:"_writeMemberImpl",value:function(e){e.writeString(this.reason)}},{key:"_readMemberImpl",value:function(e){this.reason=e.readString()}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::IceStorm::BadQoS"}}]),t}();IceStorm.Topic=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),IceStorm.TopicPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(IceStorm.Topic,IceStorm.TopicPrx,["::Ice::Object","::IceStorm::Topic"],1,{getName:[,2,1,,[7],,,,,],getPublisher:[,2,1,,[9],,,,,],getNonReplicatedPublisher:[,2,1,,[9],,,,,],subscribeAndGetPublisher:[,,,,[9],[["IceStorm.QoSHelper"],[9]],,[IceStorm.AlreadySubscribed,IceStorm.BadQoS,IceStorm.InvalidSubscriber],,],unsubscribe:[,2,2,,,[[9]],,,,],link:[,,,,,[["IceStorm.TopicPrx"],[3]],,[IceStorm.LinkExists],,],unlink:[,,,,,[["IceStorm.TopicPrx"]],,[IceStorm.NoSuchLink],,],getLinkInfoSeq:[,2,1,,["IceStorm.LinkInfoSeqHelper"],,,,,],getSubscribers:[,,,,["Ice.IdentitySeqHelper"],,,,,],destroy:[,,,,,,,,,]}),r.defineDictionary(IceStorm,"TopicDict","TopicDictHelper","Ice.StringHelper","IceStorm.TopicPrx",!1,void 0,void 0),IceStorm.TopicExists=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n))).name=r,e}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return IceStorm.TopicExists}},{key:"_writeMemberImpl",value:function(e){e.writeString(this.name)}},{key:"_readMemberImpl",value:function(e){this.name=e.readString()}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::IceStorm::TopicExists"}}]),t}(),IceStorm.NoSuchTopic=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n))).name=r,e}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return IceStorm.NoSuchTopic}},{key:"_writeMemberImpl",value:function(e){e.writeString(this.name)}},{key:"_readMemberImpl",value:function(e){this.name=e.readString()}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::IceStorm::NoSuchTopic"}}]),t}();IceStorm.TopicManager=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),IceStorm.TopicManagerPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(IceStorm.TopicManager,IceStorm.TopicManagerPrx,["::Ice::Object","::IceStorm::TopicManager"],1,{create:[,,,,["IceStorm.TopicPrx"],[[7]],,[IceStorm.TopicExists],,],retrieve:[,2,1,,["IceStorm.TopicPrx"],[[7]],,[IceStorm.NoSuchTopic],,],retrieveAll:[,2,1,,["IceStorm.TopicDictHelper"],,,,,],getSliceChecksums:[,2,1,,["Ice.SliceChecksumDictHelper"],,,,,]});IceStorm.Finder=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),IceStorm.FinderPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(IceStorm.Finder,IceStorm.FinderPrx,["::Ice::Object","::IceStorm::Finder"],1,{getTopicManager:[,,,,["IceStorm.TopicManagerPrx"],,,,,]})}(),e.IceStorm=IceStorm,e.ice=t}(); |