~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/cosTransactions/doc/src/CosTransactions_Coordinator.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="latin1" ?>
 
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
 
3
 
 
4
<erlref>
 
5
  <header>
 
6
    <copyright>
 
7
      <year>1999</year>
 
8
      <year>2007</year>
 
9
      <holder>Ericsson AB, All Rights Reserved</holder>
 
10
    </copyright>
 
11
    <legalnotice>
 
12
  The contents of this file are subject to the Erlang Public License,
 
13
  Version 1.1, (the "License"); you may not use this file except in
 
14
  compliance with the License. You should have received a copy of the
 
15
  Erlang Public License along with this software. If not, it can be
 
16
  retrieved online at http://www.erlang.org/.
 
17
 
 
18
  Software distributed under the License is distributed on an "AS IS"
 
19
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
20
  the License for the specific language governing rights and limitations
 
21
  under the License.
 
22
 
 
23
  The Initial Developer of the Original Code is Ericsson AB.
 
24
    </legalnotice>
 
25
 
 
26
    <title>CosTransactions_Coordinator</title>
 
27
    <prepared></prepared>
 
28
    <docno></docno>
 
29
    <checked></checked>
 
30
    <date>1999-04-12</date>
 
31
    <rev>PA1</rev>
 
32
  </header>
 
33
  <module>CosTransactions_Coordinator</module>
 
34
  <modulesummary>This module implements the OMG CosTransactions::Coordinator interface.</modulesummary>
 
35
  <description>
 
36
    <p>To get access to the record definitions for the structures use:      <br></br>
 
37
<c>-include_lib("cosTransactions/include/CosTransactions.hrl").</c></p>
 
38
  </description>
 
39
  <funcs>
 
40
    <func>
 
41
      <name>create_subtransaction(Coordinator) -> Control</name>
 
42
      <fsummary>Create a new subtransaction.</fsummary>
 
43
      <type>
 
44
        <v>Coordinator = #objref</v>
 
45
        <v>Control = #objref</v>
 
46
      </type>
 
47
      <desc>
 
48
        <p>A new subtransaction is created whose parent is the Coordinator argument.</p>
 
49
        <p>Raises exception:</p>
 
50
        <list type="bulleted">
 
51
          <item>'SubtransactionsUnavailable' - if nested transactions are not supported.</item>
 
52
          <item>'Inactive' - if target transaction has already been prepared.</item>
 
53
        </list>
 
54
      </desc>
 
55
    </func>
 
56
    <func>
 
57
      <name>get_transaction_name(Coordinator) -> Name</name>
 
58
      <fsummary>Return the name associated with the object.</fsummary>
 
59
      <type>
 
60
        <v>Coordinator = #objref</v>
 
61
        <v>Name = string() of type "oe_name@machine_type_timestamp"</v>
 
62
      </type>
 
63
      <desc>
 
64
        <p>Returns a printable string, which describe the transaction. The main purpose is to support debugging.</p>
 
65
      </desc>
 
66
    </func>
 
67
    <func>
 
68
      <name>get_parent_status(Coordinator) -> Status</name>
 
69
      <fsummary>Return the status of the parent transaction.</fsummary>
 
70
      <type>
 
71
        <v>Coordinator = #objref</v>
 
72
        <v>Status = atom()</v>
 
73
      </type>
 
74
      <desc>
 
75
        <p>Returns the status of the parent transaction
 
76
          associated with the target object. If the target object is a top-level
 
77
          transaction this operation is equivalent to <c>get_status/1</c> operation. </p>
 
78
        <p>Possible Status replies:</p>
 
79
        <list type="bulleted">
 
80
          <item>'StatusCommitted'</item>
 
81
          <item>'StatusCommitting'</item>
 
82
          <item>'StatusMarkedRollback'</item>
 
83
          <item>'StatusRollingBack'</item>
 
84
          <item>'StatusRolledBack'</item>
 
85
          <item>'StatusActive'</item>
 
86
          <item>'StatusPrepared'</item>
 
87
          <item>'StatusUnknown'</item>
 
88
          <item>'StatusNoTransaction'</item>
 
89
          <item>'StatusPreparing'</item>
 
90
        </list>
 
91
      </desc>
 
92
    </func>
 
93
    <func>
 
94
      <name>get_status(Coordinator) -> Status</name>
 
95
      <fsummary>Return the status of the transaction associated with the target object</fsummary>
 
96
      <type>
 
97
        <v>Coordinator = #objref</v>
 
98
        <v>Status = atom()</v>
 
99
      </type>
 
100
      <desc>
 
101
        <p>Returns the status of the transaction associated with the target object.</p>
 
102
      </desc>
 
103
    </func>
 
104
    <func>
 
105
      <name>get_top_level_status(Coordinator) -> Status</name>
 
106
      <fsummary>Return the status of the top-level transaction associated with the target object</fsummary>
 
107
      <type>
 
108
        <v>Coordinator = #objref</v>
 
109
        <v>Status = atom()</v>
 
110
      </type>
 
111
      <desc>
 
112
        <p>Returns the status of the top-level transaction associated with the target object.</p>
 
113
      </desc>
 
114
    </func>
 
115
    <func>
 
116
      <name>hash_top_level_tran(Coordinator) -> Return</name>
 
117
      <fsummary>Return a hash code for the top-level transaction  associated with the target object</fsummary>
 
118
      <type>
 
119
        <v>Coordinator = #objref</v>
 
120
        <v>Return = integer()</v>
 
121
      </type>
 
122
      <desc>
 
123
        <p>Returns a hash code for the top-level transaction 
 
124
          associated with the target object. Equals the operation
 
125
          <c>hash_transaction/1</c> if the target object is a top-level transaction.</p>
 
126
      </desc>
 
127
    </func>
 
128
    <func>
 
129
      <name>hash_transaction(Coordinator) -> Return</name>
 
130
      <fsummary>Return a hash code for the transaction associated with the target object.</fsummary>
 
131
      <type>
 
132
        <v>Coordinator = #objref</v>
 
133
        <v>Return = integer()</v>
 
134
      </type>
 
135
      <desc>
 
136
        <p>Returns a hash code for the transaction associated with the target object.</p>
 
137
      </desc>
 
138
    </func>
 
139
    <func>
 
140
      <name>is_descendant_transaction(Coordinator, OtherCoordinator) -> Return</name>
 
141
      <fsummary>Return a boolean which indicates whether the transaction associated  with the target object is a descendant of the transaction associated with the parameter object</fsummary>
 
142
      <type>
 
143
        <v>Coordinator = #objref</v>
 
144
        <v>OtherCoordinator = #objref</v>
 
145
        <v>Return = Boolean</v>
 
146
      </type>
 
147
      <desc>
 
148
        <p>Returns true if the transaction associated with the target object is a 
 
149
          descendant of the transaction associated with the parameter object.</p>
 
150
      </desc>
 
151
    </func>
 
152
    <func>
 
153
      <name>is_same_transaction(Coordinator, OtherCoordinator) -> Return</name>
 
154
      <fsummary>Return true if the transaction associated with the target object is  related to the transaction associated with the parameter object</fsummary>
 
155
      <type>
 
156
        <v>Coordinator = #objref</v>
 
157
        <v>OtherCoordinator = #objref</v>
 
158
        <v>Return = Boolean</v>
 
159
      </type>
 
160
      <desc>
 
161
        <p>Returns true if the transaction associated with the target object is 
 
162
          related to the transaction associated with the parameter object.</p>
 
163
      </desc>
 
164
    </func>
 
165
    <func>
 
166
      <name>is_top_level_transaction(Coordinator) -> Return</name>
 
167
      <fsummary>Return true if the transaction associated with the target object is  a top-level transaction</fsummary>
 
168
      <type>
 
169
        <v>Coordinator = #objref</v>
 
170
        <v>Return = Boolean</v>
 
171
      </type>
 
172
      <desc>
 
173
        <p>Returns true if the transaction associated with the target object is 
 
174
          a top-level transaction.</p>
 
175
      </desc>
 
176
    </func>
 
177
    <func>
 
178
      <name>register_resource(Coordinator, Resource) -> RecoveryCoordinator</name>
 
179
      <fsummary>Register the parameter <c>Resource</c>object as a participant in the transaction associated with the target object</fsummary>
 
180
      <type>
 
181
        <v>Coordinator = #objref</v>
 
182
        <v>Resource = #objref</v>
 
183
        <v>RecoveryCoordinator = #objref</v>
 
184
      </type>
 
185
      <desc>
 
186
        <p>This operation registers the parameter <c>Resource</c> object as a participant in the
 
187
          transaction associated with the target object. The <c>RecoveryCoordinator</c> returned
 
188
          by this operation can be used by this Resource during recovery.</p>
 
189
        <note>
 
190
          <p>The Resources will be called in FIFO-order when preparing or committing.
 
191
            Hence, be sure to register the Resources in the correct order.</p>
 
192
        </note>
 
193
        <p>Raises exception:</p>
 
194
        <list type="bulleted">
 
195
          <item>'Inactive' - if target transaction has already been prepared.</item>
 
196
        </list>
 
197
      </desc>
 
198
    </func>
 
199
    <func>
 
200
      <name>register_subtran_aware(Coordinator, SubtransactionAwareResource) -> Return</name>
 
201
      <fsummary>Register the parameter <c>SubtransactionAwareResource</c>object such that it will be notified when the transaction, associated wit the target object,  has committed or rolled back</fsummary>
 
202
      <type>
 
203
        <v>Coordinator = #objref</v>
 
204
        <v>Return = ok</v>
 
205
      </type>
 
206
      <desc>
 
207
        <p>This operation registers the parameter <c>SubtransactionAwareResource</c> object such that
 
208
          it will be notified when the transaction, associated wit the target object, 
 
209
          has committed or rolled back.</p>
 
210
        <note>
 
211
          <p>The Resources will be called in FIFO-order.
 
212
            Hence, be sure to register the Resources in the correct order.</p>
 
213
        </note>
 
214
      </desc>
 
215
    </func>
 
216
    <func>
 
217
      <name>rollback_only(Coordinator) -> Return</name>
 
218
      <fsummary>Modify the transaction associated with the target object so the only possible outcome is to rollback the transaction</fsummary>
 
219
      <type>
 
220
        <v>Coordinator = #objref</v>
 
221
        <v>Return = ok</v>
 
222
      </type>
 
223
      <desc>
 
224
        <p>The transaction associated with the target object is modified so the only
 
225
          possible outcome is to rollback the transaction.</p>
 
226
      </desc>
 
227
    </func>
 
228
  </funcs>
 
229
  
 
230
</erlref>
 
231