cowbird.handlers.handler_factory ================================ .. py:module:: cowbird.handlers.handler_factory Attributes ---------- .. autoapisummary:: cowbird.handlers.handler_factory.LOGGER cowbird.handlers.handler_factory.VALID_HANDLERS Classes ------- .. autoapisummary:: cowbird.handlers.handler_factory.HandlerFactory Module Contents --------------- .. py:data:: LOGGER .. py:data:: VALID_HANDLERS :value: ['Catalog', 'Geoserver', 'Magpie', 'Nginx', 'Thredds', 'FileSystem'] .. py:class:: HandlerFactory Create handler instance using handler name. .. py:attribute:: settings .. py:attribute:: handlers_cfg :type: Dict[str, cowbird.typedefs.HandlerConfig] .. py:attribute:: handlers :type: MutableMapping[str, cowbird.handlers.handler.Handler] .. py:method:: create_handler(name: Literal['Catalog']) -> cowbird.handlers.impl.catalog.Catalog 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) -> Optional[cowbird.handlers.handler.Handler] Instantiates a new `Handler` implementation using its name, overwriting an existing instance if required. .. py:method:: get_handler(name: Literal['Catalog']) -> cowbird.handlers.impl.catalog.Catalog 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) -> Optional[cowbird.handlers.handler.Handler] Instantiates a `Handler` implementation using its name if it doesn't exist or else returns the existing one from cache. .. py:method:: get_active_handlers() -> List[cowbird.handlers.handler.Handler] Return a sorted list by priority of `Handler` implementation activated in the config.