MCPcopy Create free account
hub / github.com/ceph/ceph / init_api

Method init_api

src/ceph-node-proxy/ceph_node_proxy/main.py:139–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 raise
138
139 def init_api(self) -> None:
140 try:
141 self.log.info("Starting node-proxy API...")
142 self.api = NodeProxyApi(self)
143 self.api.start()
144 except Exception as e:
145 self.log.error(f"Can't start node-proxy API: {e}")
146 raise
147
148 def loop(self) -> None:
149 check_interval = 20

Callers 1

initMethod · 0.95

Calls 4

NodeProxyApiClass · 0.90
infoMethod · 0.45
startMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected