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

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

    • ServerStatus

      public ServerStatus()
      Default constructor for Jackson
    • ServerStatus

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

    • 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
    • getServerType

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

      public void setServerType(String serverType)
      Set up the type of server that is hosting these services.
      Parameters:
      serverType - string name
    • 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