类 ServiceStorage


  • @Component
    public class ServiceStorage
    extends java.lang.Object
    Service storage.
    作者:
    xiweng.yy
    • 字段详细资料

      • serviceDataIndexes

        private final java.util.concurrent.ConcurrentMap<Service,​com.alibaba.nacos.api.naming.pojo.ServiceInfo> serviceDataIndexes
      • serviceClusterIndex

        private final java.util.concurrent.ConcurrentMap<Service,​java.util.Set<java.lang.String>> serviceClusterIndex
    • 方法详细资料

      • getClusters

        public java.util.Set<java.lang.String> getClusters​(Service service)
      • getData

        public com.alibaba.nacos.api.naming.pojo.ServiceInfo getData​(Service service)
      • getPushData

        public com.alibaba.nacos.api.naming.pojo.ServiceInfo getPushData​(Service service)
      • removeData

        public void removeData​(Service service)
      • emptyServiceInfo

        private com.alibaba.nacos.api.naming.pojo.ServiceInfo emptyServiceInfo​(Service service)
      • getAllInstancesFromIndex

        private java.util.List<com.alibaba.nacos.api.naming.pojo.Instance> getAllInstancesFromIndex​(Service service)
      • parseBatchInstance

        private java.util.List<com.alibaba.nacos.api.naming.pojo.Instance> parseBatchInstance​(Service service,
                                                                                              BatchInstancePublishInfo batchInstancePublishInfo,
                                                                                              java.util.Set<java.lang.String> clusters)
        Parse batch instance.
        参数:
        service - service
        batchInstancePublishInfo - batchInstancePublishInfo
        返回:
        batch instance list
      • getInstanceInfo

        private java.util.Optional<InstancePublishInfo> getInstanceInfo​(java.lang.String clientId,
                                                                        Service service)
      • parseInstance

        private com.alibaba.nacos.api.naming.pojo.Instance parseInstance​(Service service,
                                                                         InstancePublishInfo instanceInfo)