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

business(dual)

@spec business(GenServer.server()) :: pid()

Returns the Business channel ExCEP.Gateway.Client pid.

channels(dual)

@spec channels(GenServer.server()) :: {pid(), pid()}

Returns {mgmt_pid, biz_pid}.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

close(dual)

@spec close(GenServer.server()) :: :ok

Closes both channels.

connect(dual)

@spec connect(GenServer.server()) :: :ok | {:error, term()}

Connects both Management and Business channels.

management(dual)

@spec management(GenServer.server()) :: pid()

Returns the Management channel ExCEP.Gateway.Client pid.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()