cowbird.handlers.handler_factory

Module Contents

Classes

HandlerFactory

Create handler instance using handler name.

Attributes

LOGGER

VALID_HANDLERS

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.

create_handler(name: typing_extensions.Literal[Catalog])cowbird.handlers.impl.catalog.Catalog[source]
create_handler(name: typing_extensions.Literal[FileSystem])cowbird.handlers.impl.filesystem.FileSystem
create_handler(name: typing_extensions.Literal[Geoserver])cowbird.handlers.impl.geoserver.Geoserver
create_handler(name: typing_extensions.Literal[Magpie])cowbird.handlers.impl.magpie.Magpie
create_handler(name: typing_extensions.Literal[Nginx])cowbird.handlers.impl.nginx.Nginx
create_handler(name: typing_extensions.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.

get_handler(name: typing_extensions.Literal[Catalog])cowbird.handlers.impl.catalog.Catalog[source]
get_handler(name: typing_extensions.Literal[FileSystem])cowbird.handlers.impl.filesystem.FileSystem
get_handler(name: typing_extensions.Literal[Geoserver])cowbird.handlers.impl.geoserver.Geoserver
get_handler(name: typing_extensions.Literal[Magpie])cowbird.handlers.impl.magpie.Magpie
get_handler(name: typing_extensions.Literal[Nginx])cowbird.handlers.impl.nginx.Nginx
get_handler(name: typing_extensions.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.

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

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