Class ServerStatus

    • Constructor Detail

      • ServerStatus

        public ServerStatus()
        Default constructor for Jackson
      • ServerStatus

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

        public ServerStatus​(String serverName,
                            boolean isActive,
                            Date serverStartTime,
                            Date serverEndTime,
                            List<OMAGServerInstanceHistory> serverHistory)
        Constructor used to create the history.
        Parameters:
        serverName - the name of the server
        isActive - whether the server is active
        serverStartTime - the time the server last started
        serverEndTime - the time the server last stopped
        serverHistory - the history of start and end times for the server
    • Method Detail

      • getServerName

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

        public void setServerName​(String serverName)
        Set the name of the server
        Parameters:
        serverName - the name of the server
      • getIsActive

        public boolean getIsActive()
        Return an indication of whether the server is active
        Returns:
        boolean
      • setIsActive

        public void setIsActive​(boolean isActive)
        Set the indication of whether the server is active
        Parameters:
        isActive - indicating whether the server is active
      • getServerStartTime

        public Date getServerStartTime()
        Return the time that this instance of the server started.
        Returns:
        date/time object
      • setServerStartTime

        public void setServerStartTime​(Date serverStartTime)
        Set up the time that this instance of the server started.
        Parameters:
        serverStartTime - date/time object
      • getServerEndTime

        public Date getServerEndTime()
        Return the time when this instance of the server ended.
        Returns:
        date/time object
      • setServerEndTime

        public void setServerEndTime​(Date serverEndTime)
        Set up the time when this instance of the server ended.
        Parameters:
        serverEndTime - date/time object
      • getServerHistory

        public List<OMAGServerInstanceHistory> getServerHistory()
        Return the list of start and stop times for the previous restarts of the server.
        Returns:
        server history
      • setServerHistory

        public void setServerHistory​(List<OMAGServerInstanceHistory> serverHistory)
        Set the history of server start and stop times
        Parameters:
        serverHistory - date/time object
      • toString

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

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

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