Class OMAGServerInstanceHistory
java.lang.Object
org.odpi.openmetadata.serveroperations.properties.OMAGServerInstanceHistory
OMAGServerInstanceHistory documents the start and end of a server instance.
-
Constructor Summary
ConstructorDescriptionDefault constructor for JacksonOMAGServerInstanceHistory
(Date startTime, Date endTime) Constructor used to create the history. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.Return the time when this instance of the server ended.Return the time that this instance of the server started.int
hashCode()
Return hash code for this objectvoid
setEndTime
(Date endTime) Set up the time when this instance of the server ended.void
setStartTime
(Date startTime) Set up the time that this instance of the server started.toString()
JSON like toString method
-
Constructor Details
-
OMAGServerInstanceHistory
public OMAGServerInstanceHistory()Default constructor for Jackson -
OMAGServerInstanceHistory
Constructor used to create the history.- Parameters:
startTime
- time the server instance startedendTime
- time the server instance ended.
-
-
Method Details
-
getStartTime
Return the time that this instance of the server started.- Returns:
- date/time object
-
setStartTime
Set up the time that this instance of the server started.- Parameters:
startTime
- date/time object
-
getEndTime
Return the time when this instance of the server ended.- Returns:
- date/time object
-
setEndTime
Set up the time when this instance of the server ended.- Parameters:
endTime
- 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
-