复古 护眼 海天 深邃 暗黑 默认

StandalonePersistRepository

全限定类名

org.apache.shardingsphere.mode.repository.standalone.StandalonePersistRepository

定义

单机模式配置信息持久化定义

已知实现

配置标识 详细说明 全限定类名
H2 基于 H2 的持久化 org.apache.shardingsphere.mode.repository.standalone.h2.H2Repository

ClusterPersistRepository

全限定类名

org.apache.shardingsphere.mode.repository.cluster.ClusterPersistRepository

定义

集群模式配置信息持久化定义

已知实现

配置标识 详细说明 全限定类名
ZooKeeper 基于 ZooKeeper 的持久化 org.apache.shardingsphere.mode.repository.cluster.zookeeper.CuratorZookeeperRepository
etcd 基于 Etcd 的持久化 org.apache.shardingsphere.mode.repository.cluster.etcd.EtcdRepository
Nacos 基于 Nacos 的持久化 org.apache.shardingsphere.mode.repository.cluster.nacos.NacosRepository
Consul 基于 Consul 的持久化 org.apache.shardingsphere.mode.repository.cluster.consul.ConsulRepository

GovernanceWatcher

全限定类名

org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.GovernanceWatcher

定义

治理监听器定义

已知实现

配置标识 详细说明 全限定类名
Types: ADDED, UPDATED, DELETED; WatchingKeys: /nodes/compute_nodes 计算节点状态变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.status.compute.watcher.ComputeNodeStateChangedWatcher
Types: ADDED, DELETED; WatchingKeys: /lock/database/locks 数据库锁状态变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.lock.database.watcher.DatabaseLockChangedWatcher
Types: ADDED, DELETED; WatchingKeys: /lock/distributed/locks 分布式锁变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.lock.distributed.watcher.DistributedLockChangedWatcher
Types: UPDATED; WatchingKeys: /rules 全局规则配置变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.config.watcher.GlobalRuleChangedWatcher
Types: ADDED, UPDATED, DELETED; WatchingKeys: /metadata/${databaseName} 元数据变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.metadata.watcher.MetaDataChangedWatcher
Types: ADDED, UPDATED; WatchingKeys: /props 属性变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.config.watcher.PropertiesChangedWatcher
Types: ADDED, UPDATED, DELETED; WatchingKeys: /nodes/storage_nodes 存储节点状态变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.status.storage.watcher.StorageNodeStateChangedWatcher