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

Method __init__

src/ceph-node-proxy/ceph_node_proxy/api.py:58–75  ·  view source on GitHub ↗
(
        self,
        backend: SystemBackend,
        reporter: "Reporter",
        config: "Config",
        addr: str = "0.0.0.0",
        port: int = 0,
    )

Source from the content-addressed store, hash-verified

56
57class API(Server):
58 def __init__(
59 self,
60 backend: SystemBackend,
61 reporter: "Reporter",
62 config: "Config",
63 addr: str = "0.0.0.0",
64 port: int = 0,
65 ) -> None:
66 super().__init__()
67 self.log = get_logger(__name__)
68 self.backend = backend
69 self.reporter = reporter
70 self.config = config
71 self.socket_port = (
72 port if port else self.config.get("api", {}).get("port", 9456)
73 )
74 self.socket_host = addr
75 self.subscribe()
76
77 @cherrypy.expose
78 @cherrypy.tools.allow(methods=["GET"])

Callers 1

__init__Method · 0.45

Calls 3

get_loggerFunction · 0.90
getMethod · 0.45
subscribeMethod · 0.45

Tested by

no test coverage detected