Class OMAGServerInstanceHistory

java.lang.Object
org.odpi.openmetadata.serveroperations.properties.OMAGServerInstanceHistory

public class OMAGServerInstanceHistory extends Object
OMAGServerInstanceHistory documents the start and end of a server instance.
  • Constructor Details

    • OMAGServerInstanceHistory

      public OMAGServerInstanceHistory()
      Default constructor for Jackson
    • OMAGServerInstanceHistory

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

    • getStartTime

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

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

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

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