Class InstanceId

java.lang.Object
me.ahoo.cosid.machine.InstanceId

@Immutable public class InstanceId extends Object
InstanceId.
See Also:
  • Field Details

  • Constructor Details

    • InstanceId

      public InstanceId(String instanceId, boolean stable)
  • Method Details

    • isStable

      public boolean isStable()
      稳定的的实例拥有稳定的机器号.
      Returns:
      Is the instance deployment status stable?
    • getInstanceId

      public String getInstanceId()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static InstanceId of(String host, int port, boolean stable)
    • of

      public static InstanceId of(String instanceId, boolean stable)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object