/usr/lib/python2.7/dist-packages/Ice/Metrics_ice.py is in python-zeroc-ice 3.7.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 | # -*- coding: utf-8 -*-
# **********************************************************************
#
# Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
#
# Ice version 3.7.0
#
# <auto-generated>
#
# Generated from file `Metrics.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
from sys import version_info as _version_info_
import Ice, IcePy
import Ice.BuiltinSequences_ice
# Included module Ice
_M_Ice = Ice.openModule('Ice')
# Start of module IceMX
_M_IceMX = Ice.openModule('IceMX')
__name__ = 'IceMX'
_M_IceMX.__doc__ = """
The Ice Management eXtension facility. It provides the
IceMX#MetricsAdmin interface for management clients to retrieve
metrics from Ice applications.
"""
if '_t_StringIntDict' not in _M_IceMX.__dict__:
_M_IceMX._t_StringIntDict = IcePy.defineDictionary('::IceMX::StringIntDict', (), IcePy._t_string, IcePy._t_int)
if 'Metrics' not in _M_IceMX.__dict__:
_M_IceMX.Metrics = Ice.createTempClass()
class Metrics(Ice.Value):
"""
The base class for metrics. A metrics object represents a
collection of measurements associated to a given a system.
Members:
id -- The metrics identifier.
total -- The total number of objects that were observed by this metrics.
current -- The current number of objects observed by this metrics.
totalLifetime -- The sum of the lifetime of each observed objects. This does not
include the lifetime of objects which are currently observed.
failures -- The number of failures observed.
"""
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0):
self.id = id
self.total = total
self.current = current
self.totalLifetime = totalLifetime
self.failures = failures
def ice_id(self):
return '::IceMX::Metrics'
@staticmethod
def ice_staticId():
return '::IceMX::Metrics'
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_Metrics)
__repr__ = __str__
_M_IceMX._t_Metrics = IcePy.defineValue('::IceMX::Metrics', Metrics, -1, (), False, False, None, (
('id', (), IcePy._t_string, False, 0),
('total', (), IcePy._t_long, False, 0),
('current', (), IcePy._t_int, False, 0),
('totalLifetime', (), IcePy._t_long, False, 0),
('failures', (), IcePy._t_int, False, 0)
))
Metrics._ice_type = _M_IceMX._t_Metrics
_M_IceMX.Metrics = Metrics
del Metrics
if 'MetricsFailures' not in _M_IceMX.__dict__:
_M_IceMX.MetricsFailures = Ice.createTempClass()
class MetricsFailures(object):
"""
A structure to keep track of failures associated with a given
metrics.
Members:
id -- The identifier of the metrics object associated to the
failures.
failures -- The failures observed for this metrics.
"""
def __init__(self, id='', failures=None):
self.id = id
self.failures = failures
def __eq__(self, other):
if other is None:
return False
elif not isinstance(other, _M_IceMX.MetricsFailures):
return NotImplemented
else:
if self.id != other.id:
return False
if self.failures != other.failures:
return False
return True
def __ne__(self, other):
return not self.__eq__(other)
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_MetricsFailures)
__repr__ = __str__
_M_IceMX._t_MetricsFailures = IcePy.defineStruct('::IceMX::MetricsFailures', MetricsFailures, (), (
('id', (), IcePy._t_string),
('failures', (), _M_IceMX._t_StringIntDict)
))
_M_IceMX.MetricsFailures = MetricsFailures
del MetricsFailures
if '_t_MetricsFailuresSeq' not in _M_IceMX.__dict__:
_M_IceMX._t_MetricsFailuresSeq = IcePy.defineSequence('::IceMX::MetricsFailuresSeq', (), _M_IceMX._t_MetricsFailures)
if '_t_MetricsMap' not in _M_IceMX.__dict__:
_M_IceMX._t_MetricsMap = IcePy.defineSequence('::IceMX::MetricsMap', (), _M_IceMX._t_Metrics)
if '_t_MetricsView' not in _M_IceMX.__dict__:
_M_IceMX._t_MetricsView = IcePy.defineDictionary('::IceMX::MetricsView', (), IcePy._t_string, _M_IceMX._t_MetricsMap)
if 'UnknownMetricsView' not in _M_IceMX.__dict__:
_M_IceMX.UnknownMetricsView = Ice.createTempClass()
class UnknownMetricsView(Ice.UserException):
"""
Raised if a metrics view cannot be found.
"""
def __init__(self):
pass
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_id = '::IceMX::UnknownMetricsView'
_M_IceMX._t_UnknownMetricsView = IcePy.defineException('::IceMX::UnknownMetricsView', UnknownMetricsView, (), False, None, ())
UnknownMetricsView._ice_type = _M_IceMX._t_UnknownMetricsView
_M_IceMX.UnknownMetricsView = UnknownMetricsView
del UnknownMetricsView
_M_IceMX._t_MetricsAdmin = IcePy.defineValue('::IceMX::MetricsAdmin', Ice.Value, -1, (), False, True, None, ())
if 'MetricsAdminPrx' not in _M_IceMX.__dict__:
_M_IceMX.MetricsAdminPrx = Ice.createTempClass()
class MetricsAdminPrx(Ice.ObjectPrx):
"""
Get the names of enabled and disabled metrics.
Arguments:
context -- The request context for the invocation.
Returns a tuple containing the following:
_retval -- The name of the enabled views.
disabledViews -- The names of the disabled views.
"""
def getMetricsViewNames(self, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsViewNames.invoke(self, ((), context))
"""
Get the names of enabled and disabled metrics.
Arguments:
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def getMetricsViewNamesAsync(self, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsViewNames.invokeAsync(self, ((), context))
"""
Get the names of enabled and disabled metrics.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getMetricsViewNames(self, _response=None, _ex=None, _sent=None, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsViewNames.begin(self, ((), _response, _ex, _sent, context))
"""
Get the names of enabled and disabled metrics.
Arguments:
Returns a tuple containing the following:
_retval -- The name of the enabled views.
disabledViews -- The names of the disabled views.
"""
def end_getMetricsViewNames(self, _r):
return _M_IceMX.MetricsAdmin._op_getMetricsViewNames.end(self, _r)
"""
Enables a metrics view.
Arguments:
name -- The metrics view name.
context -- The request context for the invocation.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def enableMetricsView(self, name, context=None):
return _M_IceMX.MetricsAdmin._op_enableMetricsView.invoke(self, ((name, ), context))
"""
Enables a metrics view.
Arguments:
name -- The metrics view name.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def enableMetricsViewAsync(self, name, context=None):
return _M_IceMX.MetricsAdmin._op_enableMetricsView.invokeAsync(self, ((name, ), context))
"""
Enables a metrics view.
Arguments:
name -- The metrics view name.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_enableMetricsView(self, name, _response=None, _ex=None, _sent=None, context=None):
return _M_IceMX.MetricsAdmin._op_enableMetricsView.begin(self, ((name, ), _response, _ex, _sent, context))
"""
Enables a metrics view.
Arguments:
name -- The metrics view name.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def end_enableMetricsView(self, _r):
return _M_IceMX.MetricsAdmin._op_enableMetricsView.end(self, _r)
"""
Disable a metrics view.
Arguments:
name -- The metrics view name.
context -- The request context for the invocation.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def disableMetricsView(self, name, context=None):
return _M_IceMX.MetricsAdmin._op_disableMetricsView.invoke(self, ((name, ), context))
"""
Disable a metrics view.
Arguments:
name -- The metrics view name.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def disableMetricsViewAsync(self, name, context=None):
return _M_IceMX.MetricsAdmin._op_disableMetricsView.invokeAsync(self, ((name, ), context))
"""
Disable a metrics view.
Arguments:
name -- The metrics view name.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_disableMetricsView(self, name, _response=None, _ex=None, _sent=None, context=None):
return _M_IceMX.MetricsAdmin._op_disableMetricsView.begin(self, ((name, ), _response, _ex, _sent, context))
"""
Disable a metrics view.
Arguments:
name -- The metrics view name.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def end_disableMetricsView(self, _r):
return _M_IceMX.MetricsAdmin._op_disableMetricsView.end(self, _r)
"""
Get the metrics objects for the given metrics view. This
returns a dictionnary of metric maps for each metrics class
configured with the view. The timestamp allows the client to
compute averages which are not dependent of the invocation
latency for this operation.
Arguments:
view -- The name of the metrics view.
context -- The request context for the invocation.
Returns a tuple containing the following:
_retval -- The metrics view data.
timestamp -- The local time of the process when the metrics object were retrieved.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def getMetricsView(self, view, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsView.invoke(self, ((view, ), context))
"""
Get the metrics objects for the given metrics view. This
returns a dictionnary of metric maps for each metrics class
configured with the view. The timestamp allows the client to
compute averages which are not dependent of the invocation
latency for this operation.
Arguments:
view -- The name of the metrics view.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def getMetricsViewAsync(self, view, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsView.invokeAsync(self, ((view, ), context))
"""
Get the metrics objects for the given metrics view. This
returns a dictionnary of metric maps for each metrics class
configured with the view. The timestamp allows the client to
compute averages which are not dependent of the invocation
latency for this operation.
Arguments:
view -- The name of the metrics view.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getMetricsView(self, view, _response=None, _ex=None, _sent=None, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsView.begin(self, ((view, ), _response, _ex, _sent, context))
"""
Get the metrics objects for the given metrics view. This
returns a dictionnary of metric maps for each metrics class
configured with the view. The timestamp allows the client to
compute averages which are not dependent of the invocation
latency for this operation.
Arguments:
view -- The name of the metrics view.
Returns a tuple containing the following:
_retval -- The metrics view data.
timestamp -- The local time of the process when the metrics object were retrieved.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def end_getMetricsView(self, _r):
return _M_IceMX.MetricsAdmin._op_getMetricsView.end(self, _r)
"""
Get the metrics failures associated with the given view and map.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
context -- The request context for the invocation.
Returns: The metrics failures associated with the map.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def getMapMetricsFailures(self, view, map, context=None):
return _M_IceMX.MetricsAdmin._op_getMapMetricsFailures.invoke(self, ((view, map), context))
"""
Get the metrics failures associated with the given view and map.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def getMapMetricsFailuresAsync(self, view, map, context=None):
return _M_IceMX.MetricsAdmin._op_getMapMetricsFailures.invokeAsync(self, ((view, map), context))
"""
Get the metrics failures associated with the given view and map.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getMapMetricsFailures(self, view, map, _response=None, _ex=None, _sent=None, context=None):
return _M_IceMX.MetricsAdmin._op_getMapMetricsFailures.begin(self, ((view, map), _response, _ex, _sent, context))
"""
Get the metrics failures associated with the given view and map.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
Returns: The metrics failures associated with the map.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def end_getMapMetricsFailures(self, _r):
return _M_IceMX.MetricsAdmin._op_getMapMetricsFailures.end(self, _r)
"""
Get the metrics failure associated for the given metrics.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
id -- The ID of the metrics.
context -- The request context for the invocation.
Returns: The metrics failures associated with the metrics.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def getMetricsFailures(self, view, map, id, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsFailures.invoke(self, ((view, map, id), context))
"""
Get the metrics failure associated for the given metrics.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
id -- The ID of the metrics.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def getMetricsFailuresAsync(self, view, map, id, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsFailures.invokeAsync(self, ((view, map, id), context))
"""
Get the metrics failure associated for the given metrics.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
id -- The ID of the metrics.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getMetricsFailures(self, view, map, id, _response=None, _ex=None, _sent=None, context=None):
return _M_IceMX.MetricsAdmin._op_getMetricsFailures.begin(self, ((view, map, id), _response, _ex, _sent, context))
"""
Get the metrics failure associated for the given metrics.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
id -- The ID of the metrics.
Returns: The metrics failures associated with the metrics.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
def end_getMetricsFailures(self, _r):
return _M_IceMX.MetricsAdmin._op_getMetricsFailures.end(self, _r)
@staticmethod
def checkedCast(proxy, facetOrContext=None, context=None):
return _M_IceMX.MetricsAdminPrx.ice_checkedCast(proxy, '::IceMX::MetricsAdmin', facetOrContext, context)
@staticmethod
def uncheckedCast(proxy, facet=None):
return _M_IceMX.MetricsAdminPrx.ice_uncheckedCast(proxy, facet)
@staticmethod
def ice_staticId():
return '::IceMX::MetricsAdmin'
_M_IceMX._t_MetricsAdminPrx = IcePy.defineProxy('::IceMX::MetricsAdmin', MetricsAdminPrx)
_M_IceMX.MetricsAdminPrx = MetricsAdminPrx
del MetricsAdminPrx
_M_IceMX.MetricsAdmin = Ice.createTempClass()
class MetricsAdmin(Ice.Object):
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceMX::MetricsAdmin')
def ice_id(self, current=None):
return '::IceMX::MetricsAdmin'
@staticmethod
def ice_staticId():
return '::IceMX::MetricsAdmin'
def getMetricsViewNames(self, current=None):
"""
Get the names of enabled and disabled metrics.
Arguments:
current -- The Current object for the invocation.
Returns: A future object for the invocation.
"""
raise NotImplementedError("servant method 'getMetricsViewNames' not implemented")
def enableMetricsView(self, name, current=None):
"""
Enables a metrics view.
Arguments:
name -- The metrics view name.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
raise NotImplementedError("servant method 'enableMetricsView' not implemented")
def disableMetricsView(self, name, current=None):
"""
Disable a metrics view.
Arguments:
name -- The metrics view name.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
raise NotImplementedError("servant method 'disableMetricsView' not implemented")
def getMetricsView(self, view, current=None):
"""
Get the metrics objects for the given metrics view. This
returns a dictionnary of metric maps for each metrics class
configured with the view. The timestamp allows the client to
compute averages which are not dependent of the invocation
latency for this operation.
Arguments:
view -- The name of the metrics view.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
raise NotImplementedError("servant method 'getMetricsView' not implemented")
def getMapMetricsFailures(self, view, map, current=None):
"""
Get the metrics failures associated with the given view and map.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
raise NotImplementedError("servant method 'getMapMetricsFailures' not implemented")
def getMetricsFailures(self, view, map, id, current=None):
"""
Get the metrics failure associated for the given metrics.
Arguments:
view -- The name of the metrics view.
map -- The name of the metrics map.
id -- The ID of the metrics.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
Throws:
UnknownMetricsView -- Raised if the metrics view cannot be found.
"""
raise NotImplementedError("servant method 'getMetricsFailures' not implemented")
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_MetricsAdminDisp)
__repr__ = __str__
_M_IceMX._t_MetricsAdminDisp = IcePy.defineClass('::IceMX::MetricsAdmin', MetricsAdmin, (), None, ())
MetricsAdmin._ice_type = _M_IceMX._t_MetricsAdminDisp
MetricsAdmin._op_getMetricsViewNames = IcePy.Operation('getMetricsViewNames', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, Ice.FormatType.SlicedFormat, (), (), (((), _M_Ice._t_StringSeq, False, 0),), ((), _M_Ice._t_StringSeq, False, 0), ())
MetricsAdmin._op_enableMetricsView = IcePy.Operation('enableMetricsView', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, Ice.FormatType.SlicedFormat, (), (((), IcePy._t_string, False, 0),), (), None, (_M_IceMX._t_UnknownMetricsView,))
MetricsAdmin._op_disableMetricsView = IcePy.Operation('disableMetricsView', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, Ice.FormatType.SlicedFormat, (), (((), IcePy._t_string, False, 0),), (), None, (_M_IceMX._t_UnknownMetricsView,))
MetricsAdmin._op_getMetricsView = IcePy.Operation('getMetricsView', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, Ice.FormatType.SlicedFormat, (), (((), IcePy._t_string, False, 0),), (((), IcePy._t_long, False, 0),), ((), _M_IceMX._t_MetricsView, False, 0), (_M_IceMX._t_UnknownMetricsView,))
MetricsAdmin._op_getMapMetricsFailures = IcePy.Operation('getMapMetricsFailures', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, Ice.FormatType.SlicedFormat, (), (((), IcePy._t_string, False, 0), ((), IcePy._t_string, False, 0)), (), ((), _M_IceMX._t_MetricsFailuresSeq, False, 0), (_M_IceMX._t_UnknownMetricsView,))
MetricsAdmin._op_getMetricsFailures = IcePy.Operation('getMetricsFailures', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, Ice.FormatType.SlicedFormat, (), (((), IcePy._t_string, False, 0), ((), IcePy._t_string, False, 0), ((), IcePy._t_string, False, 0)), (), ((), _M_IceMX._t_MetricsFailures, False, 0), (_M_IceMX._t_UnknownMetricsView,))
_M_IceMX.MetricsAdmin = MetricsAdmin
del MetricsAdmin
if 'ThreadMetrics' not in _M_IceMX.__dict__:
_M_IceMX.ThreadMetrics = Ice.createTempClass()
class ThreadMetrics(_M_IceMX.Metrics):
"""
Provides information on the number of threads currently in use and
their activity.
Members:
inUseForIO -- The number of threads which are currently performing socket
read or writes.
inUseForUser -- The number of threads which are currently calling user code
(servant dispatch, AMI callbacks, etc).
inUseForOther -- The number of threads which are currently performing other
activities. These are all other that are not counted with
inUseForUser or inUseForIO, such as DNS
lookups, garbage collection).
"""
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, inUseForIO=0, inUseForUser=0, inUseForOther=0):
_M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
self.inUseForIO = inUseForIO
self.inUseForUser = inUseForUser
self.inUseForOther = inUseForOther
def ice_id(self):
return '::IceMX::ThreadMetrics'
@staticmethod
def ice_staticId():
return '::IceMX::ThreadMetrics'
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_ThreadMetrics)
__repr__ = __str__
_M_IceMX._t_ThreadMetrics = IcePy.defineValue('::IceMX::ThreadMetrics', ThreadMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
('inUseForIO', (), IcePy._t_int, False, 0),
('inUseForUser', (), IcePy._t_int, False, 0),
('inUseForOther', (), IcePy._t_int, False, 0)
))
ThreadMetrics._ice_type = _M_IceMX._t_ThreadMetrics
_M_IceMX.ThreadMetrics = ThreadMetrics
del ThreadMetrics
if 'DispatchMetrics' not in _M_IceMX.__dict__:
_M_IceMX.DispatchMetrics = Ice.createTempClass()
class DispatchMetrics(_M_IceMX.Metrics):
"""
Provides information on servant dispatch.
Members:
userException -- The number of dispatch that failed with a user exception.
size -- The size of the dispatch. This corresponds to the size of the
marshalled input parameters.
replySize -- The size of the dispatch reply. This corresponds to the size of
the marshalled output and return parameters.
"""
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, userException=0, size=0, replySize=0):
_M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
self.userException = userException
self.size = size
self.replySize = replySize
def ice_id(self):
return '::IceMX::DispatchMetrics'
@staticmethod
def ice_staticId():
return '::IceMX::DispatchMetrics'
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_DispatchMetrics)
__repr__ = __str__
_M_IceMX._t_DispatchMetrics = IcePy.defineValue('::IceMX::DispatchMetrics', DispatchMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
('userException', (), IcePy._t_int, False, 0),
('size', (), IcePy._t_long, False, 0),
('replySize', (), IcePy._t_long, False, 0)
))
DispatchMetrics._ice_type = _M_IceMX._t_DispatchMetrics
_M_IceMX.DispatchMetrics = DispatchMetrics
del DispatchMetrics
if 'ChildInvocationMetrics' not in _M_IceMX.__dict__:
_M_IceMX.ChildInvocationMetrics = Ice.createTempClass()
class ChildInvocationMetrics(_M_IceMX.Metrics):
"""
Provides information on child invocations. A child invocation is
either remote (sent over an Ice connection) or collocated. An
invocation can have multiple child invocation if it is
retried. Child invocation metrics are embedded within
InvocationMetrics.
Members:
size -- The size of the invocation. This corresponds to the size of the
marshalled input parameters.
replySize -- The size of the invocation reply. This corresponds to the size
of the marshalled output and return parameters.
"""
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, size=0, replySize=0):
_M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
self.size = size
self.replySize = replySize
def ice_id(self):
return '::IceMX::ChildInvocationMetrics'
@staticmethod
def ice_staticId():
return '::IceMX::ChildInvocationMetrics'
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_ChildInvocationMetrics)
__repr__ = __str__
_M_IceMX._t_ChildInvocationMetrics = IcePy.defineValue('::IceMX::ChildInvocationMetrics', ChildInvocationMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
('size', (), IcePy._t_long, False, 0),
('replySize', (), IcePy._t_long, False, 0)
))
ChildInvocationMetrics._ice_type = _M_IceMX._t_ChildInvocationMetrics
_M_IceMX.ChildInvocationMetrics = ChildInvocationMetrics
del ChildInvocationMetrics
if 'CollocatedMetrics' not in _M_IceMX.__dict__:
_M_IceMX.CollocatedMetrics = Ice.createTempClass()
class CollocatedMetrics(_M_IceMX.ChildInvocationMetrics):
"""
Provides information on invocations that are collocated. Collocated
metrics are embedded within InvocationMetrics.
"""
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, size=0, replySize=0):
_M_IceMX.ChildInvocationMetrics.__init__(self, id, total, current, totalLifetime, failures, size, replySize)
def ice_id(self):
return '::IceMX::CollocatedMetrics'
@staticmethod
def ice_staticId():
return '::IceMX::CollocatedMetrics'
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_CollocatedMetrics)
__repr__ = __str__
_M_IceMX._t_CollocatedMetrics = IcePy.defineValue('::IceMX::CollocatedMetrics', CollocatedMetrics, -1, (), False, False, _M_IceMX._t_ChildInvocationMetrics, ())
CollocatedMetrics._ice_type = _M_IceMX._t_CollocatedMetrics
_M_IceMX.CollocatedMetrics = CollocatedMetrics
del CollocatedMetrics
if 'RemoteMetrics' not in _M_IceMX.__dict__:
_M_IceMX.RemoteMetrics = Ice.createTempClass()
class RemoteMetrics(_M_IceMX.ChildInvocationMetrics):
"""
Provides information on invocations that are specifically sent over
Ice connections. Remote metrics are embedded within
InvocationMetrics.
"""
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, size=0, replySize=0):
_M_IceMX.ChildInvocationMetrics.__init__(self, id, total, current, totalLifetime, failures, size, replySize)
def ice_id(self):
return '::IceMX::RemoteMetrics'
@staticmethod
def ice_staticId():
return '::IceMX::RemoteMetrics'
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_RemoteMetrics)
__repr__ = __str__
_M_IceMX._t_RemoteMetrics = IcePy.defineValue('::IceMX::RemoteMetrics', RemoteMetrics, -1, (), False, False, _M_IceMX._t_ChildInvocationMetrics, ())
RemoteMetrics._ice_type = _M_IceMX._t_RemoteMetrics
_M_IceMX.RemoteMetrics = RemoteMetrics
del RemoteMetrics
if 'InvocationMetrics' not in _M_IceMX.__dict__:
_M_IceMX.InvocationMetrics = Ice.createTempClass()
class InvocationMetrics(_M_IceMX.Metrics):
"""
Provide measurements for proxy invocations. Proxy invocations can
either be sent over the wire or be collocated.
Members:
retry -- The number of retries for the invocation(s).
userException -- The number of invocations that failed with a user exception.
remotes -- The remote invocation metrics map.
collocated -- The collocated invocation metrics map.
"""
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, retry=0, userException=0, remotes=None, collocated=None):
_M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
self.retry = retry
self.userException = userException
self.remotes = remotes
self.collocated = collocated
def ice_id(self):
return '::IceMX::InvocationMetrics'
@staticmethod
def ice_staticId():
return '::IceMX::InvocationMetrics'
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_InvocationMetrics)
__repr__ = __str__
_M_IceMX._t_InvocationMetrics = IcePy.declareValue('::IceMX::InvocationMetrics')
_M_IceMX._t_InvocationMetrics = IcePy.defineValue('::IceMX::InvocationMetrics', InvocationMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
('retry', (), IcePy._t_int, False, 0),
('userException', (), IcePy._t_int, False, 0),
('remotes', (), _M_IceMX._t_MetricsMap, False, 0),
('collocated', (), _M_IceMX._t_MetricsMap, False, 0)
))
InvocationMetrics._ice_type = _M_IceMX._t_InvocationMetrics
_M_IceMX.InvocationMetrics = InvocationMetrics
del InvocationMetrics
if 'ConnectionMetrics' not in _M_IceMX.__dict__:
_M_IceMX.ConnectionMetrics = Ice.createTempClass()
class ConnectionMetrics(_M_IceMX.Metrics):
"""
Provides information on the data sent and received over Ice
connections.
Members:
receivedBytes -- The number of bytes received by the connection.
sentBytes -- The number of bytes sent by the connection.
"""
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, receivedBytes=0, sentBytes=0):
_M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
self.receivedBytes = receivedBytes
self.sentBytes = sentBytes
def ice_id(self):
return '::IceMX::ConnectionMetrics'
@staticmethod
def ice_staticId():
return '::IceMX::ConnectionMetrics'
def __str__(self):
return IcePy.stringify(self, _M_IceMX._t_ConnectionMetrics)
__repr__ = __str__
_M_IceMX._t_ConnectionMetrics = IcePy.defineValue('::IceMX::ConnectionMetrics', ConnectionMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
('receivedBytes', (), IcePy._t_long, False, 0),
('sentBytes', (), IcePy._t_long, False, 0)
))
ConnectionMetrics._ice_type = _M_IceMX._t_ConnectionMetrics
_M_IceMX.ConnectionMetrics = ConnectionMetrics
del ConnectionMetrics
# End of module IceMX
Ice.sliceChecksums["::IceMX::ChildInvocationMetrics"] = "e8d7639c4944abd2b46e1676712e3914"
Ice.sliceChecksums["::IceMX::CollocatedMetrics"] = "3249804089f8e0882d12276c8e6d4165"
Ice.sliceChecksums["::IceMX::ConnectionMetrics"] = "ff705e359a88ff9bc35ab28283c8e29"
Ice.sliceChecksums["::IceMX::DispatchMetrics"] = "e583ad5ced38253d9ff59929af294ba"
Ice.sliceChecksums["::IceMX::InvocationMetrics"] = "64216b477afc9431249a60ae5913f8"
Ice.sliceChecksums["::IceMX::Metrics"] = "94c8036c48f8749deb5f33a364ecee"
Ice.sliceChecksums["::IceMX::MetricsAdmin"] = "88697f8371c057b7177760281b33a5"
Ice.sliceChecksums["::IceMX::MetricsFailures"] = "19ecb6e915befa597421fa4c92a1ac"
Ice.sliceChecksums["::IceMX::MetricsFailuresSeq"] = "a62163545a1a5a54ade5d7d826aac8bd"
Ice.sliceChecksums["::IceMX::MetricsMap"] = "22667dd9415a83de99a17cf19f63975"
Ice.sliceChecksums["::IceMX::MetricsView"] = "c8c150b17e594dea2e3c7c2d4738b6"
Ice.sliceChecksums["::IceMX::RemoteMetrics"] = "1dda65bb856a2c2fcaf32ea2b40682f"
Ice.sliceChecksums["::IceMX::StringIntDict"] = "e6c7aa764386f6528aa38c89cbff5dd4"
Ice.sliceChecksums["::IceMX::ThreadMetrics"] = "54ca6eb235a9769ade47e8ae200ff18"
Ice.sliceChecksums["::IceMX::UnknownMetricsView"] = "18de0c2a8812deb6facfd521d84ba6"
|