Class ServerServicesStatus

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServerServicesStatus
    extends java.lang.Object
    implements java.io.Serializable
    ServerServicesStatus documents the status of a server and the services within it.
    See Also:
    Serialized Form
    • Constructor Detail

      • ServerServicesStatus

        public ServerServicesStatus()
        Default constructor for Jackson
      • ServerServicesStatus

        public ServerServicesStatus​(ServerServicesStatus template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getServerName

        public java.lang.String getServerName()
        Return the server name
        Returns:
        String
      • setServerName

        public void setServerName​(java.lang.String serverName)
        Set the name of the server
        Parameters:
        serverName - the name of the server
      • getServerType

        public java.lang.String getServerType()
        Return the type of server that is hosting these services.
        Returns:
        string name
      • setServerType

        public void setServerType​(java.lang.String serverType)
        Set up the type of server that is hosting these services.
        Parameters:
        serverType - string name
      • setServerActiveStatus

        public void setServerActiveStatus​(ServerActiveStatus serverActiveStatus)
        Set up the current status of the server.
        Parameters:
        serverActiveStatus - new status
      • getServerActiveStatus

        public ServerActiveStatus getServerActiveStatus()
        Return the current status of the server.
        Returns:
        server instance status enum
      • getServices

        public java.util.List<OMAGServerServiceStatus> getServices()
        Return the services and their status.
        Returns:
        services list
      • setServices

        public void setServices​(java.util.List<OMAGServerServiceStatus> services)
        Set up the services and their status.
        Parameters:
        services - services list
      • toString

        public java.lang.String toString()
        JSON like toString method
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representing the local variables
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Return comparison result based on the content of the properties.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - test object
        Returns:
        result of comparison
      • hashCode

        public int hashCode()
        Return hash code for this object
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int hash code