1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>twisted.application.service.Service</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
<!-- =========== START OF NAVBAR =========== -->
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
15
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
16
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
17
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
18
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
19
<th class="navbar" align="right" width="100%">
20
<table border="0" cellpadding="0" cellspacing="0">
21
<tr><th class="navbar" align="center">
23
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
24
</p></th></tr></table>
28
<table width="100%" cellpadding="0" cellspacing="0">
31
<font size="-1"><b class="breadcrumbs">
32
<a href="twisted.html">Package twisted</a> ::
33
<a href="twisted.application.html">Package application</a> ::
34
<a href="twisted.application.service.html">Module service</a> ::
38
<td><table cellpadding="0" cellspacing="0">
39
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="twisted.application.service.Service.html" target="_top">no frames</a>]</font></td></tr>
43
<!-- =========== START OF CLASS DESCRIPTION =========== -->
44
<h2 class="class">Class Service</h2>
46
<dl><dt><b>Known Subclasses:</b></dt>
48
<a href="twisted.trial.remote._Demo.html"><code>_Demo</code></a>,
49
<a href="twisted.application.internet._VolatileDataService.html"><code>_VolatileDataService</code></a>,
50
<a href="twisted.application.service.MultiService.html"><code>MultiService</code></a>,
51
<a href="twisted.runner.procmon.ProcessMonitor.html"><code>ProcessMonitor</code></a>,
52
<a href="twisted.names.secondary.SecondaryAuthorityService.html"><code>SecondaryAuthorityService</code></a>,
53
<a href="twisted.manhole.service.Service.html"><code>Service</code></a>,
54
<a href="twisted.protocols.jabber.component.Service.html"><code>Service</code></a></dd></dl>
58
<p>Base class for services</p>
59
Most services should inherit from this class. It handles the
60
book-keeping reponsibilities of starting and stopping, as well as not
61
serializing this book-keeping information.
65
<!-- =========== START OF METHOD SUMMARY =========== -->
66
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
67
<tr bgcolor="#70b0f0" class="summary">
68
<th colspan="2">Method Summary</th></tr>
69
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
70
<td><code><a name="__getstate__"></a><span class="summary-sig"><span class="summary-sig-name">__getstate__</span>(<span class=summary-sig-arg>self</span>)</span></code>
72
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
73
<td><code><a name="disownServiceParent"></a><span class="summary-sig"><span class="summary-sig-name">disownServiceParent</span>(<span class=summary-sig-arg>self</span>)</span></code>
75
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
76
<td><code><a name="privilegedStartService"></a><span class="summary-sig"><span class="summary-sig-name">privilegedStartService</span>(<span class=summary-sig-arg>self</span>)</span></code>
78
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
79
<td><code><a name="setName"></a><span class="summary-sig"><span class="summary-sig-name">setName</span>(<span class=summary-sig-arg>self</span>,
80
<span class=summary-sig-arg>name</span>)</span></code>
82
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
83
<td><code><a name="setServiceParent"></a><span class="summary-sig"><span class="summary-sig-name">setServiceParent</span>(<span class=summary-sig-arg>self</span>,
84
<span class=summary-sig-arg>parent</span>)</span></code>
86
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
87
<td><code><a name="startService"></a><span class="summary-sig"><span class="summary-sig-name">startService</span>(<span class=summary-sig-arg>self</span>)</span></code>
89
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
90
<td><code><a name="stopService"></a><span class="summary-sig"><span class="summary-sig-name">stopService</span>(<span class=summary-sig-arg>self</span>)</span></code>
95
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
96
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
97
<tr bgcolor="#70b0f0" class="summary">
98
<th colspan="2">Class Variable Summary</th></tr>
99
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
100
<td><b><a href="twisted.application.service.Service.html#__implements__"><code>__implements__</code></a></b> = <span title="(<class twisted.application.service.IService at 0x866562c>,)"><code>(<class twisted.application.service.ISe<span class="variable-ellipsis">...</span></code>
102
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
103
<td><b><a href="twisted.application.service.Service.html#name"><code>name</code></a></b> = <span title="None">None </span></td></tr>
104
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
105
<td><b><a href="twisted.application.service.Service.html#parent"><code>parent</code></a></b> = <span title="None">None </span></td></tr>
106
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
107
<td><b><a href="twisted.application.service.Service.html#running"><code>running</code></a></b> = <span title="0">0 </span></td></tr>
111
<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
112
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
113
<tr bgcolor="#70b0f0" class="details">
114
<th colspan="2">Class Variable Details</th></tr>
116
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
117
<a name="__implements__"></a>
118
<h3>__implements__</h3>
123
<dt><b>Type:</b></dt>
128
<span title="(<class twisted.application.service.IService at 0x866562c>,)"> <dt><b>Value:</b></dt>
130
<pre class="variable">
131
(<class twisted.application.service.IService at 0x866562c>,) </pre>
132
</td></tr></table></dd>
135
</dl></td></tr></table>
136
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
143
<dt><b>Type:</b></dt>
145
<code>NoneType</code>
148
<span title="None"> <dt><b>Value:</b></dt>
150
<pre class="variable">
151
None </pre>
152
</td></tr></table></dd>
155
</dl></td></tr></table>
156
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
157
<a name="parent"></a>
163
<dt><b>Type:</b></dt>
165
<code>NoneType</code>
168
<span title="None"> <dt><b>Value:</b></dt>
170
<pre class="variable">
171
None </pre>
172
</td></tr></table></dd>
175
</dl></td></tr></table>
176
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
177
<a name="running"></a>
183
<dt><b>Type:</b></dt>
188
<span title="0"> <dt><b>Value:</b></dt>
190
<pre class="variable">
191
0 </pre>
192
</td></tr></table></dd>
195
</dl></td></tr></table>
199
<!-- =========== START OF NAVBAR =========== -->
200
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
202
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
203
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
204
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
205
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
206
<th class="navbar" align="right" width="100%">
207
<table border="0" cellpadding="0" cellspacing="0">
208
<tr><th class="navbar" align="center">
210
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
211
</p></th></tr></table>
216
<table border="0" cellpadding="0" cellspacing="0" width="100%">
218
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:29 2004</font></td>
219
<td align="right"><a href="http://epydoc.sourceforge.net"
220
><font size="-2">http://epydoc.sf.net</font></a></td>