cowbird.services.service_factory

Module Contents

Classes

ServiceFactory

Create service instance using service name.

Attributes

LOGGER

VALID_SERVICES

cowbird.services.service_factory.LOGGER[source]
cowbird.services.service_factory.VALID_SERVICES = ['Catalog', 'Geoserver', 'Magpie', 'Nginx', 'Thredds', 'FileSystem'][source]
class cowbird.services.service_factory.ServiceFactory[source]

Create service instance using service name.

create_service(name: ServiceFactory)cowbird.services.service.Service[source]

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

get_service(name: ServiceFactory)cowbird.services.service.Service[source]

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

get_active_services()List[cowbird.services.service.Service][source]

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