cowbird.handlers.handler_factory

Attributes

LOGGER

VALID_HANDLERS

Classes

HandlerFactory

Create handler instance using handler name.

Module Contents

cowbird.handlers.handler_factory.LOGGER[source]
cowbird.handlers.handler_factory.VALID_HANDLERS = ['Catalog', 'Geoserver', 'Magpie', 'Nginx', 'Thredds', 'FileSystem'][source]
class cowbird.handlers.handler_factory.HandlerFactory[source]

Create handler instance using handler name.

settings[source]
config_path[source]
handlers_configs[source]
handlers_cfg: Dict[str, cowbird.typedefs.HandlerConfig][source]
handlers: MutableMapping[str, cowbird.handlers.handler.Handler][source]
create_handler(name: Literal['Catalog']) cowbird.handlers.impl.catalog.Catalog[source]
create_handler(name: Literal['FileSystem']) cowbird.handlers.impl.filesystem.FileSystem
create_handler(name: Literal['Geoserver']) cowbird.handlers.impl.geoserver.Geoserver
create_handler(name: Literal['Magpie']) cowbird.handlers.impl.magpie.Magpie
create_handler(name: Literal['Nginx']) cowbird.handlers.impl.nginx.Nginx
create_handler(name: Literal['Thredds']) cowbird.handlers.impl.thredds.Thredds
create_handler(name: str) cowbird.handlers.handler.Handler | None

Instantiates a new Handler implementation using its name, overwriting an existing instance if required.

get_handler(name: Literal['Catalog']) cowbird.handlers.impl.catalog.Catalog[source]
get_handler(name: Literal['FileSystem']) cowbird.handlers.impl.filesystem.FileSystem
get_handler(name: Literal['Geoserver']) cowbird.handlers.impl.geoserver.Geoserver
get_handler(name: Literal['Magpie']) cowbird.handlers.impl.magpie.Magpie
get_handler(name: Literal['Nginx']) cowbird.handlers.impl.nginx.Nginx
get_handler(name: Literal['Thredds']) cowbird.handlers.impl.thredds.Thredds
get_handler(name: str) cowbird.handlers.handler.Handler | None

Instantiates a Handler implementation using its name if it doesn’t exist or else returns the existing one from cache.

get_active_handlers() List[cowbird.handlers.handler.Handler][source]

Return a sorted list by priority of Handler implementation activated in the config.