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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (1.1.13 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20090215164252-dxpjjuq108nz4noa
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_&shy;RecoveryCoordinator</title>
 
27
    <shorttitle>..._RecoveryCoordinator</shorttitle>
 
28
    <prepared>Niclas Eklund</prepared>
 
29
    <responsible>Niclas Eklund</responsible>
 
30
    <docno></docno>
 
31
    <approved>Niclas Eklund</approved>
 
32
    <checked></checked>
 
33
    <date>1999-04-12</date>
 
34
    <rev>PA1</rev>
 
35
  </header>
 
36
  <module>CosTransactions_RecoveryCoordinator</module>
 
37
  <modulesummary>This module implements the OMG CosTransactions::RecoveryCoordinator interface.</modulesummary>
 
38
  <description>
 
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>
 
41
  </description>
 
42
  <funcs>
 
43
    <func>
 
44
      <name>replay_completion(RecoveryCoordinator, Timeout, Resource) -> Return</name>
 
45
      <fsummary>Return the current status of the transaction</fsummary>
 
46
      <type>
 
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>
 
53
      </type>
 
54
      <desc>
 
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>
 
71
        </list>
 
72
        <warning>
 
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>
 
78
        </warning>
 
79
      </desc>
 
80
    </func>
 
81
  </funcs>
 
82
  
 
83
</erlref>
 
84