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

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.ZookeeperRepository
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/status 集群状态变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.status.cluster.watcher.ClusterStateChangedWatcher
Types: ADDED, UPDATED, DELETED; WatchingKeys: /nodes/compute_nodes 计算节点状态变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.status.compute.watcher.ComputeNodeStateChangedWatcher
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: UPDATED; WatchingKeys: /rules 全局规则变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.config.watcher.GlobalRuleChangedWatcher
Types: ADDED, UPDATED, DELETED; WatchingKeys: /sys_data 系统库变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.config.watcher.ShardingSphereDataChangedWatcher
Types: ADDED, UPDATED, DELETED; WatchingKeys: /nodes/storage_nodes 存储节点状态变化监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.status.storage.watcher.StorageNodeStateChangedWatcher
Types: DELETED; WatchingKeys: /lock/exclusive/locks/cluster_lock 集群锁释放监听器 org.apache.shardingsphere.mode.manager.cluster.coordinator.registry.status.cluster.watcher.lock.ClusterLockDeletedWatcher