org.apache.shardingsphere.mode.repository.standalone.StandalonePersistRepository
单机模式配置信息持久化定义
配置标识 | 详细说明 | 全限定类名 |
---|---|---|
H2 | 基于 H2 的持久化 | org.apache.shardingsphere.mode.repository.standalone.h2.H2Repository |
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 |
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, 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 |