/usr/share/pyshared/IceGrid_Observer_ice.py is in python-zeroc-ice 3.4.2-8.2.
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 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 | # **********************************************************************
#
# Copyright (c) 2003-2011 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.4.2
#
# <auto-generated>
#
# Generated from file `Observer.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
import Ice, IcePy, __builtin__
import Glacier2_Session_ice
import IceGrid_Exception_ice
import IceGrid_Descriptor_ice
import IceGrid_Admin_ice
# Included module Ice
_M_Ice = Ice.openModule('Ice')
# Included module Glacier2
_M_Glacier2 = Ice.openModule('Glacier2')
# Included module IceGrid
_M_IceGrid = Ice.openModule('IceGrid')
# Start of module IceGrid
__name__ = 'IceGrid'
if not _M_IceGrid.__dict__.has_key('ServerDynamicInfo'):
_M_IceGrid.ServerDynamicInfo = Ice.createTempClass()
class ServerDynamicInfo(object):
'''Dynamic information about the state of a server.'''
def __init__(self, id='', state=_M_IceGrid.ServerState.Inactive, pid=0, enabled=False):
self.id = id
self.state = state
self.pid = pid
self.enabled = enabled
def __hash__(self):
_h = 0
_h = 5 * _h + __builtin__.hash(self.id)
_h = 5 * _h + __builtin__.hash(self.state)
_h = 5 * _h + __builtin__.hash(self.pid)
_h = 5 * _h + __builtin__.hash(self.enabled)
return _h % 0x7fffffff
def __lt__(self, other):
if isinstance(other, _M_IceGrid.ServerDynamicInfo):
return self.id < other.id or self.state < other.state or self.pid < other.pid or self.enabled < other.enabled
elif other == None:
return False
return NotImplemented
def __le__(self, other):
if isinstance(other, _M_IceGrid.ServerDynamicInfo):
return self.id <= other.id or self.state <= other.state or self.pid <= other.pid or self.enabled <= other.enabled
elif other == None:
return False
return NotImplemented
def __eq__(self, other):
if isinstance(other, _M_IceGrid.ServerDynamicInfo):
return self.id == other.id and self.state == other.state and self.pid == other.pid and self.enabled == other.enabled
elif other == None:
return False
return NotImplemented
def __ne__(self, other):
if isinstance(other, _M_IceGrid.ServerDynamicInfo):
return self.id != other.id or self.state != other.state or self.pid != other.pid or self.enabled != other.enabled
elif other == None:
return True
return NotImplemented
def __gt__(self, other):
if isinstance(other, _M_IceGrid.ServerDynamicInfo):
return self.id > other.id or self.state > other.state or self.pid > other.pid or self.enabled > other.enabled
elif other == None:
return False
return NotImplemented
def __ge__(self, other):
if isinstance(other, _M_IceGrid.ServerDynamicInfo):
return self.id >= other.id or self.state >= other.state or self.pid >= other.pid or self.enabled >= other.enabled
elif other == None:
return False
return NotImplemented
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_ServerDynamicInfo)
__repr__ = __str__
_M_IceGrid._t_ServerDynamicInfo = IcePy.defineStruct('::IceGrid::ServerDynamicInfo', ServerDynamicInfo, (), (
('id', (), IcePy._t_string),
('state', (), _M_IceGrid._t_ServerState),
('pid', (), IcePy._t_int),
('enabled', (), IcePy._t_bool)
))
_M_IceGrid.ServerDynamicInfo = ServerDynamicInfo
del ServerDynamicInfo
if not _M_IceGrid.__dict__.has_key('_t_ServerDynamicInfoSeq'):
_M_IceGrid._t_ServerDynamicInfoSeq = IcePy.defineSequence('::IceGrid::ServerDynamicInfoSeq', (), _M_IceGrid._t_ServerDynamicInfo)
if not _M_IceGrid.__dict__.has_key('AdapterDynamicInfo'):
_M_IceGrid.AdapterDynamicInfo = Ice.createTempClass()
class AdapterDynamicInfo(object):
'''Dynamic information about the state of an adapter.'''
def __init__(self, id='', proxy=None):
self.id = id
self.proxy = proxy
def __hash__(self):
_h = 0
_h = 5 * _h + __builtin__.hash(self.id)
_h = 5 * _h + __builtin__.hash(self.proxy)
return _h % 0x7fffffff
def __lt__(self, other):
if isinstance(other, _M_IceGrid.AdapterDynamicInfo):
return self.id < other.id or self.proxy < other.proxy
elif other == None:
return False
return NotImplemented
def __le__(self, other):
if isinstance(other, _M_IceGrid.AdapterDynamicInfo):
return self.id <= other.id or self.proxy <= other.proxy
elif other == None:
return False
return NotImplemented
def __eq__(self, other):
if isinstance(other, _M_IceGrid.AdapterDynamicInfo):
return self.id == other.id and self.proxy == other.proxy
elif other == None:
return False
return NotImplemented
def __ne__(self, other):
if isinstance(other, _M_IceGrid.AdapterDynamicInfo):
return self.id != other.id or self.proxy != other.proxy
elif other == None:
return True
return NotImplemented
def __gt__(self, other):
if isinstance(other, _M_IceGrid.AdapterDynamicInfo):
return self.id > other.id or self.proxy > other.proxy
elif other == None:
return False
return NotImplemented
def __ge__(self, other):
if isinstance(other, _M_IceGrid.AdapterDynamicInfo):
return self.id >= other.id or self.proxy >= other.proxy
elif other == None:
return False
return NotImplemented
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_AdapterDynamicInfo)
__repr__ = __str__
_M_IceGrid._t_AdapterDynamicInfo = IcePy.defineStruct('::IceGrid::AdapterDynamicInfo', AdapterDynamicInfo, (), (
('id', (), IcePy._t_string),
('proxy', (), IcePy._t_ObjectPrx)
))
_M_IceGrid.AdapterDynamicInfo = AdapterDynamicInfo
del AdapterDynamicInfo
if not _M_IceGrid.__dict__.has_key('_t_AdapterDynamicInfoSeq'):
_M_IceGrid._t_AdapterDynamicInfoSeq = IcePy.defineSequence('::IceGrid::AdapterDynamicInfoSeq', (), _M_IceGrid._t_AdapterDynamicInfo)
if not _M_IceGrid.__dict__.has_key('NodeDynamicInfo'):
_M_IceGrid.NodeDynamicInfo = Ice.createTempClass()
class NodeDynamicInfo(object):
'''Dynamic information about the state of a node.'''
def __init__(self, info=Ice._struct_marker, servers=None, adapters=None):
if info is Ice._struct_marker:
self.info = _M_IceGrid.NodeInfo()
else:
self.info = info
self.servers = servers
self.adapters = adapters
def __hash__(self):
_h = 0
_h = 5 * _h + __builtin__.hash(self.info)
if self.servers:
for _i0 in self.servers:
_h = 5 * _h + __builtin__.hash(_i0)
if self.adapters:
for _i1 in self.adapters:
_h = 5 * _h + __builtin__.hash(_i1)
return _h % 0x7fffffff
def __lt__(self, other):
if isinstance(other, _M_IceGrid.NodeDynamicInfo):
return self.info < other.info or self.servers < other.servers or self.adapters < other.adapters
elif other == None:
return False
return NotImplemented
def __le__(self, other):
if isinstance(other, _M_IceGrid.NodeDynamicInfo):
return self.info <= other.info or self.servers <= other.servers or self.adapters <= other.adapters
elif other == None:
return False
return NotImplemented
def __eq__(self, other):
if isinstance(other, _M_IceGrid.NodeDynamicInfo):
return self.info == other.info and self.servers == other.servers and self.adapters == other.adapters
elif other == None:
return False
return NotImplemented
def __ne__(self, other):
if isinstance(other, _M_IceGrid.NodeDynamicInfo):
return self.info != other.info or self.servers != other.servers or self.adapters != other.adapters
elif other == None:
return True
return NotImplemented
def __gt__(self, other):
if isinstance(other, _M_IceGrid.NodeDynamicInfo):
return self.info > other.info or self.servers > other.servers or self.adapters > other.adapters
elif other == None:
return False
return NotImplemented
def __ge__(self, other):
if isinstance(other, _M_IceGrid.NodeDynamicInfo):
return self.info >= other.info or self.servers >= other.servers or self.adapters >= other.adapters
elif other == None:
return False
return NotImplemented
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_NodeDynamicInfo)
__repr__ = __str__
_M_IceGrid._t_NodeDynamicInfo = IcePy.defineStruct('::IceGrid::NodeDynamicInfo', NodeDynamicInfo, (), (
('info', (), _M_IceGrid._t_NodeInfo),
('servers', (), _M_IceGrid._t_ServerDynamicInfoSeq),
('adapters', (), _M_IceGrid._t_AdapterDynamicInfoSeq)
))
_M_IceGrid.NodeDynamicInfo = NodeDynamicInfo
del NodeDynamicInfo
if not _M_IceGrid.__dict__.has_key('_t_NodeDynamicInfoSeq'):
_M_IceGrid._t_NodeDynamicInfoSeq = IcePy.defineSequence('::IceGrid::NodeDynamicInfoSeq', (), _M_IceGrid._t_NodeDynamicInfo)
if not _M_IceGrid.__dict__.has_key('NodeObserver'):
_M_IceGrid.NodeObserver = Ice.createTempClass()
class NodeObserver(Ice.Object):
'''The node observer interface. Observers should implement this
interface to receive information about the state of the IceGrid
nodes.'''
def __init__(self):
if __builtin__.type(self) == _M_IceGrid.NodeObserver:
raise RuntimeError('IceGrid.NodeObserver is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceGrid::NodeObserver')
def ice_id(self, current=None):
return '::IceGrid::NodeObserver'
def ice_staticId():
return '::IceGrid::NodeObserver'
ice_staticId = staticmethod(ice_staticId)
def nodeInit(self, nodes, current=None):
'''The nodeInit operation indicates the current state
of nodes. It is called after the registration of an observer.
Arguments:
nodes The current state of the nodes.'''
pass
def nodeUp(self, node, current=None):
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
pass
def nodeDown(self, name, current=None):
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
pass
def updateServer(self, node, updatedInfo, current=None):
'''The updateServer operation is called to notify an observer that
the state of a server changed.
Arguments:
node The node hosting the server.
updatedInfo The new server state.'''
pass
def updateAdapter(self, node, updatedInfo, current=None):
'''The updateAdapter operation is called to notify an observer that
the state of an adapter changed.
Arguments:
node The node hosting the adapter.
updatedInfo The new adapter state.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_NodeObserver)
__repr__ = __str__
_M_IceGrid.NodeObserverPrx = Ice.createTempClass()
class NodeObserverPrx(Ice.ObjectPrx):
'''The nodeInit operation indicates the current state
of nodes. It is called after the registration of an observer.
Arguments:
nodes The current state of the nodes.'''
def nodeInit(self, nodes, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeInit.invoke(self, ((nodes, ), _ctx))
'''The nodeInit operation indicates the current state
of nodes. It is called after the registration of an observer.
Arguments:
nodes The current state of the nodes.'''
def begin_nodeInit(self, nodes, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeInit.begin(self, ((nodes, ), _response, _ex, _sent, _ctx))
'''The nodeInit operation indicates the current state
of nodes. It is called after the registration of an observer.
Arguments:
nodes The current state of the nodes.'''
def end_nodeInit(self, _r):
return _M_IceGrid.NodeObserver._op_nodeInit.end(self, _r)
'''The nodeInit operation indicates the current state
of nodes. It is called after the registration of an observer.
Arguments:
nodes The current state of the nodes.'''
def nodeInit_async(self, _cb, nodes, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeInit.invokeAsync(self, (_cb, (nodes, ), _ctx))
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
def nodeUp(self, node, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeUp.invoke(self, ((node, ), _ctx))
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
def begin_nodeUp(self, node, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeUp.begin(self, ((node, ), _response, _ex, _sent, _ctx))
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
def end_nodeUp(self, _r):
return _M_IceGrid.NodeObserver._op_nodeUp.end(self, _r)
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
def nodeUp_async(self, _cb, node, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeUp.invokeAsync(self, (_cb, (node, ), _ctx))
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
def nodeDown(self, name, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeDown.invoke(self, ((name, ), _ctx))
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
def begin_nodeDown(self, name, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeDown.begin(self, ((name, ), _response, _ex, _sent, _ctx))
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
def end_nodeDown(self, _r):
return _M_IceGrid.NodeObserver._op_nodeDown.end(self, _r)
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
def nodeDown_async(self, _cb, name, _ctx=None):
return _M_IceGrid.NodeObserver._op_nodeDown.invokeAsync(self, (_cb, (name, ), _ctx))
'''The updateServer operation is called to notify an observer that
the state of a server changed.
Arguments:
node The node hosting the server.
updatedInfo The new server state.'''
def updateServer(self, node, updatedInfo, _ctx=None):
return _M_IceGrid.NodeObserver._op_updateServer.invoke(self, ((node, updatedInfo), _ctx))
'''The updateServer operation is called to notify an observer that
the state of a server changed.
Arguments:
node The node hosting the server.
updatedInfo The new server state.'''
def begin_updateServer(self, node, updatedInfo, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.NodeObserver._op_updateServer.begin(self, ((node, updatedInfo), _response, _ex, _sent, _ctx))
'''The updateServer operation is called to notify an observer that
the state of a server changed.
Arguments:
node The node hosting the server.
updatedInfo The new server state.'''
def end_updateServer(self, _r):
return _M_IceGrid.NodeObserver._op_updateServer.end(self, _r)
'''The updateServer operation is called to notify an observer that
the state of a server changed.
Arguments:
node The node hosting the server.
updatedInfo The new server state.'''
def updateServer_async(self, _cb, node, updatedInfo, _ctx=None):
return _M_IceGrid.NodeObserver._op_updateServer.invokeAsync(self, (_cb, (node, updatedInfo), _ctx))
'''The updateAdapter operation is called to notify an observer that
the state of an adapter changed.
Arguments:
node The node hosting the adapter.
updatedInfo The new adapter state.'''
def updateAdapter(self, node, updatedInfo, _ctx=None):
return _M_IceGrid.NodeObserver._op_updateAdapter.invoke(self, ((node, updatedInfo), _ctx))
'''The updateAdapter operation is called to notify an observer that
the state of an adapter changed.
Arguments:
node The node hosting the adapter.
updatedInfo The new adapter state.'''
def begin_updateAdapter(self, node, updatedInfo, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.NodeObserver._op_updateAdapter.begin(self, ((node, updatedInfo), _response, _ex, _sent, _ctx))
'''The updateAdapter operation is called to notify an observer that
the state of an adapter changed.
Arguments:
node The node hosting the adapter.
updatedInfo The new adapter state.'''
def end_updateAdapter(self, _r):
return _M_IceGrid.NodeObserver._op_updateAdapter.end(self, _r)
'''The updateAdapter operation is called to notify an observer that
the state of an adapter changed.
Arguments:
node The node hosting the adapter.
updatedInfo The new adapter state.'''
def updateAdapter_async(self, _cb, node, updatedInfo, _ctx=None):
return _M_IceGrid.NodeObserver._op_updateAdapter.invokeAsync(self, (_cb, (node, updatedInfo), _ctx))
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceGrid.NodeObserverPrx.ice_checkedCast(proxy, '::IceGrid::NodeObserver', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceGrid.NodeObserverPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
_M_IceGrid._t_NodeObserverPrx = IcePy.defineProxy('::IceGrid::NodeObserver', NodeObserverPrx)
_M_IceGrid._t_NodeObserver = IcePy.defineClass('::IceGrid::NodeObserver', NodeObserver, (), True, None, (), ())
NodeObserver._ice_type = _M_IceGrid._t_NodeObserver
NodeObserver._op_nodeInit = IcePy.Operation('nodeInit', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_NodeDynamicInfoSeq),), (), None, ())
NodeObserver._op_nodeUp = IcePy.Operation('nodeUp', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_NodeDynamicInfo),), (), None, ())
NodeObserver._op_nodeDown = IcePy.Operation('nodeDown', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string),), (), None, ())
NodeObserver._op_updateServer = IcePy.Operation('updateServer', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string), ((), _M_IceGrid._t_ServerDynamicInfo)), (), None, ())
NodeObserver._op_updateAdapter = IcePy.Operation('updateAdapter', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string), ((), _M_IceGrid._t_AdapterDynamicInfo)), (), None, ())
_M_IceGrid.NodeObserver = NodeObserver
del NodeObserver
_M_IceGrid.NodeObserverPrx = NodeObserverPrx
del NodeObserverPrx
if not _M_IceGrid.__dict__.has_key('ApplicationObserver'):
_M_IceGrid.ApplicationObserver = Ice.createTempClass()
class ApplicationObserver(Ice.Object):
'''The database observer interface. Observers should implement this
interface to receive information about the state of the IceGrid
registry database.'''
def __init__(self):
if __builtin__.type(self) == _M_IceGrid.ApplicationObserver:
raise RuntimeError('IceGrid.ApplicationObserver is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceGrid::ApplicationObserver')
def ice_id(self, current=None):
return '::IceGrid::ApplicationObserver'
def ice_staticId():
return '::IceGrid::ApplicationObserver'
ice_staticId = staticmethod(ice_staticId)
def applicationInit(self, serial, applications, current=None):
'''applicationInit is called after the registration
of an observer to indicate the state of the registry.
Arguments:
serial The current serial number of the registry
database. This serial number allows observers to make sure that
their internal state is synchronized with the registry.
applications The applications currently registered with
the registry.'''
pass
def applicationAdded(self, serial, desc, current=None):
'''The applicationAdded operation is called to notify an observer
that an application was added.
Arguments:
serial The new serial number of the registry database.
desc The descriptor of the new application.'''
pass
def applicationRemoved(self, serial, name, current=None):
'''The applicationRemoved operation is called to notify an observer
that an application was removed.
Arguments:
serial The new serial number of the registry database.
name The name of the application that was removed.'''
pass
def applicationUpdated(self, serial, desc, current=None):
'''The applicationUpdated operation is called to notify an observer
that an application was updated.
Arguments:
serial The new serial number of the registry database.
desc The descriptor of the update.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_ApplicationObserver)
__repr__ = __str__
_M_IceGrid.ApplicationObserverPrx = Ice.createTempClass()
class ApplicationObserverPrx(Ice.ObjectPrx):
'''applicationInit is called after the registration
of an observer to indicate the state of the registry.
Arguments:
serial The current serial number of the registry
database. This serial number allows observers to make sure that
their internal state is synchronized with the registry.
applications The applications currently registered with
the registry.'''
def applicationInit(self, serial, applications, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationInit.invoke(self, ((serial, applications), _ctx))
'''applicationInit is called after the registration
of an observer to indicate the state of the registry.
Arguments:
serial The current serial number of the registry
database. This serial number allows observers to make sure that
their internal state is synchronized with the registry.
applications The applications currently registered with
the registry.'''
def begin_applicationInit(self, serial, applications, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationInit.begin(self, ((serial, applications), _response, _ex, _sent, _ctx))
'''applicationInit is called after the registration
of an observer to indicate the state of the registry.
Arguments:
serial The current serial number of the registry
database. This serial number allows observers to make sure that
their internal state is synchronized with the registry.
applications The applications currently registered with
the registry.'''
def end_applicationInit(self, _r):
return _M_IceGrid.ApplicationObserver._op_applicationInit.end(self, _r)
'''applicationInit is called after the registration
of an observer to indicate the state of the registry.
Arguments:
serial The current serial number of the registry
database. This serial number allows observers to make sure that
their internal state is synchronized with the registry.
applications The applications currently registered with
the registry.'''
def applicationInit_async(self, _cb, serial, applications, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationInit.invokeAsync(self, (_cb, (serial, applications), _ctx))
'''The applicationAdded operation is called to notify an observer
that an application was added.
Arguments:
serial The new serial number of the registry database.
desc The descriptor of the new application.'''
def applicationAdded(self, serial, desc, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationAdded.invoke(self, ((serial, desc), _ctx))
'''The applicationAdded operation is called to notify an observer
that an application was added.
Arguments:
serial The new serial number of the registry database.
desc The descriptor of the new application.'''
def begin_applicationAdded(self, serial, desc, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationAdded.begin(self, ((serial, desc), _response, _ex, _sent, _ctx))
'''The applicationAdded operation is called to notify an observer
that an application was added.
Arguments:
serial The new serial number of the registry database.
desc The descriptor of the new application.'''
def end_applicationAdded(self, _r):
return _M_IceGrid.ApplicationObserver._op_applicationAdded.end(self, _r)
'''The applicationRemoved operation is called to notify an observer
that an application was removed.
Arguments:
serial The new serial number of the registry database.
name The name of the application that was removed.'''
def applicationRemoved(self, serial, name, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationRemoved.invoke(self, ((serial, name), _ctx))
'''The applicationRemoved operation is called to notify an observer
that an application was removed.
Arguments:
serial The new serial number of the registry database.
name The name of the application that was removed.'''
def begin_applicationRemoved(self, serial, name, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationRemoved.begin(self, ((serial, name), _response, _ex, _sent, _ctx))
'''The applicationRemoved operation is called to notify an observer
that an application was removed.
Arguments:
serial The new serial number of the registry database.
name The name of the application that was removed.'''
def end_applicationRemoved(self, _r):
return _M_IceGrid.ApplicationObserver._op_applicationRemoved.end(self, _r)
'''The applicationUpdated operation is called to notify an observer
that an application was updated.
Arguments:
serial The new serial number of the registry database.
desc The descriptor of the update.'''
def applicationUpdated(self, serial, desc, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationUpdated.invoke(self, ((serial, desc), _ctx))
'''The applicationUpdated operation is called to notify an observer
that an application was updated.
Arguments:
serial The new serial number of the registry database.
desc The descriptor of the update.'''
def begin_applicationUpdated(self, serial, desc, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.ApplicationObserver._op_applicationUpdated.begin(self, ((serial, desc), _response, _ex, _sent, _ctx))
'''The applicationUpdated operation is called to notify an observer
that an application was updated.
Arguments:
serial The new serial number of the registry database.
desc The descriptor of the update.'''
def end_applicationUpdated(self, _r):
return _M_IceGrid.ApplicationObserver._op_applicationUpdated.end(self, _r)
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceGrid.ApplicationObserverPrx.ice_checkedCast(proxy, '::IceGrid::ApplicationObserver', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceGrid.ApplicationObserverPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
_M_IceGrid._t_ApplicationObserverPrx = IcePy.defineProxy('::IceGrid::ApplicationObserver', ApplicationObserverPrx)
_M_IceGrid._t_ApplicationObserver = IcePy.defineClass('::IceGrid::ApplicationObserver', ApplicationObserver, (), True, None, (), ())
ApplicationObserver._ice_type = _M_IceGrid._t_ApplicationObserver
ApplicationObserver._op_applicationInit = IcePy.Operation('applicationInit', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_int), ((), _M_IceGrid._t_ApplicationInfoSeq)), (), None, ())
ApplicationObserver._op_applicationAdded = IcePy.Operation('applicationAdded', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_int), ((), _M_IceGrid._t_ApplicationInfo)), (), None, ())
ApplicationObserver._op_applicationRemoved = IcePy.Operation('applicationRemoved', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_int), ((), IcePy._t_string)), (), None, ())
ApplicationObserver._op_applicationUpdated = IcePy.Operation('applicationUpdated', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_int), ((), _M_IceGrid._t_ApplicationUpdateInfo)), (), None, ())
_M_IceGrid.ApplicationObserver = ApplicationObserver
del ApplicationObserver
_M_IceGrid.ApplicationObserverPrx = ApplicationObserverPrx
del ApplicationObserverPrx
if not _M_IceGrid.__dict__.has_key('AdapterObserver'):
_M_IceGrid.AdapterObserver = Ice.createTempClass()
class AdapterObserver(Ice.Object):
'''This interface allows applications to monitor the state of object
adapters that are registered with IceGrid.'''
def __init__(self):
if __builtin__.type(self) == _M_IceGrid.AdapterObserver:
raise RuntimeError('IceGrid.AdapterObserver is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceGrid::AdapterObserver')
def ice_id(self, current=None):
return '::IceGrid::AdapterObserver'
def ice_staticId():
return '::IceGrid::AdapterObserver'
ice_staticId = staticmethod(ice_staticId)
def adapterInit(self, adpts, current=None):
'''adapterInit is called after registration of
an observer to indicate the state of the registry.
Arguments:
adpts The adapters that were dynamically registered
with the registry (not through the deployment mechanism).'''
pass
def adapterAdded(self, info, current=None):
'''The adapterAdded operation is called to notify an observer when
a dynamically-registered adapter was added.
Arguments:
info The details of the new adapter.'''
pass
def adapterUpdated(self, info, current=None):
'''The adapterUpdated operation is called to notify an observer when
a dynamically-registered adapter was updated.
Arguments:
info The details of the updated adapter.'''
pass
def adapterRemoved(self, id, current=None):
'''The adapterRemoved operation is called to notify an observer when
a dynamically-registered adapter was removed.
Arguments:
id The ID of the removed adapter.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_AdapterObserver)
__repr__ = __str__
_M_IceGrid.AdapterObserverPrx = Ice.createTempClass()
class AdapterObserverPrx(Ice.ObjectPrx):
'''adapterInit is called after registration of
an observer to indicate the state of the registry.
Arguments:
adpts The adapters that were dynamically registered
with the registry (not through the deployment mechanism).'''
def adapterInit(self, adpts, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterInit.invoke(self, ((adpts, ), _ctx))
'''adapterInit is called after registration of
an observer to indicate the state of the registry.
Arguments:
adpts The adapters that were dynamically registered
with the registry (not through the deployment mechanism).'''
def begin_adapterInit(self, adpts, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterInit.begin(self, ((adpts, ), _response, _ex, _sent, _ctx))
'''adapterInit is called after registration of
an observer to indicate the state of the registry.
Arguments:
adpts The adapters that were dynamically registered
with the registry (not through the deployment mechanism).'''
def end_adapterInit(self, _r):
return _M_IceGrid.AdapterObserver._op_adapterInit.end(self, _r)
'''adapterInit is called after registration of
an observer to indicate the state of the registry.
Arguments:
adpts The adapters that were dynamically registered
with the registry (not through the deployment mechanism).'''
def adapterInit_async(self, _cb, adpts, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterInit.invokeAsync(self, (_cb, (adpts, ), _ctx))
'''The adapterAdded operation is called to notify an observer when
a dynamically-registered adapter was added.
Arguments:
info The details of the new adapter.'''
def adapterAdded(self, info, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterAdded.invoke(self, ((info, ), _ctx))
'''The adapterAdded operation is called to notify an observer when
a dynamically-registered adapter was added.
Arguments:
info The details of the new adapter.'''
def begin_adapterAdded(self, info, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterAdded.begin(self, ((info, ), _response, _ex, _sent, _ctx))
'''The adapterAdded operation is called to notify an observer when
a dynamically-registered adapter was added.
Arguments:
info The details of the new adapter.'''
def end_adapterAdded(self, _r):
return _M_IceGrid.AdapterObserver._op_adapterAdded.end(self, _r)
'''The adapterUpdated operation is called to notify an observer when
a dynamically-registered adapter was updated.
Arguments:
info The details of the updated adapter.'''
def adapterUpdated(self, info, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterUpdated.invoke(self, ((info, ), _ctx))
'''The adapterUpdated operation is called to notify an observer when
a dynamically-registered adapter was updated.
Arguments:
info The details of the updated adapter.'''
def begin_adapterUpdated(self, info, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterUpdated.begin(self, ((info, ), _response, _ex, _sent, _ctx))
'''The adapterUpdated operation is called to notify an observer when
a dynamically-registered adapter was updated.
Arguments:
info The details of the updated adapter.'''
def end_adapterUpdated(self, _r):
return _M_IceGrid.AdapterObserver._op_adapterUpdated.end(self, _r)
'''The adapterRemoved operation is called to notify an observer when
a dynamically-registered adapter was removed.
Arguments:
id The ID of the removed adapter.'''
def adapterRemoved(self, id, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterRemoved.invoke(self, ((id, ), _ctx))
'''The adapterRemoved operation is called to notify an observer when
a dynamically-registered adapter was removed.
Arguments:
id The ID of the removed adapter.'''
def begin_adapterRemoved(self, id, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.AdapterObserver._op_adapterRemoved.begin(self, ((id, ), _response, _ex, _sent, _ctx))
'''The adapterRemoved operation is called to notify an observer when
a dynamically-registered adapter was removed.
Arguments:
id The ID of the removed adapter.'''
def end_adapterRemoved(self, _r):
return _M_IceGrid.AdapterObserver._op_adapterRemoved.end(self, _r)
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceGrid.AdapterObserverPrx.ice_checkedCast(proxy, '::IceGrid::AdapterObserver', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceGrid.AdapterObserverPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
_M_IceGrid._t_AdapterObserverPrx = IcePy.defineProxy('::IceGrid::AdapterObserver', AdapterObserverPrx)
_M_IceGrid._t_AdapterObserver = IcePy.defineClass('::IceGrid::AdapterObserver', AdapterObserver, (), True, None, (), ())
AdapterObserver._ice_type = _M_IceGrid._t_AdapterObserver
AdapterObserver._op_adapterInit = IcePy.Operation('adapterInit', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_AdapterInfoSeq),), (), None, ())
AdapterObserver._op_adapterAdded = IcePy.Operation('adapterAdded', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_AdapterInfo),), (), None, ())
AdapterObserver._op_adapterUpdated = IcePy.Operation('adapterUpdated', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_AdapterInfo),), (), None, ())
AdapterObserver._op_adapterRemoved = IcePy.Operation('adapterRemoved', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string),), (), None, ())
_M_IceGrid.AdapterObserver = AdapterObserver
del AdapterObserver
_M_IceGrid.AdapterObserverPrx = AdapterObserverPrx
del AdapterObserverPrx
if not _M_IceGrid.__dict__.has_key('ObjectObserver'):
_M_IceGrid.ObjectObserver = Ice.createTempClass()
class ObjectObserver(Ice.Object):
'''This interface allows applications to monitor IceGrid well-known objects.'''
def __init__(self):
if __builtin__.type(self) == _M_IceGrid.ObjectObserver:
raise RuntimeError('IceGrid.ObjectObserver is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceGrid::ObjectObserver')
def ice_id(self, current=None):
return '::IceGrid::ObjectObserver'
def ice_staticId():
return '::IceGrid::ObjectObserver'
ice_staticId = staticmethod(ice_staticId)
def objectInit(self, objects, current=None):
'''objectInit is called after the registration of
an observer to indicate the state of the registry.
Arguments:
objects The objects registered with the Admin
interface (not through the deployment mechanism).'''
pass
def objectAdded(self, info, current=None):
'''The objectAdded operation is called to notify an observer when an
object was added to the Admin interface.
Arguments:
info The details of the added object.'''
pass
def objectUpdated(self, info, current=None):
'''objectUpdated is called to notify an observer when
an object registered with the Admin interface was updated.
Arguments:
info The details of the updated object.'''
pass
def objectRemoved(self, id, current=None):
'''objectRemoved is called to notify an observer when
an object registered with the Admin interface was removed.
Arguments:
id The identity of the removed object.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_ObjectObserver)
__repr__ = __str__
_M_IceGrid.ObjectObserverPrx = Ice.createTempClass()
class ObjectObserverPrx(Ice.ObjectPrx):
'''objectInit is called after the registration of
an observer to indicate the state of the registry.
Arguments:
objects The objects registered with the Admin
interface (not through the deployment mechanism).'''
def objectInit(self, objects, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectInit.invoke(self, ((objects, ), _ctx))
'''objectInit is called after the registration of
an observer to indicate the state of the registry.
Arguments:
objects The objects registered with the Admin
interface (not through the deployment mechanism).'''
def begin_objectInit(self, objects, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectInit.begin(self, ((objects, ), _response, _ex, _sent, _ctx))
'''objectInit is called after the registration of
an observer to indicate the state of the registry.
Arguments:
objects The objects registered with the Admin
interface (not through the deployment mechanism).'''
def end_objectInit(self, _r):
return _M_IceGrid.ObjectObserver._op_objectInit.end(self, _r)
'''objectInit is called after the registration of
an observer to indicate the state of the registry.
Arguments:
objects The objects registered with the Admin
interface (not through the deployment mechanism).'''
def objectInit_async(self, _cb, objects, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectInit.invokeAsync(self, (_cb, (objects, ), _ctx))
'''The objectAdded operation is called to notify an observer when an
object was added to the Admin interface.
Arguments:
info The details of the added object.'''
def objectAdded(self, info, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectAdded.invoke(self, ((info, ), _ctx))
'''The objectAdded operation is called to notify an observer when an
object was added to the Admin interface.
Arguments:
info The details of the added object.'''
def begin_objectAdded(self, info, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectAdded.begin(self, ((info, ), _response, _ex, _sent, _ctx))
'''The objectAdded operation is called to notify an observer when an
object was added to the Admin interface.
Arguments:
info The details of the added object.'''
def end_objectAdded(self, _r):
return _M_IceGrid.ObjectObserver._op_objectAdded.end(self, _r)
'''objectUpdated is called to notify an observer when
an object registered with the Admin interface was updated.
Arguments:
info The details of the updated object.'''
def objectUpdated(self, info, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectUpdated.invoke(self, ((info, ), _ctx))
'''objectUpdated is called to notify an observer when
an object registered with the Admin interface was updated.
Arguments:
info The details of the updated object.'''
def begin_objectUpdated(self, info, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectUpdated.begin(self, ((info, ), _response, _ex, _sent, _ctx))
'''objectUpdated is called to notify an observer when
an object registered with the Admin interface was updated.
Arguments:
info The details of the updated object.'''
def end_objectUpdated(self, _r):
return _M_IceGrid.ObjectObserver._op_objectUpdated.end(self, _r)
'''objectRemoved is called to notify an observer when
an object registered with the Admin interface was removed.
Arguments:
id The identity of the removed object.'''
def objectRemoved(self, id, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectRemoved.invoke(self, ((id, ), _ctx))
'''objectRemoved is called to notify an observer when
an object registered with the Admin interface was removed.
Arguments:
id The identity of the removed object.'''
def begin_objectRemoved(self, id, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.ObjectObserver._op_objectRemoved.begin(self, ((id, ), _response, _ex, _sent, _ctx))
'''objectRemoved is called to notify an observer when
an object registered with the Admin interface was removed.
Arguments:
id The identity of the removed object.'''
def end_objectRemoved(self, _r):
return _M_IceGrid.ObjectObserver._op_objectRemoved.end(self, _r)
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceGrid.ObjectObserverPrx.ice_checkedCast(proxy, '::IceGrid::ObjectObserver', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceGrid.ObjectObserverPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
_M_IceGrid._t_ObjectObserverPrx = IcePy.defineProxy('::IceGrid::ObjectObserver', ObjectObserverPrx)
_M_IceGrid._t_ObjectObserver = IcePy.defineClass('::IceGrid::ObjectObserver', ObjectObserver, (), True, None, (), ())
ObjectObserver._ice_type = _M_IceGrid._t_ObjectObserver
ObjectObserver._op_objectInit = IcePy.Operation('objectInit', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_ObjectInfoSeq),), (), None, ())
ObjectObserver._op_objectAdded = IcePy.Operation('objectAdded', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_ObjectInfo),), (), None, ())
ObjectObserver._op_objectUpdated = IcePy.Operation('objectUpdated', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_ObjectInfo),), (), None, ())
ObjectObserver._op_objectRemoved = IcePy.Operation('objectRemoved', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_Ice._t_Identity),), (), None, ())
_M_IceGrid.ObjectObserver = ObjectObserver
del ObjectObserver
_M_IceGrid.ObjectObserverPrx = ObjectObserverPrx
del ObjectObserverPrx
if not _M_IceGrid.__dict__.has_key('RegistryObserver'):
_M_IceGrid.RegistryObserver = Ice.createTempClass()
class RegistryObserver(Ice.Object):
'''This interface allows applications to monitor changes the state
of the registry.'''
def __init__(self):
if __builtin__.type(self) == _M_IceGrid.RegistryObserver:
raise RuntimeError('IceGrid.RegistryObserver is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceGrid::RegistryObserver')
def ice_id(self, current=None):
return '::IceGrid::RegistryObserver'
def ice_staticId():
return '::IceGrid::RegistryObserver'
ice_staticId = staticmethod(ice_staticId)
def registryInit(self, registries, current=None):
'''The registryInit operation is called after registration of
an observer to indicate the state of the registries.
Arguments:
registries The current state of the registries.'''
pass
def registryUp(self, node, current=None):
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
pass
def registryDown(self, name, current=None):
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_IceGrid._t_RegistryObserver)
__repr__ = __str__
_M_IceGrid.RegistryObserverPrx = Ice.createTempClass()
class RegistryObserverPrx(Ice.ObjectPrx):
'''The registryInit operation is called after registration of
an observer to indicate the state of the registries.
Arguments:
registries The current state of the registries.'''
def registryInit(self, registries, _ctx=None):
return _M_IceGrid.RegistryObserver._op_registryInit.invoke(self, ((registries, ), _ctx))
'''The registryInit operation is called after registration of
an observer to indicate the state of the registries.
Arguments:
registries The current state of the registries.'''
def begin_registryInit(self, registries, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.RegistryObserver._op_registryInit.begin(self, ((registries, ), _response, _ex, _sent, _ctx))
'''The registryInit operation is called after registration of
an observer to indicate the state of the registries.
Arguments:
registries The current state of the registries.'''
def end_registryInit(self, _r):
return _M_IceGrid.RegistryObserver._op_registryInit.end(self, _r)
'''The registryInit operation is called after registration of
an observer to indicate the state of the registries.
Arguments:
registries The current state of the registries.'''
def registryInit_async(self, _cb, registries, _ctx=None):
return _M_IceGrid.RegistryObserver._op_registryInit.invokeAsync(self, (_cb, (registries, ), _ctx))
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
def registryUp(self, node, _ctx=None):
return _M_IceGrid.RegistryObserver._op_registryUp.invoke(self, ((node, ), _ctx))
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
def begin_registryUp(self, node, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.RegistryObserver._op_registryUp.begin(self, ((node, ), _response, _ex, _sent, _ctx))
'''The nodeUp operation is called to notify an observer that a node
came up.
Arguments:
node The node state.'''
def end_registryUp(self, _r):
return _M_IceGrid.RegistryObserver._op_registryUp.end(self, _r)
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
def registryDown(self, name, _ctx=None):
return _M_IceGrid.RegistryObserver._op_registryDown.invoke(self, ((name, ), _ctx))
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
def begin_registryDown(self, name, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_IceGrid.RegistryObserver._op_registryDown.begin(self, ((name, ), _response, _ex, _sent, _ctx))
'''The nodeDown operation is called to notify an observer that a node
went down.
Arguments:
name The node name.'''
def end_registryDown(self, _r):
return _M_IceGrid.RegistryObserver._op_registryDown.end(self, _r)
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_IceGrid.RegistryObserverPrx.ice_checkedCast(proxy, '::IceGrid::RegistryObserver', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_IceGrid.RegistryObserverPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
_M_IceGrid._t_RegistryObserverPrx = IcePy.defineProxy('::IceGrid::RegistryObserver', RegistryObserverPrx)
_M_IceGrid._t_RegistryObserver = IcePy.defineClass('::IceGrid::RegistryObserver', RegistryObserver, (), True, None, (), ())
RegistryObserver._ice_type = _M_IceGrid._t_RegistryObserver
RegistryObserver._op_registryInit = IcePy.Operation('registryInit', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_RegistryInfoSeq),), (), None, ())
RegistryObserver._op_registryUp = IcePy.Operation('registryUp', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_IceGrid._t_RegistryInfo),), (), None, ())
RegistryObserver._op_registryDown = IcePy.Operation('registryDown', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string),), (), None, ())
_M_IceGrid.RegistryObserver = RegistryObserver
del RegistryObserver
_M_IceGrid.RegistryObserverPrx = RegistryObserverPrx
del RegistryObserverPrx
# End of module IceGrid
Ice.sliceChecksums["::IceGrid::AdapterDynamicInfo"] = "b371e9a58f115e6ebfbcda735fee57f7"
Ice.sliceChecksums["::IceGrid::AdapterDynamicInfoSeq"] = "54465843167a2f93fa96d13b7f41ea32"
Ice.sliceChecksums["::IceGrid::AdapterObserver"] = "7f4ed59e236da9d6c35ad7e6ad9cb0"
Ice.sliceChecksums["::IceGrid::ApplicationObserver"] = "2862cdcba54714282f68b13a8fb4ae"
Ice.sliceChecksums["::IceGrid::NodeDynamicInfo"] = "3ad52341f32973212d26a9a6dda08b"
Ice.sliceChecksums["::IceGrid::NodeDynamicInfoSeq"] = "f61633c5e3992f718dba78b7f165c2"
Ice.sliceChecksums["::IceGrid::NodeObserver"] = "e06c1ad6807d2876de9e818855a65738"
Ice.sliceChecksums["::IceGrid::ObjectObserver"] = "5364683a872f127e46cc5e215d98c3c"
Ice.sliceChecksums["::IceGrid::RegistryObserver"] = "fd83b1558e7c77f2d322b25449518"
Ice.sliceChecksums["::IceGrid::ServerDynamicInfo"] = "fd4b9177ca54ae4688b51fa51d6870"
Ice.sliceChecksums["::IceGrid::ServerDynamicInfoSeq"] = "e3fda58997d5cd946e78cae739174cb"
|