Class OMAGServerInstanceHistory

  • All Implemented Interfaces:
    java.io.Serializable

    public class OMAGServerInstanceHistory
    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.
      java.util.Date getEndTime()
      Return the time when this instance of the server ended.
      java.util.Date getStartTime()
      Return the time that this instance of the server started.
      int hashCode()
      Return hash code for this object
      void setEndTime​(java.util.Date endTime)
      Set up the time when this instance of the server ended.
      void setStartTime​(java.util.Date startTime)
      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

      • OMAGServerInstanceHistory

        public OMAGServerInstanceHistory()
        Default constructor for Jackson
      • OMAGServerInstanceHistory

        public OMAGServerInstanceHistory​(java.util.Date startTime,
                                         java.util.Date endTime)
        Constructor used to create the history.
        Parameters:
        startTime - time the server instance started
        endTime - time the server instance ended.
    • Method Detail

      • getStartTime

        public java.util.Date getStartTime()
        Return the time that this instance of the server started.
        Returns:
        date/time object
      • setStartTime

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

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

        public void setEndTime​(java.util.Date endTime)
        Set up the time when this instance of the server ended.
        Parameters:
        endTime - 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