[CalendarServer-changes] [12034] CalendarServer/trunk/twext/application/masterchild.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:20:26 PDT 2014
Revision: 12034
http://trac.calendarserver.org//changeset/12034
Author: wsanchez at apple.com
Date: 2013-12-04 17:35:41 -0800 (Wed, 04 Dec 2013)
Log Message:
-----------
docs
Modified Paths:
--------------
CalendarServer/trunk/twext/application/masterchild.py
Modified: CalendarServer/trunk/twext/application/masterchild.py
===================================================================
--- CalendarServer/trunk/twext/application/masterchild.py 2013-12-05 01:25:30 UTC (rev 12033)
+++ CalendarServer/trunk/twext/application/masterchild.py 2013-12-05 01:35:41 UTC (rev 12034)
@@ -96,6 +96,10 @@
class SpawningInheritingProtocolFactory(InheritingProtocolFactory):
+ """
+ Protocol factory for a spawning service.
+ """
+
def __init__(self, dispatcher, spawningService, description):
super(SpawningInheritingProtocolFactory, self).__init__(
dispatcher, description
@@ -111,6 +115,10 @@
@implementer(IServiceMaker)
class MasterServiceMaker(object):
+ """
+ Master process service maker.
+ """
+
def makeService(self, options):
service = MultiService()
@@ -138,6 +146,10 @@
class ChildProcess(object):
+ """
+ Child process.
+ """
+
def __init__(self, transport, protocol):
self.transport = transport
self.protocol = protocol
@@ -145,6 +157,10 @@
class ChildSpawningService(Service, object):
+ """
+ Service that spawns children as necessary.
+ """
+
log = Logger()
pluginName = b"child"
@@ -258,8 +274,13 @@
class ChildProcessProtocol(ProcessProtocol, object):
+ """
+ Process protocol for child processes.
+ """
+
log = Logger()
+
def __init__(self, service, inheritedSocket):
self.service = service
self.inheritedSocket = inheritedSocket
@@ -326,6 +347,10 @@
@implementer(IServiceMaker)
class ChildServiceMaker(object):
+ """
+ Child process service maker.
+ """
+
def makeService(self, options):
factory = ServerFactory.forProtocol(options["protocol"])
service = ChildService(options["inherited-fd"], factory)
@@ -334,6 +359,10 @@
class ChildService(Service, object):
+ """
+ Service for child processes.
+ """
+
def __init__(self, fd, protocolFactory):
self.fd = fd
self.protocolFactory = protocolFactory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/1b67816a/attachment.html>
More information about the calendarserver-changes
mailing list