ElGraph.Checkpointer.ETS (ElGraph v0.3.0)

Copy Markdown View Source

ETS 기반 기본 체크포인터 (SPEC §3.5).

인스턴스별 테이블 — named table 싱글턴이 아니므로 async: true 테스트와 호환된다. 이 GenServer는 테이블 소유(수명 관리)만 담당하고, 읽기/쓰기는 public 테이블에 직접 수행한다 — 단일 프로세스로 직렬화하지 않는다 (otp-thinking ETS 패턴).

호스트 앱 슈퍼비전 트리에 마운트:

children = [ElGraph.Checkpointer.ETS]
config = ElGraph.Checkpointer.ETS.config(pid)
ElGraph.invoke(graph, input, checkpointer: {ElGraph.Checkpointer.ETS, config})

Summary

Functions

Returns a specification to start this module under a supervisor.

이 인스턴스의 체크포인터 config(테이블 핸들)를 반환한다.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

config(server)

@spec config(GenServer.server()) :: map()

이 인스턴스의 체크포인터 config(테이블 핸들)를 반환한다.

start_link(opts \\ [])