summaryrefslogtreecommitdiff
path: root/lib/cosEvent/doc/src/cosEventApp.xml
blob: 3b9a38ea93569585c4fccd233b31acabe95aecff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>2001</year>
      <year>2013</year>
      <holder>Ericsson AB, All Rights Reserved</holder>
    </copyright>
    <legalnotice>
  The contents of this file are subject to the Erlang Public License,
  Version 1.1, (the "License"); you may not use this file except in
  compliance with the License. You should have received a copy of the
  Erlang Public License along with this software. If not, it can be
  retrieved online at http://www.erlang.org/.

  Software distributed under the License is distributed on an "AS IS"
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
  the License for the specific language governing rights and limitations
  under the License.

  The Initial Developer of the Original Code is Ericsson AB.
    </legalnotice>

    <title>cosEventApp</title>
    <prepared>Niclas Eklund</prepared>
    <responsible>Niclas Eklund</responsible>
    <docno></docno>
    <approved>Niclas Eklund</approved>
    <checked></checked>
    <date>2000-01-31</date>
    <rev>PA1</rev>
    <file>cosEventApp.xml</file>
  </header>
  <module>cosEventApp</module>
  <modulesummary>The main module of the cosEvent application.</modulesummary>
  <description>
    <p>To get access to the record definitions for the structures use:<br></br><c><![CDATA[-include_lib("cosEvent/include/*.hrl").]]></c></p>
    <p>This module contains the functions for starting and stopping the application.</p>
  </description>
  <funcs>
    <func>
      <name>install() -> Return</name>
      <fsummary>Install the cosEvent application</fsummary>
      <type>
        <v>Return = ok | {'EXCEPTION', E} | {'EXIT', R}</v>
      </type>
      <desc>
        <p>This operation installs the cosEvent application.</p>
      </desc>
    </func>
    <func>
      <name>uninstall() -> Return</name>
      <fsummary>Uninstall the cosEvent application</fsummary>
      <type>
        <v>Return = ok | {'EXCEPTION', E} | {'EXIT', R}</v>
      </type>
      <desc>
        <p>This operation uninstalls the cosEvent application.</p>
      </desc>
    </func>
    <func>
      <name>start() -> Return</name>
      <fsummary>Start the cosEvent application</fsummary>
      <type>
        <v>Return = ok | {error, Reason}</v>
      </type>
      <desc>
        <p>This operation starts the cosEvent application.</p>
      </desc>
    </func>
    <func>
      <name>stop() -> Return</name>
      <fsummary>Stop the cosEvent application</fsummary>
      <type>
        <v>Return = ok | {error, Reason}</v>
      </type>
      <desc>
        <p>This operation stops the cosEvent application.</p>
      </desc>
    </func>
    <func>
      <name>start_channel() -> Channel</name>
      <fsummary>Start a channel with default settings</fsummary>
      <type>
        <v>Channel = #objref</v>
      </type>
      <desc>
        <p>This operation creates a new instance of a
          <seealso marker="CosEventChannelAdmin_EventChannel">Event Channel</seealso>
          using the default settings.</p>
      </desc>
    </func>
    <func>
      <name>start_channel(Options) -> Channel</name>
      <fsummary>Start a channel with settings defined by the given options</fsummary>
      <type>
        <v>Options = [Option]</v>
        <v>Option = {pull_interval, Seconds} | {typecheck, Boolean} | {maxEvents, Integer} | {blocking, Boolean}</v>
        <v>Channel = #objref</v>
      </type>
      <desc>
        <p>This operation creates a new instance of a
          <seealso marker="CosEventChannelAdmin_EventChannel">Event Channel</seealso></p>
        <p></p>
        <list type="bulleted">
          <item><c><![CDATA[{pull_interval, Seconds}]]></c> - determine how often Proxy Pull 
           Consumers will check for new events with the client application. The
           default value is 20 seconds.</item>
          <item><c><![CDATA[{typecheck, Boolean}]]></c> - if this option is set to true the
           proxies will check if the supplied client object is of correct type.
           The default value is false.</item>
          <item><c><![CDATA[{maxEvents, Integer}]]></c> - this option determine how many events
           the <c><![CDATA[ProxyPullSuppliers]]></c> will store before discarding events.
           If the limit is reached events will be discarded in any order.
           The default value is 300.</item>
          <item><c><![CDATA[{blocking, Boolean}]]></c> - this option determine the behavior of
           the channel when handling events internally. If set to <c><![CDATA[true]]></c> the
           risk of a single event supplier floods the system is reduced, but
           the performance may also be reduced.
           The default value is <c><![CDATA[true]]></c>.</item>
        </list>
      </desc>
    </func>
    <func>
      <name>start_channel_link() -> Channel</name>
      <fsummary>Start a channel, which is linked to the invoking process,  with default settings</fsummary>
      <type>
        <v>Channel = #objref</v>
      </type>
      <desc>
        <p>This operation creates a new instance of a
          <seealso marker="CosEventChannelAdmin_EventChannel">Event Channel</seealso>,
          which is linked to the invoking process, using the default settings.</p>
      </desc>
    </func>
    <func>
      <name>start_channel_link(Options) -> Channel</name>
      <fsummary>Start a channel, which is linked to the invoking process, with  settings defined by the given options</fsummary>
      <type>
        <v>Options = [Option]</v>
        <v>Option = {pull_interval, Seconds} | {typecheck, Boolean} | {maxEvents, Integer} | {blocking, Boolean}</v>
        <v>Channel = #objref</v>
      </type>
      <desc>
        <p>This operation creates a new instance of a
          <seealso marker="CosEventChannelAdmin_EventChannel">Event Channel</seealso>,
          which is linked to the invoking process, with settings defined by the
          given options. Allowed options are the same as for 
          <c><![CDATA[cosEventApp:start_channel/1]]></c>.</p>
      </desc>
    </func>
    <func>
      <name>stop_channel(Channel) -> Reply</name>
      <fsummary>Terminate the target object</fsummary>
      <type>
        <v>Channel = #objref</v>
        <v>Reply = ok | {'EXCEPTION', E}</v>
      </type>
      <desc>
        <p>This operation stop the target event channel.</p>
      </desc>
    </func>
  </funcs>
  
</erlref>