Class Service


  • public class Service
    extends Object
    Service of Nacos

    We introduce a 'service --> cluster --> instance' model, in which service stores a list of clusters, which contains a list of instances.

    Typically we put some unique properties between instances to service level.

    Author:
    nkorange
    • Constructor Detail

      • Service

        public Service()
      • Service

        public Service​(String name)
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getProtectThreshold

        public float getProtectThreshold()
      • setProtectThreshold

        public void setProtectThreshold​(float protectThreshold)
      • getAppName

        public String getAppName()
      • setAppName

        public void setAppName​(String appName)
      • getGroupName

        public String getGroupName()
      • setGroupName

        public void setGroupName​(String groupName)
      • setMetadata

        public void setMetadata​(Map<String,​String> metadata)
      • addMetadata

        public void addMetadata​(String key,
                                String value)