Class ServerStatus
- java.lang.Object
-
- org.odpi.openmetadata.platformservices.properties.ServerStatus
-
- All Implemented Interfaces:
Serializable
public class ServerStatus extends Object implements Serializable
OMAGServerInstanceHistory documents the start and end of a server instance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerStatus()Default constructor for JacksonServerStatus(String serverName, boolean isActive, Date serverStartTime, Date serverEndTime, List<OMAGServerInstanceHistory> serverHistory)Constructor used to create the history.ServerStatus(ServerStatus template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.booleangetIsActive()Return an indication of whether the server is activeDategetServerEndTime()Return the time when this instance of the server ended.List<OMAGServerInstanceHistory>getServerHistory()Return the list of start and stop times for the previous restarts of the server.StringgetServerName()Return the server nameDategetServerStartTime()Return the time that this instance of the server started.inthashCode()Return hash code for this objectvoidsetIsActive(boolean isActive)Set the indication of whether the server is activevoidsetServerEndTime(Date serverEndTime)Set up the time when this instance of the server ended.voidsetServerHistory(List<OMAGServerInstanceHistory> serverHistory)Set the history of server start and stop timesvoidsetServerName(String serverName)Set the name of the servervoidsetServerStartTime(Date serverStartTime)Set up the time that this instance of the server started.StringtoString()JSON like toString method
-
-
-
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 serverisActive- whether the server is activeserverStartTime- the time the server last startedserverEndTime- the time the server last stoppedserverHistory- 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
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.
-
-