Class Server

  • All Implemented Interfaces:
    java.lang.Comparable<Server>

    public class Server
    extends java.lang.Object
    implements java.lang.Comparable<Server>
    Represents a Server that is running Plan.
    • Constructor Detail

      • Server

        public Server​(ServerUUID uuid,
                      java.lang.String name,
                      java.lang.String webAddress)
      • Server

        public Server​(java.lang.Integer id,
                      ServerUUID uuid,
                      java.lang.String name,
                      java.lang.String webAddress,
                      boolean proxy)
    • Method Detail

      • getId

        public java.util.Optional<java.lang.Integer> getId()
      • setId

        public void setId​(int id)
      • getName

        public java.lang.String getName()
      • getIdentifiableName

        public static java.lang.String getIdentifiableName​(java.lang.String name,
                                                           int id)
      • getIdentifiableName

        public java.lang.String getIdentifiableName()
      • setName

        public void setName​(java.lang.String name)
      • getWebAddress

        public java.lang.String getWebAddress()
      • setWebAddress

        public void setWebAddress​(java.lang.String webAddress)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(Server other)
        Specified by:
        compareTo in interface java.lang.Comparable<Server>
      • isProxy

        public boolean isProxy()
      • setProxy

        public void setProxy​(boolean proxy)
      • isNotProxy

        public boolean isNotProxy()