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 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324
|
.TH cosNotificationApp 3 "cosNotification 1.1.7" "Ericsson AB" "ERLANG MODULE DEFINITION"
.SH MODULE
cosNotificationApp \- The main module of the cosNotification application\&.
.SH DESCRIPTION
.LP
To get access to the record definitions for the structures use:
.br
\fI-include_lib("cosNotification/include/*\&.hrl")\&.\fR
.LP
This module contains the functions for starting and stopping the application\&.
.SH EXPORTS
.LP
.B
install() -> Return
.br
.RS
.TP
Types
Return = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation installs the cosNotification application\&.
.RE
.LP
.B
install(Seconds) -> Return
.br
.RS
.TP
Types
Return = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation installs the cosNotification application using \fISeconds\fR delay between each block, currently 6, of IFR-registrations\&. This approach spreads the IFR database access over a period of time to allow other applications to run smother\&.
.RE
.LP
.B
install_event() -> Return
.br
.RS
.TP
Types
Return = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation, which may \fIonly\fR be used if it is impossible to upgrade to \fIcosEvent-2\&.0\fR or later, installs the necessary cosEvent interfaces\&. If cosEvent-2\&.0 is available, use \fIcosEventApp:install()\fR instead\&.
.RE
.LP
.B
install_event(Seconds) -> Return
.br
.RS
.TP
Types
Return = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation, which may \fIonly\fR be used if it is impossible to upgrade to \fIcosEvent-2\&.0\fR or later, installs the necessary cosEvent interfaces using \fISeconds\fR delay between each block of IFR-registrations\&. If cosEvent-2\&.0 is available, use \fIcosEventApp:install()\fR instead\&.
.RE
.LP
.B
uninstall() -> Return
.br
.RS
.TP
Types
Return = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation uninstalls the cosNotification application\&.
.RE
.LP
.B
uninstall(Seconds) -> Return
.br
.RS
.TP
Types
Return = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation uninstalls the cosNotification application using \fISeconds\fR delay between each block, currently 6, of IFR-unregistrations\&. This approach spreads the IFR database access over a period of time to allow other applications to run smother\&.
.RE
.LP
.B
uninstall_event() -> Return
.br
.RS
.TP
Types
Return = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation uninstalls the inherrited cosEvent interfaces\&. If cosEvent is in use this function may not be used\&. This function may only be used if \fIcosNotificationApp:install_event/1/2\fR was used\&. If not, use \fIcosEventApp:uninstall()\fR instead\&.
.RE
.LP
.B
uninstall_event(Seconds) -> Return
.br
.RS
.TP
Types
Return = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation uninstalls the inherrited cosEvent interfaces, using \fISeconds\fR delay between each block of IFR-unregistrations\&. If cosEvent is in use this function may not be used\&. This function may only be used if \fIcosNotificationApp:install_event/1/2\fR was used\&. If not, use \fIcosEventApp:uninstall()\fR instead\&.
.RE
.LP
.B
start() -> Return
.br
.RS
.TP
Types
Return = ok | {error, Reason}
.br
.RE
.RS
.LP
This operation starts the cosNotification application\&.
.RE
.LP
.B
stop() -> Return
.br
.RS
.TP
Types
Return = ok | {error, Reason}
.br
.RE
.RS
.LP
This operation stops the cosNotification application\&.
.RE
.LP
.B
start_global_factory() -> ChannelFactory
.br
.RS
.TP
Types
ChannelFactory = #objref
.br
.RE
.RS
.LP
This operation creates a Event Channel Factory should be used for a multi-node Orber\&. The Factory is used to create a new channel\&.
.RE
.LP
.B
start_global_factory(Options) -> ChannelFactory
.br
.RS
.TP
Types
Options = [Option]
.br
Option = {pullInterval, Seconds} | {filterOp, Op} | {gcTime, Seconds} | {gcLimit, Anount} | {timeService, #objref}
.br
ChannelFactory = #objref
.br
.RE
.RS
.LP
This operation creates a Event Channel Factory and should be used for a multi-node Orber\&. The Factory is used to create a new channel\&.
.LP
.RS 2
.TP 2
*
\fI{pullInterval, Seconds}\fR - determine how often Proxy Pull Consumers will check for new events with the client application\&. The default value is 20 seconds\&.
.TP 2
*
\fI{filterOp, OperationType}\fR - determine which type of Administrator objects should be started, i\&.e\&., \fI\&'OR_OP\&'\fR or \fI\&'AND_OP\&'\fR\&. The default value is \fI\&'OR_OP\&'\fR\&.
.TP 2
*
\fI{timeService, TimeServiceObj | \&'undefined\&'}\fR - to be able to use Start and/or Stop QoS this option must be used\&. See the function \fIstart_time_service/2\fR in the \fIcosTime\fR application\&. The default value is \fI\&'undefined\&'\fR\&.
.TP 2
*
\fI{filterOp, OperationType}\fR - determine which type of Administrator objects should be started, i\&.e\&., \fI\&'OR_OP\&'\fR or \fI\&'AND_OP\&'\fR\&. The default value is \fI\&'OR_OP\&'\fR\&.
.TP 2
*
\fI{gcTime, Seconds}\fR - this option determines how often, for example, proxies will garbage collect expired events\&. The default value is 60\&.
.TP 2
*
\fI{gcLimit, Amount}\fR - determines how many events will be stored before, for example, proxies will garbage collect expired events\&. The default value is 50\&. This option is tightly coupled with the QoS property \fIMaxEventsPerConsumer\fR, i\&.e\&., the \fIgcLimit\fR should be less than \fIMaxEventsPerConsumer\fR and greater than 0\&.
.RE
.RE
.LP
.B
start_factory() -> ChannelFactory
.br
.RS
.TP
Types
ChannelFactory = #objref
.br
.RE
.RS
.LP
This operation creates a Event Channel Factory\&. The Factory is used to create a new channel\&.
.RE
.LP
.B
start_factory(Options) -> ChannelFactory
.br
.RS
.TP
Types
Options = [Option]
.br
Option = {pullInterval, Seconds} | {filterOp, Op} | {gcTime, Seconds} | {gcLimit, Amount} | {timeService, #objref}
.br
ChannelFactory = #objref
.br
.RE
.RS
.LP
This operation creates a Event Channel Factory\&. The Factory is used to create a new channel\&.
.RE
.LP
.B
stop_factory(ChannelFactory) -> Reply
.br
.RS
.TP
Types
ChannelFactory = #objref
.br
Reply = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation stop the target channel factory\&.
.RE
.LP
.B
start_filter_factory() -> FilterFactory
.br
.RS
.TP
Types
FilterFactory = #objref
.br
.RE
.RS
.LP
This operation creates a Filter Factory\&. The Factory is used to create a new Filter\&'s and MappingFilter\&'s\&.
.RE
.LP
.B
stop_filter_factory(FilterFactory) -> Reply
.br
.RS
.TP
Types
FilterFactory = #objref
.br
Reply = ok | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
This operation stop the target filter factory\&.
.RE
.LP
.B
create_structured_event(Domain, Type, Event, VariableHeader, FilterableBody, BodyRemainder) -> Reply
.br
.RS
.TP
Types
Domain = string()
.br
Type = string()
.br
Event = string()
.br
VariableHeader = [CosNotification::Property]
.br
FilterableBody = [CosNotification::Property]
.br
BodyRemainder = #any data-type
.br
Reply = CosNotification::StructuredEvent | {\&'EXCEPTION\&', E}
.br
.RE
.RS
.LP
An easy way to create a structured event is to use this function\&. Simple typechecks are performed and if one of the arguments is not correct a \&'BAD_PARAM\&' exception is thrown\&.
.RE
.LP
.B
type_check() -> Reply
.br
.RS
.TP
Types
Reply = true | false
.br
.RE
.RS
.LP
This operation returns the value of the configuration parameter \fItype_check\fR\&.
.RE
|