ExCEP. Gateway. DualChannel
(ex_cep v0.1.1)
Copy Markdown
Coordinates both CEP Northbound channels for an Edge Gateway:
- Management Channel (TCP 9901)
- Business Channel (TCP 9902)
Summary
Functions
Returns the Business channel ExCEP.Gateway.Client pid.
Returns {mgmt_pid, biz_pid}.
Returns a specification to start this module under a supervisor.
Closes both channels.
Connects both Management and Business channels.
Returns the Management channel ExCEP.Gateway.Client pid.
Functions
@spec business(GenServer.server()) :: pid()
Returns the Business channel ExCEP.Gateway.Client pid.
@spec channels(GenServer.server()) :: {pid(), pid()}
Returns {mgmt_pid, biz_pid}.
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec close(GenServer.server()) :: :ok
Closes both channels.
@spec connect(GenServer.server()) :: :ok | {:error, term()}
Connects both Management and Business channels.
@spec management(GenServer.server()) :: pid()
Returns the Management channel ExCEP.Gateway.Client pid.
@spec start_link(keyword()) :: GenServer.on_start()