Class HostStats
java.lang.Object
ecmwf.common.database.DataBaseObject
ecmwf.common.database.HostStats
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalThe check time.protected intThe connections.protected longThe duration.protected intThe hst id.protected longThe sent.protected booleanThe valid.Fields inherited from class ecmwf.common.database.DataBaseObject
collectionSize, TAG_ACROSS_MULTIPLE_LINES, TAG_END_OF_LINES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals.Gets the check time.intGets the connections.longGets the duration.intgetId()Gets the id.longgetSent()Gets the sent.booleangetValid()Gets the valid.inthashCode()Hash code.voidsetCheckTime(Timestamp param) Sets the check time.voidsetConnections(int param) Sets the connections.voidsetConnections(String param) Sets the connections.voidsetDuration(long param) Sets the duration.voidsetDuration(String param) Sets the duration.voidsetId(int param) Sets the id.voidSets the id.voidsetSent(long param) Sets the sent.voidSets the sent.voidsetValid(boolean param) Sets the valid.voidSets the valid.Methods inherited from class ecmwf.common.database.DataBaseObject
bigDecimalToTimestamp, clone, compare, compare, getCollectionSize, integerToInt, integerToString, setCollectionSize, strim, stringToInteger, stringToLong, stringToString, timestampToBigDecimal, toString, toString, toString, toString
-
Field Details
-
HST_ID
protected int HST_IDThe hst id. -
HST_CONNECTIONS
protected int HST_CONNECTIONSThe connections. -
HST_DURATION
protected long HST_DURATIONThe duration. -
HST_SENT
protected long HST_SENTThe sent. -
HST_VALID
protected boolean HST_VALIDThe valid. -
HST_CHECK_TIME
The check time.
-
-
Constructor Details
-
HostStats
public HostStats()Instantiates a new host stats. -
HostStats
public HostStats(int id) Instantiates a new host stats.- Parameters:
id- the id
-
-
Method Details
-
getCheckTime
-
setCheckTime
Sets the check time.- Parameters:
param- the new check time
-
getConnections
public int getConnections()Gets the connections.- Returns:
- the connections
-
setConnections
public void setConnections(int param) Sets the connections.- Parameters:
param- the new connections
-
setConnections
Sets the connections.- Parameters:
param- the new connections
-
getDuration
public long getDuration()Gets the duration.- Returns:
- the duration
-
setDuration
public void setDuration(long param) Sets the duration.- Parameters:
param- the new duration
-
setDuration
-
getId
public int getId()Gets the id.- Returns:
- the id
-
setId
public void setId(int param) Sets the id.- Parameters:
param- the new id
-
setId
-
getSent
public long getSent()Gets the sent.- Returns:
- the sent
-
setSent
public void setSent(long param) Sets the sent.- Parameters:
param- the new sent
-
setSent
-
getValid
public boolean getValid()Gets the valid.- Returns:
- the valid
-
setValid
public void setValid(boolean param) Sets the valid.- Parameters:
param- the new valid
-
setValid
-
hashCode
-
equals
-