Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x | // Copyright (c) ZeroC, Inc. // slice2js version 3.8.0-alpha.0 // <auto-generated>Generated from Slice file 'Metrics.ice'.</auto-generated> /* eslint-disable */ /* jshint ignore: start */ import * as Ice_DefaultSliceLoader from "../Ice/DefaultSliceLoader.js"; import * as Ice_HashMap from "../Ice/HashMap.js"; import * as Ice_HashUtil from "../Ice/HashUtil.js"; import * as Ice_Object from "../Ice/Object.js"; import * as Ice_ObjectPrx from "../Ice/ObjectPrx.js"; import * as Ice_Operation from "../Ice/Operation.js"; import * as Ice_StreamHelpers from "../Ice/StreamHelpers.js"; import * as Ice_Struct from "../Ice/Struct.js"; import * as Ice_TypeRegistry from "../Ice/TypeRegistry.js"; import * as Ice_UserException from "../Ice/UserException.js"; import * as Ice_Value from "../Ice/Value.js"; import { Ice as Ice___BuiltinSequences } from "./BuiltinSequences.js" const Ice = { ...Ice_DefaultSliceLoader, ...Ice_HashMap, ...Ice_HashUtil, ...Ice_Object, ...Ice_ObjectPrx, ...Ice_Operation, ...Ice_StreamHelpers, ...Ice_Struct, ...Ice_TypeRegistry, ...Ice_UserException, ...Ice_Value, ...Ice___BuiltinSequences, }; export const IceMX = {}; [IceMX.StringIntDict, IceMX.StringIntDictHelper] = Ice.defineDictionary(Ice.StringHelper, Ice.IntHelper, false, undefined); /** * The base class for metrics. A metrics object represents a collection of measurements associated to a given a * system. */ IceMX.Metrics = class extends Ice.Value { constructor(id = "", total = 0n, current = 0, totalLifetime = 0n, failures = 0) { super(); this.id = id; this.total = total; this.current = current; this.totalLifetime = totalLifetime; this.failures = failures; } _iceWriteMemberImpl(ostr) { ostr.writeString(this.id); ostr.writeLong(this.total); ostr.writeInt(this.current); ostr.writeLong(this.totalLifetime); ostr.writeInt(this.failures); } _iceReadMemberImpl(istr) { this.id = istr.readString(); this.total = istr.readLong(); this.current = istr.readInt(); this.totalLifetime = istr.readLong(); this.failures = istr.readInt(); } }; Ice.defineClass(IceMX.Metrics, "::IceMX::Metrics"); Ice.TypeRegistry.declareValueType("IceMX.Metrics", IceMX.Metrics); /** * Keeps track of metrics failures. */ IceMX.MetricsFailures = class { constructor(id = "", failures = null) { this.id = id; this.failures = failures; } _write(ostr) { ostr.writeString(this.id); IceMX.StringIntDictHelper.write(ostr, this.failures); } _read(istr) { this.id = istr.readString(); this.failures = IceMX.StringIntDictHelper.read(istr); } static get minWireSize() { return 2; } }; Ice.defineStruct(IceMX.MetricsFailures, false, true); IceMX.MetricsFailuresSeqHelper = Ice.StreamHelpers.generateSeqHelper(IceMX.MetricsFailures, false); IceMX.MetricsMapHelper = Ice.StreamHelpers.generateSeqHelper(Ice.ObjectHelper, false, "IceMX.Metrics"); [IceMX.MetricsView, IceMX.MetricsViewHelper] = Ice.defineDictionary(Ice.StringHelper, IceMX.MetricsMapHelper, false, undefined); /** * The exception that is thrown when a metrics view cannot be found. */ IceMX.UnknownMetricsView = class extends Ice.UserException { static get _parent() { return Ice.UserException; } static get _ice_id() { return "::IceMX::UnknownMetricsView"; } _mostDerivedType() { return IceMX.UnknownMetricsView; } }; Ice.defineClass(IceMX.UnknownMetricsView, "::IceMX::UnknownMetricsView"); const iceC_IceMX_MetricsAdmin_ids = [ "::Ice::Object", "::IceMX::MetricsAdmin" ]; /** * The metrics administrative facet interface. This interface allows remote administrative clients to access the * metrics of an application that enabled the Ice administrative facility and configured one or more metrics views. */ IceMX.MetricsAdmin = class extends Ice.Object {}; /** * The metrics administrative facet interface. This interface allows remote administrative clients to access the * metrics of an application that enabled the Ice administrative facility and configured one or more metrics views. */ IceMX.MetricsAdminPrx = class extends Ice.ObjectPrx {}; Ice.TypeRegistry.declareProxyType("IceMX.MetricsAdminPrx", IceMX.MetricsAdminPrx); Ice.defineOperations( IceMX.MetricsAdmin, IceMX.MetricsAdminPrx, iceC_IceMX_MetricsAdmin_ids, "::IceMX::MetricsAdmin", { "getMetricsViewNames": [, 0, , [Ice.StringSeqHelper], , [[Ice.StringSeqHelper]], , , ], "enableMetricsView": [, 0, , , [[7]], , [ IceMX.UnknownMetricsView ], , ], "disableMetricsView": [, 0, , , [[7]], , [ IceMX.UnknownMetricsView ], , ], "getMetricsView": [, 0, 1, [IceMX.MetricsViewHelper], [[7]], [[4]], [ IceMX.UnknownMetricsView ], , true], "getMapMetricsFailures": [, 0, , [IceMX.MetricsFailuresSeqHelper], [[7], [7]], , [ IceMX.UnknownMetricsView ], , ], "getMetricsFailures": [, 0, , [IceMX.MetricsFailures], [[7], [7], [7]], , [ IceMX.UnknownMetricsView ], , ] }); /** * Provides information on the number of threads currently in use and their activity. */ IceMX.ThreadMetrics = class extends IceMX.Metrics { constructor(id, total, current, totalLifetime, failures, inUseForIO = 0, inUseForUser = 0, inUseForOther = 0) { super(id, total, current, totalLifetime, failures); this.inUseForIO = inUseForIO; this.inUseForUser = inUseForUser; this.inUseForOther = inUseForOther; } _iceWriteMemberImpl(ostr) { ostr.writeInt(this.inUseForIO); ostr.writeInt(this.inUseForUser); ostr.writeInt(this.inUseForOther); } _iceReadMemberImpl(istr) { this.inUseForIO = istr.readInt(); this.inUseForUser = istr.readInt(); this.inUseForOther = istr.readInt(); } }; Ice.defineClass(IceMX.ThreadMetrics, "::IceMX::ThreadMetrics"); Ice.TypeRegistry.declareValueType("IceMX.ThreadMetrics", IceMX.ThreadMetrics); /** * Provides information on servant dispatches. */ IceMX.DispatchMetrics = class extends IceMX.Metrics { constructor(id, total, current, totalLifetime, failures, userException = 0, size = 0n, replySize = 0n) { super(id, total, current, totalLifetime, failures); this.userException = userException; this.size = size; this.replySize = replySize; } _iceWriteMemberImpl(ostr) { ostr.writeInt(this.userException); ostr.writeLong(this.size); ostr.writeLong(this.replySize); } _iceReadMemberImpl(istr) { this.userException = istr.readInt(); this.size = istr.readLong(); this.replySize = istr.readLong(); } }; Ice.defineClass(IceMX.DispatchMetrics, "::IceMX::DispatchMetrics"); Ice.TypeRegistry.declareValueType("IceMX.DispatchMetrics", IceMX.DispatchMetrics); /** * Provides information on child invocations. A child invocation is either remote (sent over an Ice connection) or * collocated. An invocation can have multiple child invocations if it is retried. Child invocation metrics are * embedded within {@link IceMX.InvocationMetrics}. */ IceMX.ChildInvocationMetrics = class extends IceMX.Metrics { constructor(id, total, current, totalLifetime, failures, size = 0n, replySize = 0n) { super(id, total, current, totalLifetime, failures); this.size = size; this.replySize = replySize; } _iceWriteMemberImpl(ostr) { ostr.writeLong(this.size); ostr.writeLong(this.replySize); } _iceReadMemberImpl(istr) { this.size = istr.readLong(); this.replySize = istr.readLong(); } }; Ice.defineClass(IceMX.ChildInvocationMetrics, "::IceMX::ChildInvocationMetrics"); Ice.TypeRegistry.declareValueType("IceMX.ChildInvocationMetrics", IceMX.ChildInvocationMetrics); /** * Provides information on invocations that are collocated. Collocated metrics are embedded within * {@link IceMX.InvocationMetrics}. */ IceMX.CollocatedMetrics = class extends IceMX.ChildInvocationMetrics {}; Ice.defineClass(IceMX.CollocatedMetrics, "::IceMX::CollocatedMetrics"); Ice.TypeRegistry.declareValueType("IceMX.CollocatedMetrics", IceMX.CollocatedMetrics); /** * Provides information on invocations that are specifically sent over Ice connections. Remote metrics are embedded * within {@link IceMX.InvocationMetrics}. */ IceMX.RemoteMetrics = class extends IceMX.ChildInvocationMetrics {}; Ice.defineClass(IceMX.RemoteMetrics, "::IceMX::RemoteMetrics"); Ice.TypeRegistry.declareValueType("IceMX.RemoteMetrics", IceMX.RemoteMetrics); /** * Provide measurements for proxy invocations. Proxy invocations can either be sent over the wire or be collocated. */ IceMX.InvocationMetrics = class extends IceMX.Metrics { constructor(id, total, current, totalLifetime, failures, retry = 0, userException = 0, remotes = null, collocated = null) { super(id, total, current, totalLifetime, failures); this.retry = retry; this.userException = userException; this.remotes = remotes; this.collocated = collocated; } _iceWriteMemberImpl(ostr) { ostr.writeInt(this.retry); ostr.writeInt(this.userException); IceMX.MetricsMapHelper.write(ostr, this.remotes); IceMX.MetricsMapHelper.write(ostr, this.collocated); } _iceReadMemberImpl(istr) { this.retry = istr.readInt(); this.userException = istr.readInt(); this.remotes = IceMX.MetricsMapHelper.read(istr); this.collocated = IceMX.MetricsMapHelper.read(istr); } }; Ice.defineClass(IceMX.InvocationMetrics, "::IceMX::InvocationMetrics"); Ice.TypeRegistry.declareValueType("IceMX.InvocationMetrics", IceMX.InvocationMetrics); /** * Provides information on the data sent and received over Ice connections. */ IceMX.ConnectionMetrics = class extends IceMX.Metrics { constructor(id, total, current, totalLifetime, failures, receivedBytes = 0n, sentBytes = 0n) { super(id, total, current, totalLifetime, failures); this.receivedBytes = receivedBytes; this.sentBytes = sentBytes; } _iceWriteMemberImpl(ostr) { ostr.writeLong(this.receivedBytes); ostr.writeLong(this.sentBytes); } _iceReadMemberImpl(istr) { this.receivedBytes = istr.readLong(); this.sentBytes = istr.readLong(); } }; Ice.defineClass(IceMX.ConnectionMetrics, "::IceMX::ConnectionMetrics"); Ice.TypeRegistry.declareValueType("IceMX.ConnectionMetrics", IceMX.ConnectionMetrics); |