cosNotificationApp(3)
β¨ NAME β¨
cosNotificationApp β the main module of the cosNotification application, bestie. this is the cosNotificationApp(3) page, Erlang Module Definition section, and she's lowkey iconic π
π¦ DESCRIPTION π¦
ok so first thing, if you wanna get access to the record definitions for the structures, you use this:
-include_lib("cosNotification/include/*.hrl").
and then, the whole vibe of this module? it contains the functions for starting and stopping the application. that's it. that's the girl. π
πΈ EXPORTS πΈ
π install() -> Return
Return = ok | {'EXCEPTION', E}
this one installs the cosNotification application. periodt β¨
π install(Seconds) -> Return
Return = ok | {'EXCEPTION', E}
installs the cosNotification application using Seconds delay between each block, currently 6, of IFR-registrations. the way this works is it spreads the IFR database access over a period of time so other applications can run smother π«Ά (that's the point of the whole staggered thing, no cap)
π install_event() -> Return
Return = ok | {'EXCEPTION', E}
π¨ bestie, this one may only be used if it is impossible to upgrade to cosEvent-2.0 or later.
it installs the necessary cosEvent interfaces. if cosEvent-2.0 is available, use cosEventApp:install() instead. okay? okay. π
π install_event(Seconds) -> Return
Return = ok | {'EXCEPTION', E}
π¨ same deal: may only be used if it is impossible to upgrade to cosEvent-2.0 or later.
installs the necessary cosEvent interfaces using Seconds delay between each block of IFR-registrations. if cosEvent-2.0 is available, use cosEventApp:install() instead. β¨
π uninstall() -> Return
Return = ok | {'EXCEPTION', E}
uninstalls the cosNotification application. bye girl π
π uninstall(Seconds) -> Return
Return = ok | {'EXCEPTION', E}
uninstalls the cosNotification application using Seconds delay between each block, currently 6, of IFR-unregistrations. same energy as the install version: this approach spreads the IFR database access over a period of time to allow other applications to run smother π¦
π uninstall_event() -> Return
Return = ok | {'EXCEPTION', E}
uninstalls the inherited cosEvent interfaces.
β οΈ if cosEvent is in use, this function may not be used. and this function may only be used ifcosNotificationApp:install_event/1/2was used. if not, usecosEventApp:uninstall()instead. no skipping this one, i don't make the rules π
π uninstall_event(Seconds) -> Return
Return = ok | {'EXCEPTION', E}
uninstalls the inherited cosEvent interfaces, using Seconds delay between each block of IFR-unregistrations.
β οΈ if cosEvent is in use, this function may not be used. and this function may only be used ifcosNotificationApp:install_event/1/2was used. if not, usecosEventApp:uninstall()instead. π
π start() -> Return
Return = ok | {error, Reason}
starts the cosNotification application. main character behavior, honestly π
π stop() -> Return
Return = ok | {error, Reason}
stops the cosNotification application. she said "i'm done" π
π start_global_factory() -> ChannelFactory
ChannelFactory = #objref
this operation creates an Event Channel Factory, and it should be used for a multi-node Orber. the Factory is used to create a new channel β¨
π start_global_factory(Options) -> ChannelFactory
Options = [Option]
Option = {pullInterval, Seconds} | {filterOp, Op} | {gcTime, Seconds} | {gcLimit, Anount} | {timeService, #objref}
ChannelFactory = #objref
this operation creates an Event Channel Factory and should be used for a multi-node Orber. the Factory is used to create a new channel. and here's what the options mean, one by one, no gatekeeping:
{pullInterval, Seconds}β determine how often Proxy Pull Consumers will check for new events with the client application. the default value is20seconds. β°{filterOp, OperationType}β determine which type of Administrator objects should be started, i.e.,'OR_OP'or'AND_OP'. the default value is'OR_OP'.{timeService, TimeServiceObj | 'undefined'}β to be able to use Start and/or Stop QoS this option must be used. see the functionstart_time_service/2in the cosTime application. the default value is'undefined'. π°οΈ{filterOp, OperationType}β determine which type of Administrator objects should be started, i.e.,'OR_OP'or'AND_OP'. the default value is'OR_OP'. (yes she's listed twice in the original, i'm just the messenger π){gcTime, Seconds}β this option determines how often, for example, proxies will garbage collect expired events. the default value is60. ποΈ{gcLimit, Amount}β determines how many events will be stored before, for example, proxies will garbage collect expired events. the default value is50. this option is tightly coupled with the QoS property MaxEventsPerConsumer, i.e., the gcLimit should be less than MaxEventsPerConsumer and greater than0. π¨
π start_factory() -> ChannelFactory
ChannelFactory = #objref
this operation creates an Event Channel Factory. the Factory is used to create a new channel. no multi-node drama required π
π start_factory(Options) -> ChannelFactory
Options = [Option]
Option = {pullInterval, Seconds} | {filterOp, Op} | {gcTime, Seconds} | {gcLimit, Amount} | {timeService, #objref}
ChannelFactory = #objref
this operation creates an Event Channel Factory. the Factory is used to create a new channel. π
π stop_factory(ChannelFactory) -> Reply
ChannelFactory = #objref
Reply = ok | {'EXCEPTION', E}
this operation stop the target channel factory. she's gone, bestie π
π start_filter_factory() -> FilterFactory
FilterFactory = #objref
this operation creates a Filter Factory. the Factory is used to create a new Filter's and MappingFilter's. obsessed π
π stop_filter_factory(FilterFactory) -> Reply
FilterFactory = #objref
Reply = ok | {'EXCEPTION', E}
this operation stop the target filter factory. bye bye filter factory π
π create_structured_event(Domain, Type, Event, VariableHeader, FilterableBody, BodyRemainder) -> Reply
Domain = string()
Type = string()
Event = string()
VariableHeader = [CosNotification::Property]
FilterableBody = [CosNotification::Property]
BodyRemainder = #any data-type
Reply = CosNotification::StructuredEvent | {'EXCEPTION', E}
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. so like, get your args right or she WILL yell at you π€
π type_check() -> Reply
Reply = true | false
this operation returns the value of the configuration parameter type_check. vibe check, but for config β¨
and that's the whole page, bestie π«Ά written by Ericsson AB, cosNotification version 5.2.2, cosNotificationApp(3). go forth and start/stop some applications, you got this ππ
π
π¦ where this page comes from
- fedora 43: erlang-cosNotification 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosNotification 1:5.2.2-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms