Class ServerStatus
java.lang.Object
org.odpi.openmetadata.serveroperations.properties.ServerStatus
ServerStatus documents the start and end of a server instance.
-
Constructor Summary
ConstructorDescriptionDefault constructor for JacksonServerStatus
(ServerStatus template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.boolean
Return an indication of whether the server is activeReturn the time when this instance of the server ended.Return the list of start and stop times for the previous restarts of the server.Return the server nameReturn the time that this instance of the server started.Return the type of server that is hosting these services.int
hashCode()
Return hash code for this objectvoid
setIsActive
(boolean isActive) Set the indication of whether the server is activevoid
setServerEndTime
(Date serverEndTime) Set up the time when this instance of the server ended.void
setServerHistory
(List<OMAGServerInstanceHistory> serverHistory) Set the history of server start and stop timesvoid
setServerName
(String serverName) Set the name of the servervoid
setServerStartTime
(Date serverStartTime) Set up the time that this instance of the server started.void
setServerType
(String serverType) Set up the type of server that is hosting these services.toString()
JSON like toString method
-
Constructor Details
-
ServerStatus
public ServerStatus()Default constructor for Jackson -
ServerStatus
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getServerName
Return the server name- Returns:
- String
-
setServerName
Set the name of the server- Parameters:
serverName
- the name of the server
-
getServerType
Return the type of server that is hosting these services.- Returns:
- string name
-
setServerType
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
Return the time that this instance of the server started.- Returns:
- date/time object
-
setServerStartTime
Set up the time that this instance of the server started.- Parameters:
serverStartTime
- date/time object
-
getServerEndTime
Return the time when this instance of the server ended.- Returns:
- date/time object
-
setServerEndTime
Set up the time when this instance of the server ended.- Parameters:
serverEndTime
- date/time object
-
getServerHistory
Return the list of start and stop times for the previous restarts of the server.- Returns:
- server history
-
setServerHistory
Set the history of server start and stop times- Parameters:
serverHistory
- date/time object
-
toString
JSON like toString method -
equals
Return comparison result based on the content of the properties. -
hashCode
public int hashCode()Return hash code for this object
-