/usr/lib/python2.7/dist-packages/IceBox/IceBox_ice.py is in python-zeroc-ice 3.7.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 | # -*- coding: utf-8 -*-
# **********************************************************************
#
# Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
#
# Ice version 3.7.0
#
# <auto-generated>
#
# Generated from file `IceBox.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
from sys import version_info as _version_info_
import Ice, IcePy
import Ice.BuiltinSequences_ice
import Ice.CommunicatorF_ice
import Ice.PropertiesF_ice
import Ice.SliceChecksumDict_ice
# Included module Ice
_M_Ice = Ice.openModule('Ice')
# Start of module IceBox
_M_IceBox = Ice.openModule('IceBox')
__name__ = 'IceBox'
_M_IceBox.__doc__ = """
IceBox is an application server specifically for Ice
applications. IceBox can easily run and administer Ice services
that are dynamically loaded as a DLL, shared library, or Java
class.
"""
if 'FailureException' not in _M_IceBox.__dict__:
_M_IceBox.FailureException = Ice.createTempClass()
class FailureException(Ice.LocalException):
"""
This exception is a general failure notification. It is thrown
for errors such as a service encountering an error during
initialization, or the service manager being unable
to load a service executable.
Members:
reason -- The reason for the failure.
"""
def __init__(self, reason=''):
self.reason = reason
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_id = '::IceBox::FailureException'
_M_IceBox._t_FailureException = IcePy.defineException('::IceBox::FailureException', FailureException, (), False, None, (('reason', (), IcePy._t_string, False, 0),))
FailureException._ice_type = _M_IceBox._t_FailureException
_M_IceBox.FailureException = FailureException
del FailureException
if 'AlreadyStartedException' not in _M_IceBox.__dict__:
_M_IceBox.AlreadyStartedException = Ice.createTempClass()
class AlreadyStartedException(Ice.UserException):
"""
This exception is thrown if an attempt is made to start an
already-started service.
"""
def __init__(self):
pass
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_id = '::IceBox::AlreadyStartedException'
_M_IceBox._t_AlreadyStartedException = IcePy.defineException('::IceBox::AlreadyStartedException', AlreadyStartedException, (), False, None, ())
AlreadyStartedException._ice_type = _M_IceBox._t_AlreadyStartedException
_M_IceBox.AlreadyStartedException = AlreadyStartedException
del AlreadyStartedException
if 'AlreadyStoppedException' not in _M_IceBox.__dict__:
_M_IceBox.AlreadyStoppedException = Ice.createTempClass()
class AlreadyStoppedException(Ice.UserException):
"""
This exception is thrown if an attempt is made to stop an
already-stopped service.
"""
def __init__(self):
pass
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_id = '::IceBox::AlreadyStoppedException'
_M_IceBox._t_AlreadyStoppedException = IcePy.defineException('::IceBox::AlreadyStoppedException', AlreadyStoppedException, (), False, None, ())
AlreadyStoppedException._ice_type = _M_IceBox._t_AlreadyStoppedException
_M_IceBox.AlreadyStoppedException = AlreadyStoppedException
del AlreadyStoppedException
if 'NoSuchServiceException' not in _M_IceBox.__dict__:
_M_IceBox.NoSuchServiceException = Ice.createTempClass()
class NoSuchServiceException(Ice.UserException):
"""
This exception is thrown if a service name does not refer
to an existing service.
"""
def __init__(self):
pass
def __str__(self):
return IcePy.stringifyException(self)
__repr__ = __str__
_ice_id = '::IceBox::NoSuchServiceException'
_M_IceBox._t_NoSuchServiceException = IcePy.defineException('::IceBox::NoSuchServiceException', NoSuchServiceException, (), False, None, ())
NoSuchServiceException._ice_type = _M_IceBox._t_NoSuchServiceException
_M_IceBox.NoSuchServiceException = NoSuchServiceException
del NoSuchServiceException
if 'Service' not in _M_IceBox.__dict__:
_M_IceBox.Service = Ice.createTempClass()
class Service(object):
"""
An application service managed by a ServiceManager.
"""
def __init__(self):
if Ice.getType(self) == _M_IceBox.Service:
raise RuntimeError('IceBox.Service is an abstract class')
def start(self, name, communicator, args):
"""
Start the service. The given communicator is created by the
ServiceManager for use by the service. This communicator may
also be used by other services, depending on the service
configuration.
The ServiceManager owns this communicator, and is
responsible for destroying it.
Arguments:
name -- The service's name, as determined by the configuration.
communicator -- A communicator for use by the service.
args -- The service arguments that were not converted into properties.
Throws:
FailureException -- Raised if start failed.
"""
raise NotImplementedError("method 'start' not implemented")
def stop(self):
"""
Stop the service.
"""
raise NotImplementedError("method 'stop' not implemented")
def __str__(self):
return IcePy.stringify(self, _M_IceBox._t_Service)
__repr__ = __str__
_M_IceBox._t_Service = IcePy.defineValue('::IceBox::Service', Service, -1, (), False, True, None, ())
Service._ice_type = _M_IceBox._t_Service
_M_IceBox.Service = Service
del Service
_M_IceBox._t_ServiceObserver = IcePy.defineValue('::IceBox::ServiceObserver', Ice.Value, -1, (), False, True, None, ())
if 'ServiceObserverPrx' not in _M_IceBox.__dict__:
_M_IceBox.ServiceObserverPrx = Ice.createTempClass()
class ServiceObserverPrx(Ice.ObjectPrx):
def servicesStarted(self, services, context=None):
return _M_IceBox.ServiceObserver._op_servicesStarted.invoke(self, ((services, ), context))
def servicesStartedAsync(self, services, context=None):
return _M_IceBox.ServiceObserver._op_servicesStarted.invokeAsync(self, ((services, ), context))
def begin_servicesStarted(self, services, _response=None, _ex=None, _sent=None, context=None):
return _M_IceBox.ServiceObserver._op_servicesStarted.begin(self, ((services, ), _response, _ex, _sent, context))
def end_servicesStarted(self, _r):
return _M_IceBox.ServiceObserver._op_servicesStarted.end(self, _r)
def servicesStopped(self, services, context=None):
return _M_IceBox.ServiceObserver._op_servicesStopped.invoke(self, ((services, ), context))
def servicesStoppedAsync(self, services, context=None):
return _M_IceBox.ServiceObserver._op_servicesStopped.invokeAsync(self, ((services, ), context))
def begin_servicesStopped(self, services, _response=None, _ex=None, _sent=None, context=None):
return _M_IceBox.ServiceObserver._op_servicesStopped.begin(self, ((services, ), _response, _ex, _sent, context))
def end_servicesStopped(self, _r):
return _M_IceBox.ServiceObserver._op_servicesStopped.end(self, _r)
@staticmethod
def checkedCast(proxy, facetOrContext=None, context=None):
return _M_IceBox.ServiceObserverPrx.ice_checkedCast(proxy, '::IceBox::ServiceObserver', facetOrContext, context)
@staticmethod
def uncheckedCast(proxy, facet=None):
return _M_IceBox.ServiceObserverPrx.ice_uncheckedCast(proxy, facet)
@staticmethod
def ice_staticId():
return '::IceBox::ServiceObserver'
_M_IceBox._t_ServiceObserverPrx = IcePy.defineProxy('::IceBox::ServiceObserver', ServiceObserverPrx)
_M_IceBox.ServiceObserverPrx = ServiceObserverPrx
del ServiceObserverPrx
_M_IceBox.ServiceObserver = Ice.createTempClass()
class ServiceObserver(Ice.Object):
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceBox::ServiceObserver')
def ice_id(self, current=None):
return '::IceBox::ServiceObserver'
@staticmethod
def ice_staticId():
return '::IceBox::ServiceObserver'
def servicesStarted(self, services, current=None):
raise NotImplementedError("servant method 'servicesStarted' not implemented")
def servicesStopped(self, services, current=None):
raise NotImplementedError("servant method 'servicesStopped' not implemented")
def __str__(self):
return IcePy.stringify(self, _M_IceBox._t_ServiceObserverDisp)
__repr__ = __str__
_M_IceBox._t_ServiceObserverDisp = IcePy.defineClass('::IceBox::ServiceObserver', ServiceObserver, (), None, ())
ServiceObserver._ice_type = _M_IceBox._t_ServiceObserverDisp
ServiceObserver._op_servicesStarted = IcePy.Operation('servicesStarted', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_Ice._t_StringSeq, False, 0),), (), None, ())
ServiceObserver._op_servicesStopped = IcePy.Operation('servicesStopped', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_Ice._t_StringSeq, False, 0),), (), None, ())
_M_IceBox.ServiceObserver = ServiceObserver
del ServiceObserver
_M_IceBox._t_ServiceManager = IcePy.defineValue('::IceBox::ServiceManager', Ice.Value, -1, (), False, True, None, ())
if 'ServiceManagerPrx' not in _M_IceBox.__dict__:
_M_IceBox.ServiceManagerPrx = Ice.createTempClass()
class ServiceManagerPrx(Ice.ObjectPrx):
"""
Returns the checksums for the IceBox Slice definitions.
Arguments:
context -- The request context for the invocation.
Returns: A dictionary mapping Slice type ids to their checksums.
"""
def getSliceChecksums(self, context=None):
return _M_IceBox.ServiceManager._op_getSliceChecksums.invoke(self, ((), context))
"""
Returns the checksums for the IceBox Slice definitions.
Arguments:
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def getSliceChecksumsAsync(self, context=None):
return _M_IceBox.ServiceManager._op_getSliceChecksums.invokeAsync(self, ((), context))
"""
Returns the checksums for the IceBox Slice definitions.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_getSliceChecksums(self, _response=None, _ex=None, _sent=None, context=None):
return _M_IceBox.ServiceManager._op_getSliceChecksums.begin(self, ((), _response, _ex, _sent, context))
"""
Returns the checksums for the IceBox Slice definitions.
Arguments:
Returns: A dictionary mapping Slice type ids to their checksums.
"""
def end_getSliceChecksums(self, _r):
return _M_IceBox.ServiceManager._op_getSliceChecksums.end(self, _r)
"""
Start an individual service.
Arguments:
service -- The service name.
context -- The request context for the invocation.
Throws:
AlreadyStartedException -- If the service is already running.
NoSuchServiceException -- If no service could be found with the given name.
"""
def startService(self, service, context=None):
return _M_IceBox.ServiceManager._op_startService.invoke(self, ((service, ), context))
"""
Start an individual service.
Arguments:
service -- The service name.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def startServiceAsync(self, service, context=None):
return _M_IceBox.ServiceManager._op_startService.invokeAsync(self, ((service, ), context))
"""
Start an individual service.
Arguments:
service -- The service name.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_startService(self, service, _response=None, _ex=None, _sent=None, context=None):
return _M_IceBox.ServiceManager._op_startService.begin(self, ((service, ), _response, _ex, _sent, context))
"""
Start an individual service.
Arguments:
service -- The service name.
Throws:
AlreadyStartedException -- If the service is already running.
NoSuchServiceException -- If no service could be found with the given name.
"""
def end_startService(self, _r):
return _M_IceBox.ServiceManager._op_startService.end(self, _r)
"""
Stop an individual service.
Arguments:
service -- The service name.
context -- The request context for the invocation.
Throws:
AlreadyStoppedException -- If the service is already stopped.
NoSuchServiceException -- If no service could be found with the given name.
"""
def stopService(self, service, context=None):
return _M_IceBox.ServiceManager._op_stopService.invoke(self, ((service, ), context))
"""
Stop an individual service.
Arguments:
service -- The service name.
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def stopServiceAsync(self, service, context=None):
return _M_IceBox.ServiceManager._op_stopService.invokeAsync(self, ((service, ), context))
"""
Stop an individual service.
Arguments:
service -- The service name.
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_stopService(self, service, _response=None, _ex=None, _sent=None, context=None):
return _M_IceBox.ServiceManager._op_stopService.begin(self, ((service, ), _response, _ex, _sent, context))
"""
Stop an individual service.
Arguments:
service -- The service name.
Throws:
AlreadyStoppedException -- If the service is already stopped.
NoSuchServiceException -- If no service could be found with the given name.
"""
def end_stopService(self, _r):
return _M_IceBox.ServiceManager._op_stopService.end(self, _r)
"""
Registers a new observer with the ServiceManager.
Arguments:
observer -- The new observer
context -- The request context for the invocation.
"""
def addObserver(self, observer, context=None):
return _M_IceBox.ServiceManager._op_addObserver.invoke(self, ((observer, ), context))
"""
Registers a new observer with the ServiceManager.
Arguments:
observer -- The new observer
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def addObserverAsync(self, observer, context=None):
return _M_IceBox.ServiceManager._op_addObserver.invokeAsync(self, ((observer, ), context))
"""
Registers a new observer with the ServiceManager.
Arguments:
observer -- The new observer
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_addObserver(self, observer, _response=None, _ex=None, _sent=None, context=None):
return _M_IceBox.ServiceManager._op_addObserver.begin(self, ((observer, ), _response, _ex, _sent, context))
"""
Registers a new observer with the ServiceManager.
Arguments:
observer -- The new observer
"""
def end_addObserver(self, _r):
return _M_IceBox.ServiceManager._op_addObserver.end(self, _r)
"""
Shut down all services. This causes Service#stop to be
invoked on all configured services.
Arguments:
context -- The request context for the invocation.
"""
def shutdown(self, context=None):
return _M_IceBox.ServiceManager._op_shutdown.invoke(self, ((), context))
"""
Shut down all services. This causes Service#stop to be
invoked on all configured services.
Arguments:
context -- The request context for the invocation.
Returns: A future object for the invocation.
"""
def shutdownAsync(self, context=None):
return _M_IceBox.ServiceManager._op_shutdown.invokeAsync(self, ((), context))
"""
Shut down all services. This causes Service#stop to be
invoked on all configured services.
Arguments:
_response -- The asynchronous response callback.
_ex -- The asynchronous exception callback.
_sent -- The asynchronous sent callback.
context -- The request context for the invocation.
Returns: An asynchronous result object for the invocation.
"""
def begin_shutdown(self, _response=None, _ex=None, _sent=None, context=None):
return _M_IceBox.ServiceManager._op_shutdown.begin(self, ((), _response, _ex, _sent, context))
"""
Shut down all services. This causes Service#stop to be
invoked on all configured services.
Arguments:
"""
def end_shutdown(self, _r):
return _M_IceBox.ServiceManager._op_shutdown.end(self, _r)
@staticmethod
def checkedCast(proxy, facetOrContext=None, context=None):
return _M_IceBox.ServiceManagerPrx.ice_checkedCast(proxy, '::IceBox::ServiceManager', facetOrContext, context)
@staticmethod
def uncheckedCast(proxy, facet=None):
return _M_IceBox.ServiceManagerPrx.ice_uncheckedCast(proxy, facet)
@staticmethod
def ice_staticId():
return '::IceBox::ServiceManager'
_M_IceBox._t_ServiceManagerPrx = IcePy.defineProxy('::IceBox::ServiceManager', ServiceManagerPrx)
_M_IceBox.ServiceManagerPrx = ServiceManagerPrx
del ServiceManagerPrx
_M_IceBox.ServiceManager = Ice.createTempClass()
class ServiceManager(Ice.Object):
def ice_ids(self, current=None):
return ('::Ice::Object', '::IceBox::ServiceManager')
def ice_id(self, current=None):
return '::IceBox::ServiceManager'
@staticmethod
def ice_staticId():
return '::IceBox::ServiceManager'
def getSliceChecksums(self, current=None):
"""
Returns the checksums for the IceBox Slice definitions.
Arguments:
current -- The Current object for the invocation.
Returns: A future object for the invocation.
"""
raise NotImplementedError("servant method 'getSliceChecksums' not implemented")
def startService(self, service, current=None):
"""
Start an individual service.
Arguments:
service -- The service name.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
Throws:
AlreadyStartedException -- If the service is already running.
NoSuchServiceException -- If no service could be found with the given name.
"""
raise NotImplementedError("servant method 'startService' not implemented")
def stopService(self, service, current=None):
"""
Stop an individual service.
Arguments:
service -- The service name.
current -- The Current object for the invocation.
Returns: A future object for the invocation.
Throws:
AlreadyStoppedException -- If the service is already stopped.
NoSuchServiceException -- If no service could be found with the given name.
"""
raise NotImplementedError("servant method 'stopService' not implemented")
def addObserver(self, observer, current=None):
"""
Registers a new observer with the ServiceManager.
Arguments:
observer -- The new observer
current -- The Current object for the invocation.
Returns: A future object for the invocation.
"""
raise NotImplementedError("servant method 'addObserver' not implemented")
def shutdown(self, current=None):
"""
Shut down all services. This causes Service#stop to be
invoked on all configured services.
Arguments:
current -- The Current object for the invocation.
Returns: A future object for the invocation.
"""
raise NotImplementedError("servant method 'shutdown' not implemented")
def __str__(self):
return IcePy.stringify(self, _M_IceBox._t_ServiceManagerDisp)
__repr__ = __str__
_M_IceBox._t_ServiceManagerDisp = IcePy.defineClass('::IceBox::ServiceManager', ServiceManager, (), None, ())
ServiceManager._ice_type = _M_IceBox._t_ServiceManagerDisp
ServiceManager._op_getSliceChecksums = IcePy.Operation('getSliceChecksums', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (), ((), _M_Ice._t_SliceChecksumDict, False, 0), ())
ServiceManager._op_startService = IcePy.Operation('startService', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), IcePy._t_string, False, 0),), (), None, (_M_IceBox._t_AlreadyStartedException, _M_IceBox._t_NoSuchServiceException))
ServiceManager._op_stopService = IcePy.Operation('stopService', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), IcePy._t_string, False, 0),), (), None, (_M_IceBox._t_AlreadyStoppedException, _M_IceBox._t_NoSuchServiceException))
ServiceManager._op_addObserver = IcePy.Operation('addObserver', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_IceBox._t_ServiceObserverPrx, False, 0),), (), None, ())
ServiceManager._op_shutdown = IcePy.Operation('shutdown', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (), (), None, ())
_M_IceBox.ServiceManager = ServiceManager
del ServiceManager
# End of module IceBox
Ice.sliceChecksums["::IceBox::AlreadyStartedException"] = "d5b097af3221b37482d5f175502abf62"
Ice.sliceChecksums["::IceBox::AlreadyStoppedException"] = "281d493a84d674b3a4335d6afc2c16"
Ice.sliceChecksums["::IceBox::NoSuchServiceException"] = "5957f1c582d9aebad557cbdb7820d4"
Ice.sliceChecksums["::IceBox::ServiceManager"] = "df3a42670c3ce4ef67d6125a5d04d4c"
Ice.sliceChecksums["::IceBox::ServiceObserver"] = "f657781cda7438532a6c33e95988479c"
|