ocrd_network.runtime_data package¶
- class ocrd_network.runtime_data.Deployer(config_path: str)[source]¶
Bases:
object
- find_matching_network_agents(worker_only: bool = False, server_only: bool = False, docker_only: bool = False, native_only: bool = False, str_names_only: bool = False, unique_only: bool = False, sort: bool = False) List[str] | List[object] [source]¶
Finds and returns a list of matching data objects of type: DataProcessingWorker and DataProcessorServer.
worker_only
match only worker network agents (DataProcessingWorker)server_only
match only server network agents (DataProcessorServer)docker_only
match only docker network agents (DataProcessingWorker and DataProcessorServer)native_only
match only native network agents (DataProcessingWorker and DataProcessorServer)str_names_only
returns the processor_name filed instead of the Data* objectunique_only
remove duplicate names from the matchessort
sort the resultworker_only and server_only are mutually exclusive to each other docker_only and native_only are mutually exclusive to each other unique_only is allowed only together with str_names_only
- class ocrd_network.runtime_data.DataHost(host: str, username: str, password: str, keypath: str, workers: List[Dict], servers: List[Dict])[source]¶
Bases:
object
- class ocrd_network.runtime_data.DataMongoDB(host: str, port: int, ssh_username: str | None, ssh_keypath: str | None, ssh_password: str | None, cred_username: str | None, cred_password: str | None, skip_deployment: bool, protocol: str = 'mongodb')[source]¶
Bases:
DataNetworkService
- class ocrd_network.runtime_data.DataNetworkAgent(processor_name: str, deploy_type: DeployType, agent_type: AgentType, host: str, init_by_config: bool, pid: Any | None = None)[source]¶
Bases:
object
- class ocrd_network.runtime_data.DataRabbitMQ(host: str, port: int, ssh_username: str | None, ssh_keypath: str | None, ssh_password: str | None, cred_username: str | None, cred_password: str | None, skip_deployment: bool, protocol: str = 'amqp', vhost: str = '/')[source]¶
Bases:
DataNetworkService
- class ocrd_network.runtime_data.DataProcessingWorker(processor_name: str, deploy_type: DeployType, host: str, init_by_config: bool, pid: Any | None = None)[source]¶
Bases:
DataNetworkAgent
- class ocrd_network.runtime_data.DataProcessorServer(processor_name: str, deploy_type: DeployType, host: str, port: int, init_by_config: bool, pid: Any | None = None)[source]¶
Bases:
DataNetworkAgent
Submodules¶
- ocrd_network.runtime_data.config_parser module
- ocrd_network.runtime_data.connection_clients module
- ocrd_network.runtime_data.deployer module
Deployer
Deployer.find_matching_network_agents()
Deployer.resolve_processor_server_url()
Deployer.deploy_network_agents()
Deployer.stop_network_agents()
Deployer.deploy_rabbitmq()
Deployer.stop_rabbitmq()
Deployer.deploy_mongodb()
Deployer.stop_mongodb()
Deployer.stop_all()
Deployer.start_uds_mets_server()
Deployer.stop_uds_mets_server()
- ocrd_network.runtime_data.hosts module
- ocrd_network.runtime_data.network_agents module
- ocrd_network.runtime_data.network_services module