Probes and control
Single-purpose handlers that do not carry an interaction.
hololinked.server.http.handlers.ThingDescriptionHandler
Bases: BaseHandler
Thing Description handler.
Source code in repo/hololinked/hololinked/server/http/handlers.py
Functions
initialize
initialize(resource: InteractionAffordance | PropertyAffordance, config: RuntimeConfig, logger: BoundLogger, thing: Thing, owner_inst: HTTPServer, metadata: HandlerMetadata | None = None) -> None
Set up the handler along with the service that generates the Thing Description.
Source code in repo/hololinked/hololinked/server/http/handlers.py
get
async
Generate and return the Thing Description of the Thing.
Source code in repo/hololinked/hololinked/server/http/handlers.py
Serves the Thing Description document, generated by ThingDescriptionService.
hololinked.server.http.handlers.LivenessProbeHandler
Bases: BaseHandler
Liveness probe handler.
Source code in repo/hololinked/hololinked/server/http/handlers.py
Functions
initialize
initialize(config: RuntimeConfig, logger: BoundLogger, owner_inst: HTTPServer | None = None) -> None
Set up the handler with the HTTP server it probes.
Source code in repo/hololinked/hololinked/server/http/handlers.py
get
async
hololinked.server.http.handlers.ReadinessProbeHandler
Bases: BaseHandler
Readiness probe handler.
Source code in repo/hololinked/hololinked/server/http/handlers.py
Functions
initialize
initialize(config: RuntimeConfig, logger: BoundLogger, owner_inst: HTTPServer | None = None) -> None
Set up the handler with the HTTP server it probes.
Source code in repo/hololinked/hololinked/server/http/handlers.py
get
async
Report whether every served Thing is connected and answering a ping.
Source code in repo/hololinked/hololinked/server/http/handlers.py
Liveness answers whether the server process is up; readiness answers whether it is ready to serve
the Thing.
hololinked.server.http.handlers.StopHandler
Bases: BaseHandler
Stops the tornado HTTP server.
Source code in repo/hololinked/hololinked/server/http/handlers.py
Functions
initialize
Set up the handler with the HTTP server it stops.
Source code in repo/hololinked/hololinked/server/http/handlers.py
post
async
Schedule a graceful shutdown of the HTTP server.
Source code in repo/hololinked/hololinked/server/http/handlers.py
Shuts the server down over HTTP. POST only.