/usr/lib/python3/dist-packages/IceStorm_IceStorm_ice.py is in python3-zeroc-ice 3.6.3-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 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 | # -*- coding: utf-8 -*-
# **********************************************************************
#
# Copyright (c) 2003-2016 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.6.3
#
# <auto-generated>
#
# Generated from file `IceStorm.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
from sys import version_info as _version_info_
import Ice, IcePy
import Ice_Identity_ice
import Ice_SliceChecksumDict_ice
import IceStorm_Metrics_ice
# Included module Ice
_M_Ice = Ice.openModule('Ice')
# Included module IceMX
_M_IceMX = Ice.openModule('IceMX')
# Start of module IceStorm
_M_IceStorm = Ice.openModule('IceStorm')
__name__ = 'IceStorm'
_M_IceStorm.__doc__ = """
A messaging service with support for federation. In contrast to
most other messaging or event services, IceStorm supports typed
events, meaning that broadcasting a message over a federation is as
easy as invoking a method on an interface.
"""
if 'Topic' not in _M_IceStorm.__dict__:
_M_IceStorm._t_Topic = IcePy.declareClass('::IceStorm::Topic')
_M_IceStorm._t_TopicPrx = IcePy.declareProxy('::IceStorm::Topic')
if 'LinkInfo' not in _M_IceStorm.__dict__:
_M_IceStorm.LinkInfo = Ice.createTempClass()
class LinkInfo(object):
"""
Information on the topic links.
Members:
theTopic -- The linked topic.
name -- The name of the linked topic.
cost -- The cost of traversing this link.
"""
def __init__(self, theTopic=None, name='', cost=0):
self.theTopic = theTopic
self.name = name
self.cost = cost
def __eq__(self, other):
if other is None:
return False
elif not isinstance(other, _M_IceStorm.LinkInfo):
return NotImplemented
else:
if self.theTopic != other.theTopic:
return False
if self.name != other.name:
return False
if self.cost != other.cost:
return False
return True
def __ne__(self, other):
return not self.__eq__(other)
def __str__(self):
return IcePy.stringify(self, _M_IceStorm._t_LinkInfo)
__repr__ = __str__
_M_IceStorm._t_LinkInfo = IcePy.defineStruct('::IceStorm::LinkInfo', LinkInfo, (), (
('theTopic', (), _M_IceStorm._t_TopicPrx),
('name', (), IcePy._t_string),
('cost', (), IcePy._t_int)
))
_M_IceStorm.LinkInfo = LinkInfo
del LinkInfo
if '_t_LinkInfoSeq' not in _M_IceStorm.__dict__:
_M_IceStorm._t_LinkInfoSeq = IcePy.defineSequence('::IceStorm::LinkInfoSeq', (), _M_IceStorm._t_LinkInfo)
if '_t_QoS' not in _M_IceStorm.__dict__:
_M_IceStorm._t_QoS = IcePy.defineDictionary('::IceStorm::QoS', (), IcePy._t_string, IcePy._t_string)
if 'LinkExists' not in _M_IceStorm.__dict__:
_M_IceStorm.LinkExists = Ice.createTempClass()
class LinkExists(Ice.UserException):
"""
This exception indicates that an attempt was made to create a link
that already exists.
Members:
name -- The name of the linked topic.
"""
def __init__(self, name=''):
self.name = name
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_name = 'IceStorm::LinkExists'
_M_IceStorm._t_LinkExists = IcePy.defineException('::IceStorm::LinkExists', LinkExists, (), False, None, (('name', (), IcePy._t_string, False, 0),))
LinkExists._ice_type = _M_IceStorm._t_LinkExists
_M_IceStorm.LinkExists = LinkExists
del LinkExists
if 'NoSuchLink' not in _M_IceStorm.__dict__:
_M_IceStorm.NoSuchLink = Ice.createTempClass()
class NoSuchLink(Ice.UserException):
"""
This exception indicates that an attempt was made to remove a
link that does not exist.
Members:
name -- The name of the link that does not exist.
"""
def __init__(self, name=''):
self.name = name
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_name = 'IceStorm::NoSuchLink'
_M_IceStorm._t_NoSuchLink = IcePy.defineException('::IceStorm::NoSuchLink', NoSuchLink, (), False, None, (('name', (), IcePy._t_string, False, 0),))
NoSuchLink._ice_type = _M_IceStorm._t_NoSuchLink
_M_IceStorm.NoSuchLink = NoSuchLink
del NoSuchLink
if 'AlreadySubscribed' not in _M_IceStorm.__dict__:
_M_IceStorm.AlreadySubscribed = Ice.createTempClass()
class AlreadySubscribed(Ice.UserException):
"""
This exception indicates that an attempt was made to subscribe
a proxy for which a subscription already exists.
"""
def __init__(self):
pass
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_name = 'IceStorm::AlreadySubscribed'
_M_IceStorm._t_AlreadySubscribed = IcePy.defineException('::IceStorm::AlreadySubscribed', AlreadySubscribed, (), False, None, ())
AlreadySubscribed._ice_type = _M_IceStorm._t_AlreadySubscribed
_M_IceStorm.AlreadySubscribed = AlreadySubscribed
del AlreadySubscribed
if 'InvalidSubscriber' not in _M_IceStorm.__dict__:
_M_IceStorm.InvalidSubscriber = Ice.createTempClass()
class InvalidSubscriber(Ice.UserException):
"""
This exception indicates that an attempt was made to subscribe
a proxy that is null.
Members:
reason -- The reason for the failure.
"""
def __init__(self, reason=''):
self.reason = reason
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_name = 'IceStorm::InvalidSubscriber'
_M_IceStorm._t_InvalidSubscriber = IcePy.defineException('::IceStorm::InvalidSubscriber', InvalidSubscriber, (), False, None, (('reason', (), IcePy._t_string, False, 0),))
InvalidSubscriber._ice_type = _M_IceStorm._t_InvalidSubscriber
_M_IceStorm.InvalidSubscriber = InvalidSubscriber
del InvalidSubscriber
if 'BadQoS' not in _M_IceStorm.__dict__:
_M_IceStorm.BadQoS = Ice.createTempClass()
class BadQoS(Ice.UserException):
"""
This exception indicates that a subscription failed due to an
invalid QoS.
Members:
reason -- The reason for the failure.
"""
def __init__(self, reason=''):
self.reason = reason
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_name = 'IceStorm::BadQoS'
_M_IceStorm._t_BadQoS = IcePy.defineException('::IceStorm::BadQoS', BadQoS, (), False, None, (('reason', (), IcePy._t_string, False, 0),))
BadQoS._ice_type = _M_IceStorm._t_BadQoS
_M_IceStorm.BadQoS = BadQoS
del BadQoS
if 'Topic' not in _M_IceStorm.__dict__:
_M_IceStorm.Topic = Ice.createTempClass()
class Topic(Ice.Object):
"""
Publishers publish information on a particular topic. A topic
logically represents a type.
"""
def __init__(self):
if Ice.getType(self) == _M_IceStorm.Topic:
raise RuntimeError('IceStorm.Topic is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceStorm::Topic')
def ice_id(self, current=None):
return '::IceStorm::Topic'
def ice_staticId():
return '::IceStorm::Topic'
ice_staticId = staticmethod(ice_staticId)
def getName(self, current=None):
"""
Get the name of this topic.
Arguments:
current -- The Current object for the invocation.
Returns: The name of the topic.
"""
pass
def getPublisher(self, current=None):
"""
Get a proxy to a publisher object for this topic. To publish
data to a topic, the publisher calls getPublisher and then
casts to the topic type. An unchecked cast must be used on this
proxy. If a replicated IceStorm deployment is used this call
may return a replicated proxy.
Arguments:
current -- The Current object for the invocation.
Returns: A proxy to publish data on this topic.
"""
pass
def getNonReplicatedPublisher(self, current=None):
"""
Get a non-replicated proxy to a publisher object for this
topic. To publish data to a topic, the publisher calls
getPublisher and then casts to the topic type. An unchecked
cast must be used on this proxy.
Arguments:
current -- The Current object for the invocation.
Returns: A proxy to publish data on this topic.
"""
pass
def subscribeAndGetPublisher(self, theQoS, subscriber, current=None):
"""
Subscribe with the given qos to this topic. A
per-subscriber publisher object is returned.
Arguments:
theQoS -- The quality of service parameters for this subscription.
subscriber -- The subscriber's proxy.
current -- The Current object for the invocation.
Returns: The per-subscriber publisher object.
Throws:
AlreadySubscribed -- Raised if the subscriber object is already subscribed.
BadQoS -- Raised if the requested quality of service is unavailable or invalid.
NullSubscriber -- Raised if the subscriber object is null.
"""
pass
def unsubscribe(self, subscriber, current=None):
"""
Unsubscribe the given subscriber.
Arguments:
subscriber -- The proxy of an existing subscriber.
current -- The Current object for the invocation.
"""
pass
def link(self, linkTo, cost, current=None):
"""
Create a link to the given topic. All events originating
on this topic will also be sent to linkTo.
Arguments:
linkTo -- The topic to link to.
cost -- The cost to the linked topic.
current -- The Current object for the invocation.
Throws:
LinkExists -- Raised if a link to the same topic already exists.
"""
pass
def unlink(self, linkTo, current=None):
"""
Destroy the link from this topic to the given topic linkTo.
Arguments:
linkTo -- The topic to destroy the link to.
current -- The Current object for the invocation.
Throws:
NoSuchLink -- Raised if a link to the topic does not exist.
"""
pass
def getLinkInfoSeq(self, current=None):
"""
Retrieve information on the current links.
Arguments:
current -- The Current object for the invocation.
Returns: A sequence of LinkInfo objects.
"""
pass
def getSubscribers(self, current=None):
"""
Retrieve the list of subscribers for this topic.
Arguments:
current -- The Current object for the invocation.
Returns: The sequence of Ice identities for the subscriber objects.
"""
pass
def destroy(self, current=None):
"""
Destroy the topic.
Arguments:
current -- The Current object for the invocation.
"""
pass
def __str__(self):
return IcePy.stringify(self, _M_IceStorm._t_Topic)
__repr__ = __str__
_M_IceStorm.TopicPrx = Ice.createTempClass()
class TopicPrx(Ice.ObjectPrx):
"""
Get the name of this topic.
Arguments:
_ctx -- The request context for the invocation.
Returns: The name of the topic.
"""
def getName(self, _ctx=None):
return _M_IceStorm.Topic._op_getName.invoke(self, ((), _ctx))
"""
Get the name of this topic.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getName(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_getName.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Get the name of this topic.
Arguments:
Returns: The name of the topic.
"""
def end_getName(self, _r):
return _M_IceStorm.Topic._op_getName.end(self, _r)
"""
Get a proxy to a publisher object for this topic. To publish
data to a topic, the publisher calls getPublisher and then
casts to the topic type. An unchecked cast must be used on this
proxy. If a replicated IceStorm deployment is used this call
may return a replicated proxy.
Arguments:
_ctx -- The request context for the invocation.
Returns: A proxy to publish data on this topic.
"""
def getPublisher(self, _ctx=None):
return _M_IceStorm.Topic._op_getPublisher.invoke(self, ((), _ctx))
"""
Get a proxy to a publisher object for this topic. To publish
data to a topic, the publisher calls getPublisher and then
casts to the topic type. An unchecked cast must be used on this
proxy. If a replicated IceStorm deployment is used this call
may return a replicated proxy.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getPublisher(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_getPublisher.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Get a proxy to a publisher object for this topic. To publish
data to a topic, the publisher calls getPublisher and then
casts to the topic type. An unchecked cast must be used on this
proxy. If a replicated IceStorm deployment is used this call
may return a replicated proxy.
Arguments:
Returns: A proxy to publish data on this topic.
"""
def end_getPublisher(self, _r):
return _M_IceStorm.Topic._op_getPublisher.end(self, _r)
"""
Get a non-replicated proxy to a publisher object for this
topic. To publish data to a topic, the publisher calls
getPublisher and then casts to the topic type. An unchecked
cast must be used on this proxy.
Arguments:
_ctx -- The request context for the invocation.
Returns: A proxy to publish data on this topic.
"""
def getNonReplicatedPublisher(self, _ctx=None):
return _M_IceStorm.Topic._op_getNonReplicatedPublisher.invoke(self, ((), _ctx))
"""
Get a non-replicated proxy to a publisher object for this
topic. To publish data to a topic, the publisher calls
getPublisher and then casts to the topic type. An unchecked
cast must be used on this proxy.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getNonReplicatedPublisher(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_getNonReplicatedPublisher.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Get a non-replicated proxy to a publisher object for this
topic. To publish data to a topic, the publisher calls
getPublisher and then casts to the topic type. An unchecked
cast must be used on this proxy.
Arguments:
Returns: A proxy to publish data on this topic.
"""
def end_getNonReplicatedPublisher(self, _r):
return _M_IceStorm.Topic._op_getNonReplicatedPublisher.end(self, _r)
"""
Subscribe with the given qos to this topic. A
per-subscriber publisher object is returned.
Arguments:
theQoS -- The quality of service parameters for this subscription.
subscriber -- The subscriber's proxy.
_ctx -- The request context for the invocation.
Returns: The per-subscriber publisher object.
Throws:
AlreadySubscribed -- Raised if the subscriber object is already subscribed.
BadQoS -- Raised if the requested quality of service is unavailable or invalid.
NullSubscriber -- Raised if the subscriber object is null.
"""
def subscribeAndGetPublisher(self, theQoS, subscriber, _ctx=None):
return _M_IceStorm.Topic._op_subscribeAndGetPublisher.invoke(self, ((theQoS, subscriber), _ctx))
"""
Subscribe with the given qos to this topic. A
per-subscriber publisher object is returned.
Arguments:
theQoS -- The quality of service parameters for this subscription.
subscriber -- The subscriber's proxy.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_subscribeAndGetPublisher(self, theQoS, subscriber, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_subscribeAndGetPublisher.begin(self, ((theQoS, subscriber), _response, _ex, _sent, _ctx))
"""
Subscribe with the given qos to this topic. A
per-subscriber publisher object is returned.
Arguments:
theQoS -- The quality of service parameters for this subscription.
subscriber -- The subscriber's proxy.
Returns: The per-subscriber publisher object.
Throws:
AlreadySubscribed -- Raised if the subscriber object is already subscribed.
BadQoS -- Raised if the requested quality of service is unavailable or invalid.
NullSubscriber -- Raised if the subscriber object is null.
"""
def end_subscribeAndGetPublisher(self, _r):
return _M_IceStorm.Topic._op_subscribeAndGetPublisher.end(self, _r)
"""
Unsubscribe the given subscriber.
Arguments:
subscriber -- The proxy of an existing subscriber.
_ctx -- The request context for the invocation.
"""
def unsubscribe(self, subscriber, _ctx=None):
return _M_IceStorm.Topic._op_unsubscribe.invoke(self, ((subscriber, ), _ctx))
"""
Unsubscribe the given subscriber.
Arguments:
subscriber -- The proxy of an existing subscriber.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_unsubscribe(self, subscriber, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_unsubscribe.begin(self, ((subscriber, ), _response, _ex, _sent, _ctx))
"""
Unsubscribe the given subscriber.
Arguments:
subscriber -- The proxy of an existing subscriber.
"""
def end_unsubscribe(self, _r):
return _M_IceStorm.Topic._op_unsubscribe.end(self, _r)
"""
Create a link to the given topic. All events originating
on this topic will also be sent to linkTo.
Arguments:
linkTo -- The topic to link to.
cost -- The cost to the linked topic.
_ctx -- The request context for the invocation.
Throws:
LinkExists -- Raised if a link to the same topic already exists.
"""
def link(self, linkTo, cost, _ctx=None):
return _M_IceStorm.Topic._op_link.invoke(self, ((linkTo, cost), _ctx))
"""
Create a link to the given topic. All events originating
on this topic will also be sent to linkTo.
Arguments:
linkTo -- The topic to link to.
cost -- The cost to the linked topic.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_link(self, linkTo, cost, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_link.begin(self, ((linkTo, cost), _response, _ex, _sent, _ctx))
"""
Create a link to the given topic. All events originating
on this topic will also be sent to linkTo.
Arguments:
linkTo -- The topic to link to.
cost -- The cost to the linked topic.
Throws:
LinkExists -- Raised if a link to the same topic already exists.
"""
def end_link(self, _r):
return _M_IceStorm.Topic._op_link.end(self, _r)
"""
Destroy the link from this topic to the given topic linkTo.
Arguments:
linkTo -- The topic to destroy the link to.
_ctx -- The request context for the invocation.
Throws:
NoSuchLink -- Raised if a link to the topic does not exist.
"""
def unlink(self, linkTo, _ctx=None):
return _M_IceStorm.Topic._op_unlink.invoke(self, ((linkTo, ), _ctx))
"""
Destroy the link from this topic to the given topic linkTo.
Arguments:
linkTo -- The topic to destroy the link to.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_unlink(self, linkTo, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_unlink.begin(self, ((linkTo, ), _response, _ex, _sent, _ctx))
"""
Destroy the link from this topic to the given topic linkTo.
Arguments:
linkTo -- The topic to destroy the link to.
Throws:
NoSuchLink -- Raised if a link to the topic does not exist.
"""
def end_unlink(self, _r):
return _M_IceStorm.Topic._op_unlink.end(self, _r)
"""
Retrieve information on the current links.
Arguments:
_ctx -- The request context for the invocation.
Returns: A sequence of LinkInfo objects.
"""
def getLinkInfoSeq(self, _ctx=None):
return _M_IceStorm.Topic._op_getLinkInfoSeq.invoke(self, ((), _ctx))
"""
Retrieve information on the current links.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getLinkInfoSeq(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_getLinkInfoSeq.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Retrieve information on the current links.
Arguments:
Returns: A sequence of LinkInfo objects.
"""
def end_getLinkInfoSeq(self, _r):
return _M_IceStorm.Topic._op_getLinkInfoSeq.end(self, _r)
"""
Retrieve the list of subscribers for this topic.
Arguments:
_ctx -- The request context for the invocation.
Returns: The sequence of Ice identities for the subscriber objects.
"""
def getSubscribers(self, _ctx=None):
return _M_IceStorm.Topic._op_getSubscribers.invoke(self, ((), _ctx))
"""
Retrieve the list of subscribers for this topic.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getSubscribers(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_getSubscribers.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Retrieve the list of subscribers for this topic.
Arguments:
Returns: The sequence of Ice identities for the subscriber objects.
"""
def end_getSubscribers(self, _r):
return _M_IceStorm.Topic._op_getSubscribers.end(self, _r)
"""
Destroy the topic.
Arguments:
_ctx -- The request context for the invocation.
"""
def destroy(self, _ctx=None):
return _M_IceStorm.Topic._op_destroy.invoke(self, ((), _ctx))
"""
Destroy the topic.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_destroy(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Topic._op_destroy.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Destroy the topic.
Arguments:
"""
def end_destroy(self, _r):
return _M_IceStorm.Topic._op_destroy.end(self, _r)
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceStorm.TopicPrx.ice_checkedCast(proxy, '::IceStorm::Topic', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceStorm.TopicPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
def ice_staticId():
return '::IceStorm::Topic'
ice_staticId = staticmethod(ice_staticId)
_M_IceStorm._t_TopicPrx = IcePy.defineProxy('::IceStorm::Topic', TopicPrx)
_M_IceStorm._t_Topic = IcePy.defineClass('::IceStorm::Topic', Topic, -1, (), True, False, None, (), ())
Topic._ice_type = _M_IceStorm._t_Topic
Topic._op_getName = IcePy.Operation('getName', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (), ((), IcePy._t_string, False, 0), ())
Topic._op_getPublisher = IcePy.Operation('getPublisher', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (), ((), IcePy._t_ObjectPrx, False, 0), ())
Topic._op_getNonReplicatedPublisher = IcePy.Operation('getNonReplicatedPublisher', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (), ((), IcePy._t_ObjectPrx, False, 0), ())
Topic._op_subscribeAndGetPublisher = IcePy.Operation('subscribeAndGetPublisher', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_IceStorm._t_QoS, False, 0), ((), IcePy._t_ObjectPrx, False, 0)), (), ((), IcePy._t_ObjectPrx, False, 0), (_M_IceStorm._t_AlreadySubscribed, _M_IceStorm._t_InvalidSubscriber, _M_IceStorm._t_BadQoS))
Topic._op_unsubscribe = IcePy.Operation('unsubscribe', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, None, (), (((), IcePy._t_ObjectPrx, False, 0),), (), None, ())
Topic._op_link = IcePy.Operation('link', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_IceStorm._t_TopicPrx, False, 0), ((), IcePy._t_int, False, 0)), (), None, (_M_IceStorm._t_LinkExists,))
Topic._op_unlink = IcePy.Operation('unlink', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_IceStorm._t_TopicPrx, False, 0),), (), None, (_M_IceStorm._t_NoSuchLink,))
Topic._op_getLinkInfoSeq = IcePy.Operation('getLinkInfoSeq', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (), ((), _M_IceStorm._t_LinkInfoSeq, False, 0), ())
Topic._op_getSubscribers = IcePy.Operation('getSubscribers', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (), (), ((), _M_Ice._t_IdentitySeq, False, 0), ())
Topic._op_destroy = IcePy.Operation('destroy', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (), (), None, ())
_M_IceStorm.Topic = Topic
del Topic
_M_IceStorm.TopicPrx = TopicPrx
del TopicPrx
if '_t_TopicDict' not in _M_IceStorm.__dict__:
_M_IceStorm._t_TopicDict = IcePy.defineDictionary('::IceStorm::TopicDict', (), IcePy._t_string, _M_IceStorm._t_TopicPrx)
if 'TopicExists' not in _M_IceStorm.__dict__:
_M_IceStorm.TopicExists = Ice.createTempClass()
class TopicExists(Ice.UserException):
"""
This exception indicates that an attempt was made to create a topic
that already exists.
Members:
name -- The name of the topic that already exists.
"""
def __init__(self, name=''):
self.name = name
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_name = 'IceStorm::TopicExists'
_M_IceStorm._t_TopicExists = IcePy.defineException('::IceStorm::TopicExists', TopicExists, (), False, None, (('name', (), IcePy._t_string, False, 0),))
TopicExists._ice_type = _M_IceStorm._t_TopicExists
_M_IceStorm.TopicExists = TopicExists
del TopicExists
if 'NoSuchTopic' not in _M_IceStorm.__dict__:
_M_IceStorm.NoSuchTopic = Ice.createTempClass()
class NoSuchTopic(Ice.UserException):
"""
This exception indicates that an attempt was made to retrieve a
topic that does not exist.
Members:
name -- The name of the topic that does not exist.
"""
def __init__(self, name=''):
self.name = name
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_name = 'IceStorm::NoSuchTopic'
_M_IceStorm._t_NoSuchTopic = IcePy.defineException('::IceStorm::NoSuchTopic', NoSuchTopic, (), False, None, (('name', (), IcePy._t_string, False, 0),))
NoSuchTopic._ice_type = _M_IceStorm._t_NoSuchTopic
_M_IceStorm.NoSuchTopic = NoSuchTopic
del NoSuchTopic
if 'TopicManager' not in _M_IceStorm.__dict__:
_M_IceStorm.TopicManager = Ice.createTempClass()
class TopicManager(Ice.Object):
"""
A topic manager manages topics, and subscribers to topics.
"""
def __init__(self):
if Ice.getType(self) == _M_IceStorm.TopicManager:
raise RuntimeError('IceStorm.TopicManager is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceStorm::TopicManager')
def ice_id(self, current=None):
return '::IceStorm::TopicManager'
def ice_staticId():
return '::IceStorm::TopicManager'
ice_staticId = staticmethod(ice_staticId)
def create(self, name, current=None):
"""
Create a new topic. The topic name must be unique, otherwise
TopicExists is raised.
Arguments:
name -- The name of the topic.
current -- The Current object for the invocation.
Returns: A proxy to the topic instance.
Throws:
TopicExists -- Raised if a topic with the same name already exists.
"""
pass
def retrieve(self, name, current=None):
"""
Retrieve a topic by name.
Arguments:
name -- The name of the topic.
current -- The Current object for the invocation.
Returns: A proxy to the topic instance.
Throws:
NoSuchTopic -- Raised if the topic does not exist.
"""
pass
def retrieveAll(self, current=None):
"""
Retrieve all topics managed by this topic manager.
Arguments:
current -- The Current object for the invocation.
Returns: A dictionary of string, topic proxy pairs.
"""
pass
def getSliceChecksums(self, current=None):
"""
Returns the checksums for the IceStorm Slice definitions.
Arguments:
current -- The Current object for the invocation.
Returns: A dictionary mapping Slice type ids to their checksums.
"""
pass
def __str__(self):
return IcePy.stringify(self, _M_IceStorm._t_TopicManager)
__repr__ = __str__
_M_IceStorm.TopicManagerPrx = Ice.createTempClass()
class TopicManagerPrx(Ice.ObjectPrx):
"""
Create a new topic. The topic name must be unique, otherwise
TopicExists is raised.
Arguments:
name -- The name of the topic.
_ctx -- The request context for the invocation.
Returns: A proxy to the topic instance.
Throws:
TopicExists -- Raised if a topic with the same name already exists.
"""
def create(self, name, _ctx=None):
return _M_IceStorm.TopicManager._op_create.invoke(self, ((name, ), _ctx))
"""
Create a new topic. The topic name must be unique, otherwise
TopicExists is raised.
Arguments:
name -- The name of the topic.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_create(self, name, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.TopicManager._op_create.begin(self, ((name, ), _response, _ex, _sent, _ctx))
"""
Create a new topic. The topic name must be unique, otherwise
TopicExists is raised.
Arguments:
name -- The name of the topic.
Returns: A proxy to the topic instance.
Throws:
TopicExists -- Raised if a topic with the same name already exists.
"""
def end_create(self, _r):
return _M_IceStorm.TopicManager._op_create.end(self, _r)
"""
Retrieve a topic by name.
Arguments:
name -- The name of the topic.
_ctx -- The request context for the invocation.
Returns: A proxy to the topic instance.
Throws:
NoSuchTopic -- Raised if the topic does not exist.
"""
def retrieve(self, name, _ctx=None):
return _M_IceStorm.TopicManager._op_retrieve.invoke(self, ((name, ), _ctx))
"""
Retrieve a topic by name.
Arguments:
name -- The name of the topic.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_retrieve(self, name, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.TopicManager._op_retrieve.begin(self, ((name, ), _response, _ex, _sent, _ctx))
"""
Retrieve a topic by name.
Arguments:
name -- The name of the topic.
Returns: A proxy to the topic instance.
Throws:
NoSuchTopic -- Raised if the topic does not exist.
"""
def end_retrieve(self, _r):
return _M_IceStorm.TopicManager._op_retrieve.end(self, _r)
"""
Retrieve all topics managed by this topic manager.
Arguments:
_ctx -- The request context for the invocation.
Returns: A dictionary of string, topic proxy pairs.
"""
def retrieveAll(self, _ctx=None):
return _M_IceStorm.TopicManager._op_retrieveAll.invoke(self, ((), _ctx))
"""
Retrieve all topics managed by this topic manager.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_retrieveAll(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.TopicManager._op_retrieveAll.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Retrieve all topics managed by this topic manager.
Arguments:
Returns: A dictionary of string, topic proxy pairs.
"""
def end_retrieveAll(self, _r):
return _M_IceStorm.TopicManager._op_retrieveAll.end(self, _r)
"""
Returns the checksums for the IceStorm Slice definitions.
Arguments:
_ctx -- The request context for the invocation.
Returns: A dictionary mapping Slice type ids to their checksums.
"""
def getSliceChecksums(self, _ctx=None):
return _M_IceStorm.TopicManager._op_getSliceChecksums.invoke(self, ((), _ctx))
"""
Returns the checksums for the IceStorm Slice definitions.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getSliceChecksums(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.TopicManager._op_getSliceChecksums.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Returns the checksums for the IceStorm Slice definitions.
Arguments:
Returns: A dictionary mapping Slice type ids to their checksums.
"""
def end_getSliceChecksums(self, _r):
return _M_IceStorm.TopicManager._op_getSliceChecksums.end(self, _r)
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceStorm.TopicManagerPrx.ice_checkedCast(proxy, '::IceStorm::TopicManager', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceStorm.TopicManagerPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
def ice_staticId():
return '::IceStorm::TopicManager'
ice_staticId = staticmethod(ice_staticId)
_M_IceStorm._t_TopicManagerPrx = IcePy.defineProxy('::IceStorm::TopicManager', TopicManagerPrx)
_M_IceStorm._t_TopicManager = IcePy.defineClass('::IceStorm::TopicManager', TopicManager, -1, (), True, False, None, (), ())
TopicManager._ice_type = _M_IceStorm._t_TopicManager
TopicManager._op_create = IcePy.Operation('create', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), IcePy._t_string, False, 0),), (), ((), _M_IceStorm._t_TopicPrx, False, 0), (_M_IceStorm._t_TopicExists,))
TopicManager._op_retrieve = IcePy.Operation('retrieve', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (((), IcePy._t_string, False, 0),), (), ((), _M_IceStorm._t_TopicPrx, False, 0), (_M_IceStorm._t_NoSuchTopic,))
TopicManager._op_retrieveAll = IcePy.Operation('retrieveAll', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (), ((), _M_IceStorm._t_TopicDict, False, 0), ())
TopicManager._op_getSliceChecksums = IcePy.Operation('getSliceChecksums', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (), ((), _M_Ice._t_SliceChecksumDict, False, 0), ())
_M_IceStorm.TopicManager = TopicManager
del TopicManager
_M_IceStorm.TopicManagerPrx = TopicManagerPrx
del TopicManagerPrx
if 'Finder' not in _M_IceStorm.__dict__:
_M_IceStorm.Finder = Ice.createTempClass()
class Finder(Ice.Object):
"""
This inferface is advertised by the IceStorm service through the
Ice object with the identity `IceStorm/Finder'. This allows clients
to retrieve the topic manager with just the endpoint information of
the IceStorm service.
"""
def __init__(self):
if Ice.getType(self) == _M_IceStorm.Finder:
raise RuntimeError('IceStorm.Finder is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceStorm::Finder')
def ice_id(self, current=None):
return '::IceStorm::Finder'
def ice_staticId():
return '::IceStorm::Finder'
ice_staticId = staticmethod(ice_staticId)
def getTopicManager(self, current=None):
"""
Get the topic manager proxy. The proxy might point to several
replicas.
Arguments:
current -- The Current object for the invocation.
Returns: The topic manager proxy.
"""
pass
def __str__(self):
return IcePy.stringify(self, _M_IceStorm._t_Finder)
__repr__ = __str__
_M_IceStorm.FinderPrx = Ice.createTempClass()
class FinderPrx(Ice.ObjectPrx):
"""
Get the topic manager proxy. The proxy might point to several
replicas.
Arguments:
_ctx -- The request context for the invocation.
Returns: The topic manager proxy.
"""
def getTopicManager(self, _ctx=None):
return _M_IceStorm.Finder._op_getTopicManager.invoke(self, ((), _ctx))
"""
Get the topic manager proxy. The proxy might point to several
replicas.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
_ctx -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getTopicManager(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceStorm.Finder._op_getTopicManager.begin(self, ((), _response, _ex, _sent, _ctx))
"""
Get the topic manager proxy. The proxy might point to several
replicas.
Arguments:
Returns: The topic manager proxy.
"""
def end_getTopicManager(self, _r):
return _M_IceStorm.Finder._op_getTopicManager.end(self, _r)
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceStorm.FinderPrx.ice_checkedCast(proxy, '::IceStorm::Finder', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceStorm.FinderPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
def ice_staticId():
return '::IceStorm::Finder'
ice_staticId = staticmethod(ice_staticId)
_M_IceStorm._t_FinderPrx = IcePy.defineProxy('::IceStorm::Finder', FinderPrx)
_M_IceStorm._t_Finder = IcePy.defineClass('::IceStorm::Finder', Finder, -1, (), True, False, None, (), ())
Finder._ice_type = _M_IceStorm._t_Finder
Finder._op_getTopicManager = IcePy.Operation('getTopicManager', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (), (), ((), _M_IceStorm._t_TopicManagerPrx, False, 0), ())
_M_IceStorm.Finder = Finder
del Finder
_M_IceStorm.FinderPrx = FinderPrx
del FinderPrx
# End of module IceStorm
Ice.sliceChecksums["::IceStorm::AlreadySubscribed"] = "5a82e77b38f02f3118c536f9446a889e"
Ice.sliceChecksums["::IceStorm::BadQoS"] = "44f2de592dd62e3f7f4ffdf043692d"
Ice.sliceChecksums["::IceStorm::Finder"] = "74a058c59ac11fe9a98347ab96533e0"
Ice.sliceChecksums["::IceStorm::InvalidSubscriber"] = "79b17123acba6189e77285da82a862d3"
Ice.sliceChecksums["::IceStorm::LinkExists"] = "e11768febd56a8813729ce69be6c4c2"
Ice.sliceChecksums["::IceStorm::LinkInfo"] = "d0e073e5e0925ec95656f71d572e2e13"
Ice.sliceChecksums["::IceStorm::LinkInfoSeq"] = "a8921e43838692bbe6ca63f3dcf9b6"
Ice.sliceChecksums["::IceStorm::NoSuchLink"] = "fd8f652776796bffca2df1a3baf455a3"
Ice.sliceChecksums["::IceStorm::NoSuchTopic"] = "7a9479a5c39cdd32335d722bbc971176"
Ice.sliceChecksums["::IceStorm::QoS"] = "3e27cb32bc95cca7b013efbf5c254b35"
Ice.sliceChecksums["::IceStorm::Topic"] = "7058388fe7d6c582c2506237904eb7c9"
Ice.sliceChecksums["::IceStorm::TopicDict"] = "fff078a98be068c52d9e1d7d8f6df2a"
Ice.sliceChecksums["::IceStorm::TopicExists"] = "38e6913833539b8d616d114d4e7b28d"
Ice.sliceChecksums["::IceStorm::TopicManager"] = "ffc1baf19222891f8b432be6551fed5"
|