Class InstanceClusterShard

    • Constructor Detail

      • InstanceClusterShard

        public InstanceClusterShard()
      • InstanceClusterShard

        public InstanceClusterShard​(InstanceClusterShard source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getShardName

        public String getShardName()
        Get 分片节点名称。
        Returns:
        ShardName 分片节点名称。
      • setShardName

        public void setShardName​(String ShardName)
        Set 分片节点名称。
        Parameters:
        ShardName - 分片节点名称。
      • getShardId

        public String getShardId()
        Get 分片节点序号。
        Returns:
        ShardId 分片节点序号。
      • setShardId

        public void setShardId​(String ShardId)
        Set 分片节点序号。
        Parameters:
        ShardId - 分片节点序号。
      • getRole

        public Long getRole()
        Get 分片节点的角色。 - 0:主节点。 - 1:副本节点。
        Returns:
        Role 分片节点的角色。 - 0:主节点。 - 1:副本节点。
      • setRole

        public void setRole​(Long Role)
        Set 分片节点的角色。 - 0:主节点。 - 1:副本节点。
        Parameters:
        Role - 分片节点的角色。 - 0:主节点。 - 1:副本节点。
      • getKeys

        public Long getKeys()
        Get Key数量。
        Returns:
        Keys Key数量。
      • setKeys

        public void setKeys​(Long Keys)
        Set Key数量。
        Parameters:
        Keys - Key数量。
      • getSlots

        public String getSlots()
        Get Slot信息。
        Returns:
        Slots Slot信息。
      • setSlots

        public void setSlots​(String Slots)
        Set Slot信息。
        Parameters:
        Slots - Slot信息。
      • getStorage

        public Long getStorage()
        Get 已使用容量。
        Returns:
        Storage 已使用容量。
      • setStorage

        public void setStorage​(Long Storage)
        Set 已使用容量。
        Parameters:
        Storage - 已使用容量。
      • getStorageSlope

        public Float getStorageSlope()
        Get 容量倾斜率。
        Returns:
        StorageSlope 容量倾斜率。
      • setStorageSlope

        public void setStorageSlope​(Float StorageSlope)
        Set 容量倾斜率。
        Parameters:
        StorageSlope - 容量倾斜率。
      • getRunid

        public String getRunid()
        Get 实例运行时节点 ID。
        Returns:
        Runid 实例运行时节点 ID。
      • setRunid

        public void setRunid​(String Runid)
        Set 实例运行时节点 ID。
        Parameters:
        Runid - 实例运行时节点 ID。
      • getConnected

        public Long getConnected()
        Get 服务状态。 - 0:down。 - 1:on。
        Returns:
        Connected 服务状态。 - 0:down。 - 1:on。
      • setConnected

        public void setConnected​(Long Connected)
        Set 服务状态。 - 0:down。 - 1:on。
        Parameters:
        Connected - 服务状态。 - 0:down。 - 1:on。