Implementation of functionalities of an Jsonl File Store port instance.
Port configuration options
Port logger, to be used internally
Optional
name: stringPort name, to be used internally
Return the underlying port instance
Return the port state as a boolean value, true if the port is available, false in otherwise
This is the class that should be extended to implement a new specific Port.
This class implements some util logic to facilitate the creation of new Ports, for this reason is exposed as abstract class, instead of an interface. The basic operations that already implemented in the class are:
What the user of this class should develop in the specific port:
In the other hand, this class extends the
EventEmitter
class, so it's possible to emit events to notify the status of the port:Check some examples of implementation in: