1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
9
<holder>Ericsson AB, All Rights Reserved</holder>
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/.
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
23
The Initial Developer of the Original Code is Ericsson AB.
26
<title>CosTransactions_­RecoveryCoordinator</title>
27
<shorttitle>..._RecoveryCoordinator</shorttitle>
28
<prepared>Niclas Eklund</prepared>
29
<responsible>Niclas Eklund</responsible>
31
<approved>Niclas Eklund</approved>
33
<date>1999-04-12</date>
36
<module>CosTransactions_RecoveryCoordinator</module>
37
<modulesummary>This module implements the OMG CosTransactions::RecoveryCoordinator interface.</modulesummary>
39
<p>To get access to the record definitions for the structures use: <br></br>
40
<c>-include_lib("cosTransactions/include/CosTransactions.hrl").</c></p>
44
<name>replay_completion(RecoveryCoordinator, Timeout, Resource) -> Return</name>
45
<fsummary>Return the current status of the transaction</fsummary>
47
<v>RecoveryCoordinator = #objref</v>
48
<v>Timeout = integer(), milliseconds | 'inifinity'</v>
49
<v>Resource = #objref</v>
50
<v>Return = Status | {'EXCEPTION', E}</v>
51
<v>E = #'CosTransactions_NotPrepared'{}</v>
52
<v>Status = atom()</v>
55
<p>The <c>RecoveryCoordinator</c> object is returned by the operation
56
<c>CosTransactions_Coordinator:register_resource/3</c>. The <c>replay_completion/2</c>
57
may only be used by the registered Resource and returns the current status
58
of the transaction. The operation is used when recovering after a failure.</p>
59
<p>Possible Status replies:</p>
60
<list type="bulleted">
61
<item>'StatusCommitted'</item>
62
<item>'StatusCommitting'</item>
63
<item>'StatusMarkedRollback'</item>
64
<item>'StatusRollingBack'</item>
65
<item>'StatusRolledBack'</item>
66
<item>'StatusActive'</item>
67
<item>'StatusPrepared'</item>
68
<item>'StatusUnknown'</item>
69
<item>'StatusNoTransaction'</item>
70
<item>'StatusPreparing'</item>
73
<p><em>replay_completion/3</em> is blocking and may cause dead-lock if a child
74
calls this function at the same time as its parent invokes an operation
75
on the child. Dead-lock will not occur if the timeout has any value except 'infinity'.</p>
76
<p>If the call is external incoming (intra-ORB) the timeout will not be activated.
77
Hence, similar action must be taken if the Resource resides on another vendors ORB.</p>