Constructor initializes a new instance of EventProcessor.
The application's name.
The type of processor (Emitter, Watcher, or Both).
Private method to emit the event
Event to be emitted
Emits an event by updating its timestamp and writing event data.
The name of the event to emit.
Specifically emits Zowe-related events, updating timestamps and handling data.
The name of the Zowe event to emit.
Subscription to an event that will notify all subscribed users.
The name of the event to subscribe to.
Callback functions to handle the event.
Subscription to an event that will notify a single user.
The name of the event to subscribe to.
Callback functions to handle the event.
Unsubscribes from an event, closing file watchers and cleaning up resources.
The name of the event to unsubscribe from.
Generated using TypeDoc
Overview
Each EventProcessor manages its own subscriptions, handling the addition, emission, and removal of events. It uses a map where event names are keys, and values are Event objects that hold detailed event information and subscriptions.
An
EventProcessor
handles three main functionalities:Understanding Event Types