public class ServerStatus extends Object implements Serializable
| Constructor and Description |
|---|
ServerStatus()
Default constructor for Jackson
|
ServerStatus(ServerStatus template)
Copy/clone constructor
|
ServerStatus(String serverName,
boolean isActive,
Date serverStartTime,
Date serverEndTime,
List<OMAGServerInstanceHistory> serverHistory)
Constructor used to create the history.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Return comparison result based on the content of the properties.
|
boolean |
getIsActive()
Return an indication of whether the server is active
|
Date |
getServerEndTime()
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.
|
String |
getServerName()
Return the server name
|
Date |
getServerStartTime()
Return the time that this instance of the server started.
|
int |
hashCode()
Return hash code for this object
|
void |
setIsActive(boolean isActive)
Set the indication of whether the server is active
|
void |
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 times
|
void |
setServerName(String serverName)
Set the name of the server
|
void |
setServerStartTime(Date serverStartTime)
Set up the time that this instance of the server started.
|
String |
toString()
JSON like toString method
|
public ServerStatus()
public ServerStatus(ServerStatus template)
template - object to copypublic ServerStatus(String serverName, boolean isActive, Date serverStartTime, Date serverEndTime, List<OMAGServerInstanceHistory> serverHistory)
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 serverpublic String getServerName()
public void setServerName(String serverName)
serverName - the name of the serverpublic boolean getIsActive()
public void setIsActive(boolean isActive)
isActive - indicating whether the server is activepublic Date getServerStartTime()
public void setServerStartTime(Date serverStartTime)
serverStartTime - date/time objectpublic Date getServerEndTime()
public void setServerEndTime(Date serverEndTime)
serverEndTime - date/time objectpublic List<OMAGServerInstanceHistory> getServerHistory()
public void setServerHistory(List<OMAGServerInstanceHistory> serverHistory)
serverHistory - date/time objectpublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2020 ODPi. All rights reserved.