轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
datasource-observer

wacodis/datasource-observer

wacodis

Observer component that discovers certain datasources for required data to execute WaCoDiS processes

下载次数: 0状态:社区镜像维护者:wacodis仓库类型:镜像最近更新:4 年前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,快一点,稳很多。
点击查看

WaCoDiS Datasource Observer

!https://github.com/WaCoDiS/datasource-observer/workflows/Build/badge.svg
Observer component for data model supported SubsetJobDefinitions.

The WaCoDiS Datasource Observer component provides routines for handling WaCoDiS job creation and deletion events. As each WaCoDiS job requires concrete datasets of supported datasources (e.g. Copernicus satellite data or sensor data) to start its result computation, the role of the data source observer is to query and observe each required datasource so that relevant metadata about relevant datasets can be stored and used in subsequent steps of the WaCoDiS pipeline.

Table of Content

  1. WaCoDiS Project Information
  2. Overview
  3. Installation / Building Information
  4. Deployment
  5. Developer Information
  6. Contact
  7. Credits and Contributing Organizations

WaCoDiS Project Information

Climate changes and the ongoing intensification of agriculture effect in increased material inputs in watercourses and dams. Thus, water industry associations, suppliers and municipalities face new challenges. To ensure an efficient and environmentally friendly water supply for the future, adjustments on changing conditions are necessary. Hence, the research project WaCoDiS aims to geo-locate and quantify material outputs from agricultural areas and to optimize models for sediment and material inputs (nutrient contamination) into watercourses and dams. Therefore, approaches for combining heterogeneous data sources, existing interoperable web based information systems and innovative domain oriented models will be explored.

Architecture Overview

For a detailed overview about the WaCoDiS system architecture please visit the https://github.com/WaCoDiS/core-engine repository.

Overview

The WaCoDiS Datasource Observer is capable of querying metadata about concrete datasets from different datasources that is needed as input data for WaCoDiS processing jobs. Currently supported datasources comprise (the list can be extended through implementation of the relevant source code interfaces):

  • Copernicus satellite data from either
    • SentinelHub
    • Code-DE
  • Sensor Data served by standardized OGC Sensor Observation Service APIs (OGC SOS)
  • Weather Information available from German weather service (DWD)

For each supported datasource additional spatio-temporal information is required so the Datasource Observer may know which concrete datasets must be queried. In essence, the following aspects are consumed:

  • spatial bounding box of the area of interest
  • temporal parameters (point/period in time)

Within the WaCoDiS system, the Datasource Observer subscribes to message broker WacodisJobDefinition creation/deletion events sent by the https://github.com/WaCoDiS/job-definition-api. Each WacodisJobDefinition includes all necessary information about the previously mentioned spatio-temporal aspects as well as details about required datasets from the upper listed datasources (so-called WaCoDiS SubsetDefinitions).

On WacodisJobDefinition creation events the Datasource Observer analyzes the job details and may start to observe the relevent datasources, i.e. query metadata about actual datasets for the job specific spatio-temporal and Subset-depending settings. According to the various WacodisJobDefinition settings these observations may vary between single-time-execution events or regularly repeated processes, observing processes might be started immediately or in the future, and data queries might cover datasets from the past or current datasets.

As soon as relevant datasets are identified the queried dataset metadata is sent as DataEnvelope event to the message broker. Subscribed components (i.e. https://github.com/WaCoDiS/metadata-connector) pick up and process that information (e.g. check whether metadata for the found datasets have been already registered at the https://github.com/WaCoDiS/data-access-api)

Regarding the number of observation jobs compared to the number of WacodisJobDefinitions, there is not necessarily a 1:1 relationship. Instead, the Datasource Observer compares the observing characteristics of new WacodisJobDefinitions to already running observation jobs. Only if a different datasource or disjoint area of interest is demanded, a new separate observation job is started. Otherwise an already existing observation job is simply enhanced by the new WacodisJobDefinition details, i.e. by storing its unique job ID within a list of associated WacodisJobDefinition IDs and - if required - expand intersecting bounding boxes of the respective areas of interest.

On WacodisJobDefinition deletion events, any associated running observation job is updated. The association to the deleted WacodisJobDefinition is removed. If no other existing WacodisJobDefinition is still associated to the observation job, it will be stopped. Otherwise, the observation bounding box is recalculated from the remaining other associated WacodisJobDefinitions.

Modules

The WaCoDiS Datasource Observer comprises seven Maven modules:

  • Models
    This module contains Java classes that reflect the basic data model. This includes the data types specified with OpenAPI in the WaCoDiS apis-and workflows repository. All model classes were generated by the OpenAPI Generator, which is integrated and can be used as Maven Plugin within this module.
  • Core
    This core module contains the main logic to receive and react upon WacodisJobDefinition creation/delete message broker events. This comprises WacodisJobDefinition validation of observer relevant aspects, observer jobs management (creation, enhancing/expanding/shrinking of spatial bounding box for new/deleted similar WacodisJobDefinition, deletion), triggering of observer job execution (as single-time-execution or repeated execution) and message broker publishing of found actual dataset metadata as DataEnvelope. Remarkably, the core module provides generic interface JobFactory to handle the creation of observation jobs for performing the actual datasource queries. The concrete implementation of supported datasources is realized by separate Maven modules (see below).
  • App
    Since WaCoDiS Datasource Observer is implemented as Spring Boot application, the App module provides the application runner as well as default externalized configurations.
  • Code-DE Observer
    Implementation of the core interface JobFactory providing support for querying Copernicus satellite scenes from the Code-DE platform.
  • Sentinel Observer
    Implementation of the core interface JobFactory providing support for querying Copernicus satellite scenes from the SentinelHub platform.
  • DWD Observer
    Implementation of the core interface JobFactory providing support for querying weather data from the German weather data provider DWD.
  • Sensor Web Observer
    Implementation of the core interface JobFactory providing support for querying sensor data from standardized Sensor Observation Services.

Technologies

  • Java
    WaCoDiS Datasource Observer is tested with Oracle JDK 8 and OpenJDK 8. Unless stated otherwise later Java versions can be used as well.
  • Maven
    This project uses the build-management tool https://maven.apache.org/
  • Spring Boot
    WaCoDiS Datasource Observer is a standalone application built with the https://spring.io/projects/spring-boot framework. Therefore, it is not necessary to deploy WaCoDiS Datasource Observer manually with a web server.
  • Spring Cloud
    https://spring.io/projects/spring-cloud is used for exploiting some ready-to-use features in order to implement an event-driven workflow. In particular, https://spring.io/projects/spring-cloud-stream is used for subscribing to asynchronous messages within the WaCoDiS system.
  • RabbitMQ
    For communication with other WaCoDiS components of the WaCoDiS system the message broker https://www.rabbitmq.com/ is utilized. RabbitMQ is not part of WaCoDiS Datasource Observer and therefore must be deployed separately.
  • OpenAPI
    https://github.com/OAI/OpenAPI-Specification is used for the specification of data models used within this project.
  • Quartz
    Quartz is a Java API for execution of recurrent, regular tasks based on a http://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07. Quartz is used for scheduling the observation jobs.

Installation / Building Information

Build from Source

In order to build the WaCoDiS Datasource Observer from source Java Development Kit (JDK) must be available. Data Access is tested with Oracle JDK 8 and OpenJDK 8. Unless stated otherwise later JDK versions can be used.

Since this is a Maven project, https://maven.apache.org/ must be available for building it. Then, you can build the project by running mvn clean install from root directory

Build using Docker

The project contains a Dockerfile for building a Docker image. Simply run docker build -t wacodis/datasource-observer:latest . in order to build the image. You will find some detailed information about running the Datasource Observer as Docker container within the deployment section.

Configuration

Configuration is fetched from https://github.com/WaCoDiS/config-server. If config server is not available, configuration values located at src/main/resources/application.yml within the Datasource Observer App submodule are applied instead.

Parameters

WaCoDiS Datasource Observer is a Spring Boot application and provides an application.yml within the datasource-observer-app module for configuration purpose. A documentation for common application properties can be found at https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html

In addition, some configuration parameters relate to different Spring Cloud components, i.e. https://docs.spring.io/spring-cloud-stream/docs/current/reference/html/ and https://docs.spring.io/spring-cloud-config/docs/current/reference/html/.

The following section contains descriptions for configuration parameters structured by configuration section.

spring/cloud/stream/bindings/job-creation

configuration of message channel for receiving messages when a new job is created

valuedescriptionnote
destinationtopic used for messages about created WaCoDiS jobse.g. wacodis.test.jobs.new
binderdefines the binder (message broker)
content-typecontent type of the messagesshould always be application/json

spring/cloud/stream/bindings/job-deletion

configuration of message channel for receiving messages when an existing job is deleted

valuedescriptionnote
destinationtopic used for messages about deleted WaCoDiS jobse.g. wacodis.test.jobs.deleted
binderdefines the binder (message broker)
content-typecontent type of the messagesshould always be application/json

spring/cloud/stream/bindings/output-data-envelope

configuration of message channel for publishing messages on newly available dataset metadata as DataEnvelope

valuedescriptionnote
destinationtopic used to receive messages on newly available datasets, must be aligned with Metadata Connector API confige.g. wacodis.test.data.available
binderdefines the binder (message broker)
content-typecontent type of DataEnvelope acknowledgement messages (mime type)should always be application/json

spring/cloud/config

configuration of target URL of a running config server serving dynamic app config file

valuedescriptionnote
urltarget URL to running config server that holds config file for Datasource Observer Appe.g. http:localhost:8888

spring/rabbitmq

parameters related to WaCoDis message broker

valuedescriptionnote
hostRabbitMQ host (WaCoDiS message broker)e.g. localhost
portRabbitMQ port (WaCoDiS message broker)e.g. 5672
usernameRabbitMQ username (WaCoDiS message broker)
passwordRabbitMQ password (WaCoDiS message broker)

spring/datasource.core.quartz-data-source

Per default, Quartz scheduler makes use of an in-memory job store. In order to configure a JDBC-based store, Core Engine provides a DataSource bean which can be configured using spring.datasource.core.quartz-data-source. To configure the DataSource just follow the https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-configure-a-datasource.

spring/quartz

Quartz scheduler related beans are provided using https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-quartz. Hence, the scheduler can be configured via externalized configuration using spring.quartz.properties. Just set the usual Quartz configuration properties.

datasource-observer/execution/interval

parameters related to WaCoDis Datasource Observer execution interval settings

valuedescriptionnote
sentinelexecution interval for re-triggering sentinel-based observation jobs periodically in secondse.g. 3600 ~ 5 minutes
sensorWebexecution interval for re-triggering Sensor Observation Service based observation jobs periodically in secondse.g. 3600 ~ 5 minutes
dwdexecution interval for re-triggering weather data (German DWD) based observation jobs periodically in secondse.g. 3600 ~ 5 minutes

datasource-observer/sentinelhub

parameters related to WaCoDis Datasource Observer SentinelHub settings

valuedescriptionnote
enabledboolean true or false to enable SentineHub based Copernicus data observation (either SentinelHub or Code-DE can be activated, not both at the same time)e.g. text
base-urlurl to entrypoint of SentinelHub APIe.g. [**]
userusername for SentinelHub requests
passwordpassword for SentinelHub requests

datasource-observer/code-de

parameters related to WaCoDis Datasource Observer SentinelHub settings

valuedescriptionnote
enabledboolean true or false to enable Code-DE based Copernicus data observation (either SentinelHub or Code-DE can be activated, not both at the same time)e.g. text

Deployment

Dependencies

WaCoDiS Datasource Observer requires a running RabbitMQ instance for consuming messages as well as a running WaCoDiS Job Definition API for receiving WacodisJobDefinition creation/deletion event. Furthermore, outgoing DataEnevlop messages sent by the Datasource Observer against a dedicated rabbitMQ topic, are picked up by the Metadata Connector (However, a running Metadata Connector is not required to run the Datasource Observer). For starting a RabbitMQ instance as Docker container a docker-compose.yml is provided at ./docker/rabbitmq. Detailed deployment instructions for the Job Definition Api can be found at https://github.com/WaCoDiS/job-definition-api. Same applies for the https://github.com/WaCoDiS/metadata-connector.

Run with Maven

Just start the application by running mvn spring-boot:run from the root of the metadata-connector-app module. Make sure you have installed all dependencies with mvn clean install from the project root.

Run with Docker

For convenience, a docker-compose.yml is provided for running the Datasource Observer as Docker container. Just, run docker-compose up from the project root. The latest Docker image will be fetched from https://hub.docker.com/repository/docker/wacodis/datasource-observer. The docker-compose.yml also contains the most important configuration parameters as environment variables. Feel free to adapt the parameters for your needs.

Developer Information

Developer guidelines

The role of the Datasource Observer is to fetch metadata about concrete datasets from supported datasources (satellite data, weather data, sensor data) required for at least one WacodisJobDefinition. To be precise, a WacodisJobDefinition specifies one ore more required data inputs from supported datasource types (data source types are called SubsetDefinitions with respect to the WaCoDiS data model). In addition, spatio-temporal parameters are submitted for each input data type (or globally) to be ***ed within the data queries performed by the Datasource Observer. datasources. With regard implementations of the model class AbstractSubsetDefinition, the Datasource Observer supports the following dataset types and is able to perform queries against the respective datasource. AbstractSubsetDefinition model class implementations

  • CopernicusSubsetDefinition: Describes a Copernicus resource e.g., provided at CODE-DE or SentinelHub.
  • DwdSubsetDefinition: Describes datasets provided by the German Weather Services via WFS.
  • SensorWebSubsetDefinition: Describes a standardized Sensor Observtion Service resource.

For each of the previously listed supported datasource types, the Datasource Observer provides implementations of its core interface JobFactory, which internally relies on the Java Quartz library to trigger and schedule the actual datasource queries by implementing associated Quartz Job class. Current implementations include:

  • CodeDeJobFactory and CodeDeJob: Implements data queries against Copernicus satellite datasets from CODE-DE platform.
  • SentinelJobFactory and SentinelJob: Implements data queries against Copernicus satellite datasets from SentinelHub platform.
  • SensorWebFactory and SensorWebJob: Implements data queries against standardized Sensor Observtion Services.
  • DwdJobFactory and DwdJob: Implements data queries against weather data provided by the German Weather Services via WFS.

It is possible to enhance Datasource Observer for handling additional dataset types. To do so, the following steps are required:

  1. Make sure that the datasource type is present within the WaCoDiS data model as implementation of the abstract model AbstractSubsetDefinition.
    1. In order to be consistent with other WaCoDiS components regarding the support for different data types, we strongly recommend generating the new model classes from an https://github.com/WaCoDiS/apis-and-workflows/tree/master/openapi. If not already done, first define your new DataEnvelope within the OpenAPI document.
    2. The Datasource Observer Models module provides Maven profiles for automatically generating model classes from an OpenAPI document. The generate-models profile generates the models from a Maven artifact you first have to create for the https://github.com/WaCoDiS/apis-and-workflows/tree/master/openapi project. By using the download-generate-models profile there is no need to create the artifact in beforehand, since the execution of this profile will download the latest OpenAPI definitions and then creates the models on top of it. You can trigger the profiles by respectively running mvn clean compile -Pgenerate-models and mvn clean compile -Pdownload-generate-models.
  2. Implement the core module interface JobFactory and associated Quartz's Job class.
    1. It is advised to encapsulate the implementation within a separate Maven module to keep it clean from the core code and focus the code on the actual data query means.
    2. For examples inspect the already existing Maven Modules code-de-observer, sentinel-observer, dwd-observer or sensor-web-observer
    3. edit the root pom.xml and include the new Maven module in the modules section

How to contribute

Feel free to implement missing features by creating a pull request. For any feature requests or found bugs, we kindly ask you to create an issue.

Branching

The master branch provides sources for stable builds. The develop branch represents the latest (maybe unstable) state of development.

License

Apache License, Version 2.0

Contributing Developers

NameOrganizationGitHub
Sebastian Drost52° North GmbHhttps://github.com/SebaDro
Arne Vogt52° North GmbHhttps://github.com/arnevogt
Christian Danowski-BuhrenBochum University of Applied Scienceshttps://github.com/cDanowski
Matthes Rieke52° North GmbHhttps://github.com/matthesrieke

Contact

The WaCoDiS project is maintained by 52°North GmbH. If you have any questions about this or any other repository related to WaCoDiS, please contact ***.

Credits and Contributing Organizations

  • Department of Geodesy, Bochum University of Applied Sciences, Bochum
  • 52° North Initiative for Geospatial Open Source Software GmbH, Münster
  • Wupperverband, Wuppertal
  • EFTAS Fernerkundung Technologietransfer GmbH, Münster

The research project WaCoDiS is funded by the BMVI as part of the mFund programme

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 datasource-observer 镜像标签

docker pull docker.xuanyuan.run/wacodis/datasource-observer:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull wacodis/datasource-observer:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

专属域名用法

专属域名 · 开启停用 · 多仓库

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
wacodis/datasource-observer
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 datasource-observer 镜像推荐

hkube/datasources-service logo

hkube/datasources-service

hkube
暂无描述
1万+ 次下载
1 个月前更新
nasqueron/api-datasources logo

nasqueron/api-datasources

nasqueron
Nasqueron API Datasources microservice
957 次下载
6 年前更新
nasqueron/datasources logo

nasqueron/datasources

nasqueron
该镜像提供用于构建数据管道的组件,包括FANTOIR数据导入、IANA语言子标签处理、RFC索引转换及Opendatasoft API查询等功能,可用于开放数据处理和IRC机器人数据库更新。
567 次下载
1 年前更新
homeassistant/amd64-hassio-observer logo

homeassistant/amd64-hassio-observer

Home Assistant 智能家居平台
暂无描述
4 次收藏500万+ 次下载
3 年前更新
homeassistant/armv7-hassio-observer logo

homeassistant/armv7-hassio-observer

Home Assistant 智能家居平台
暂无描述
1 次收藏100万+ 次下载
3 年前更新
mesosphere/cluster-observer logo

mesosphere/cluster-observer

mesosphere
暂无描述
50万+ 次下载
2 个月前更新

查看更多 datasource-observer 相关镜像