Class ServerStatus

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServerStatus
    extends java.lang.Object
    implements java.io.Serializable
    OMAGServerInstanceHistory documents the start and end of a server instance.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Return comparison result based on the content of the properties.
      boolean getIsActive()
      Return an indication of whether the server is active
      java.util.Date getServerEndTime()
      Return the time when this instance of the server ended.
      java.util.List<OMAGServerInstanceHistory> getServerHistory()
      Return the list of start and stop times for the previous restarts of the server.
      java.lang.String getServerName()
      Return the server name
      java.util.Date getServerStartTime()
      Return the time that this instance of the server started.
      int hashCode()
      Return hash code for this object
      void setIsActive​(boolean isActive)
      Set the indication of whether the server is active
      void setServerEndTime​(java.util.Date serverEndTime)
      Set up the time when this instance of the server ended.
      void setServerHistory​(java.util.List<OMAGServerInstanceHistory> serverHistory)
      Set the history of server start and stop times
      void setServerName​(java.lang.String serverName)
      Set the name of the server
      void setServerStartTime​(java.util.Date serverStartTime)
      Set up the time that this instance of the server started.
      java.lang.String toString()
      JSON like toString method
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ServerStatus

        public ServerStatus()
        Default constructor for Jackson
      • ServerStatus

        public ServerStatus​(ServerStatus 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
      • 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 java.util.Date getServerStartTime()
        Return the time that this instance of the server started.
        Returns:
        date/time object
      • setServerStartTime

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

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

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

        public java.util.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​(java.util.List<OMAGServerInstanceHistory> serverHistory)
        Set the history of server start and stop times
        Parameters:
        serverHistory - date/time object
      • 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