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

« back to all changes in this revision

Viewing changes to lib/cosEvent/doc/src/CosEventChannelAdmin_ProxyPushConsumer.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>1997</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>CosEventChannelAdmin_&shy;ProxyPushConsumer</title>
 
27
    <shorttitle>..._ProxyPushConsumer</shorttitle>
 
28
    <prepared></prepared>
 
29
    <responsible></responsible>
 
30
    <docno></docno>
 
31
    <approved></approved>
 
32
    <checked></checked>
 
33
    <date>1997-11-13</date>
 
34
    <rev>PA1</rev>
 
35
    <file>CosEventChannelAdmin_ProxyPushConsumer.xml</file>
 
36
  </header>
 
37
  <module>CosEventChannelAdmin_ProxyPushConsumer</module>
 
38
  <modulesummary>This module implements a ProxyPushConsumer interface which acts as a middleman between push supplier and the event channel.</modulesummary>
 
39
  <description>
 
40
    <p>The ProxyPushConsumer interface defines the second step for connecting push
 
41
      suppliers to the event channel. A proxy consumer is similar to a normal consumer,
 
42
      but includes an additional method for connecting a supplier to the proxy
 
43
      consumer.</p>
 
44
    <p>To get access to all definitions, e.g., exceptions,
 
45
      include necessary <c><![CDATA[hrl]]></c> files by using:<br></br><c><![CDATA[-include_lib("cosEvent/include/*.hrl").]]></c></p>
 
46
    <p>Any object that possesses an object reference that supports the ProxyPushConsumer
 
47
      interface can perform the following operations:</p>
 
48
  </description>
 
49
  <funcs>
 
50
    <func>
 
51
      <name>connect_push_supplier(Object, PushSupplier) -> Return</name>
 
52
      <fsummary>Connect the push supplier to the proxy push consumer</fsummary>
 
53
      <type>
 
54
        <v>Object       = #objref</v>
 
55
        <v>PushSupplier = #objref of PushSupplier type</v>
 
56
        <v>Return = ok | {'EXCEPTION', #'CosEventChannelAdmin_AlreadyConnected'{}}</v>
 
57
      </type>
 
58
      <desc>
 
59
        <p>This operation connects PushSupplier object to the ProxyPushConsumer object.
 
60
          A nil object reference can be passed to this operation. If so a channel
 
61
          cannot invoke the disconnect_push_supplier operation on the supplier;
 
62
          the supplier may be disconnected from the channel without being 
 
63
          informed. If the ProxyPushConsumer is already connected to a 
 
64
          PushSupplier, then the <c><![CDATA[CosEventChannelAdmin_AlreadyConnected]]></c> 
 
65
          exception is raised.</p>
 
66
      </desc>
 
67
    </func>
 
68
    <func>
 
69
      <name>disconnect_push_consumer(Object) -> Return</name>
 
70
      <fsummary>Disconnect the ProxyPushConsumer object from the event channel.</fsummary>
 
71
      <type>
 
72
        <v>Object = #objref</v>
 
73
        <v>Return = ok</v>
 
74
      </type>
 
75
      <desc>
 
76
        <p>This operation disconnects proxy push consumer from the event channel.
 
77
          Sends a notification about the loss of the connection to the push supplier
 
78
          attached to it, unless nil object reference was passed at the connection
 
79
          time.</p>
 
80
      </desc>
 
81
    </func>
 
82
    <func>
 
83
      <name>push(Object, Data) -> Return</name>
 
84
      <fsummary>Communicate event data to the consumers.</fsummary>
 
85
      <type>
 
86
        <v>Object = #objref</v>
 
87
        <v>Data   = any</v>
 
88
        <v>Return = ok | {'EXCEPTION', #'CosEventComm_Disconnected'{}}</v>
 
89
      </type>
 
90
      <desc>
 
91
        <p>This operation sends event data to all connected consumers via the 
 
92
          event channel. If the event communication has already been disconnected,
 
93
          the <c><![CDATA[CosEventComm_Disconnected]]></c> is raised.</p>
 
94
      </desc>
 
95
    </func>
 
96
  </funcs>
 
97
  
 
98
</erlref>
 
99