Class MemberEntry

java.lang.Object
io.micronaut.discovery.consul.client.v1.MemberEntry

public class MemberEntry extends Object
A member entry of a Consul cluster. See https://www.consul.io/api/agent.html
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • MemberEntry

      public MemberEntry()
  • Method Details

    • getName

      public String getName()
      Returns:
      The name of this memeber
    • setName

      public void setName(String name)
      Parameters:
      name - Name of this member
    • getAddress

      public InetAddress getAddress()
      Returns:
      The InetAddress of this member
    • setAddress

      public void setAddress(InetAddress address)
      Parameters:
      address - The InetAddress of this member
    • getPort

      public Integer getPort()
      Returns:
      The port this member is listening on
    • setPort

      public void setPort(Integer port)
      Parameters:
      port - Listening port
    • getTags

      public Map<String,String> getTags()
      Returns:
      Tags associated with this member
    • setTags

      public void setTags(Map<String,String> tags)
      Parameters:
      tags - Tags associated with this member
    • getStatus

      public Integer getStatus()
      Returns:
      Status of this member
    • setStatus

      public void setStatus(Integer status)
      Parameters:
      status - Status of this member