/usr/share/pyshared/Ice_Process_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 | # **********************************************************************
#
# 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 `Process.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
import Ice, IcePy, __builtin__
# Start of module Ice
_M_Ice = Ice.openModule('Ice')
__name__ = 'Ice'
if not _M_Ice.__dict__.has_key('Process'):
_M_Ice.Process = Ice.createTempClass()
class Process(Ice.Object):
'''An administrative interface for process management. Managed servers must
implement this interface.
A servant implementing this interface is a potential target
for denial-of-service attacks, therefore proper security precautions
should be taken. For example, the servant can use a UUID to make its
identity harder to guess, and be registered in an object adapter with
a secured endpoint.'''
def __init__(self):
if __builtin__.type(self) == _M_Ice.Process:
raise RuntimeError('Ice.Process is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::Ice::Process')
def ice_id(self, current=None):
return '::Ice::Process'
def ice_staticId():
return '::Ice::Process'
ice_staticId = staticmethod(ice_staticId)
def shutdown(self, current=None):
'''Initiate a graceful shut-down.'''
pass
def writeMessage(self, message, fd, current=None):
'''Write a message on the process' stdout or stderr.
Arguments:
message The message.
fd 1 for stdout, 2 for stderr.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_Ice._t_Process)
__repr__ = __str__
_M_Ice.ProcessPrx = Ice.createTempClass()
class ProcessPrx(Ice.ObjectPrx):
'''Initiate a graceful shut-down.'''
def shutdown(self, _ctx=None):
return _M_Ice.Process._op_shutdown.invoke(self, ((), _ctx))
'''Initiate a graceful shut-down.'''
def begin_shutdown(self, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_Ice.Process._op_shutdown.begin(self, ((), _response, _ex, _sent, _ctx))
'''Initiate a graceful shut-down.'''
def end_shutdown(self, _r):
return _M_Ice.Process._op_shutdown.end(self, _r)
'''Initiate a graceful shut-down.'''
def shutdown_async(self, _cb, _ctx=None):
return _M_Ice.Process._op_shutdown.invokeAsync(self, (_cb, (), _ctx))
'''Write a message on the process' stdout or stderr.
Arguments:
message The message.
fd 1 for stdout, 2 for stderr.'''
def writeMessage(self, message, fd, _ctx=None):
return _M_Ice.Process._op_writeMessage.invoke(self, ((message, fd), _ctx))
'''Write a message on the process' stdout or stderr.
Arguments:
message The message.
fd 1 for stdout, 2 for stderr.'''
def begin_writeMessage(self, message, fd, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_Ice.Process._op_writeMessage.begin(self, ((message, fd), _response, _ex, _sent, _ctx))
'''Write a message on the process' stdout or stderr.
Arguments:
message The message.
fd 1 for stdout, 2 for stderr.'''
def end_writeMessage(self, _r):
return _M_Ice.Process._op_writeMessage.end(self, _r)
'''Write a message on the process' stdout or stderr.
Arguments:
message The message.
fd 1 for stdout, 2 for stderr.'''
def writeMessage_async(self, _cb, message, fd, _ctx=None):
return _M_Ice.Process._op_writeMessage.invokeAsync(self, (_cb, (message, fd), _ctx))
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_Ice.ProcessPrx.ice_checkedCast(proxy, '::Ice::Process', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_Ice.ProcessPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
_M_Ice._t_ProcessPrx = IcePy.defineProxy('::Ice::Process', ProcessPrx)
_M_Ice._t_Process = IcePy.defineClass('::Ice::Process', Process, (), True, None, (), ())
Process._ice_type = _M_Ice._t_Process
Process._op_shutdown = IcePy.Operation('shutdown', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (), (), None, ())
Process._op_writeMessage = IcePy.Operation('writeMessage', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string), ((), IcePy._t_int)), (), None, ())
_M_Ice.Process = Process
del Process
_M_Ice.ProcessPrx = ProcessPrx
del ProcessPrx
# End of module Ice
|