Class Traffic
java.lang.Object
ecmwf.common.database.DataBaseObject
ecmwf.common.database.Traffic
- All Implemented Interfaces:
Serializable,Cloneable
ECMWF Product Data Store (OpenECPDS) Project.
- Since:
- 2024-07-01
- Version:
- 6.7.7
- Author:
- Laurent Gougeon - syi@ecmwf.int, ECMWF.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longThe ban bytes.protected StringThe ban date.protected longThe ban duration.protected intThe ban files.Fields inherited from class ecmwf.common.database.DataBaseObject
collectionSize, TAG_ACROSS_MULTIPLE_LINES, TAG_END_OF_LINES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear.longgetBytes()Gets the bytes.getDate()Gets the date.longGets the duration.intgetFiles()Gets the files.voidsetBytes(long bytes) Sets the bytes.voidSets the date.voidsetDuration(long duration) Sets the duration.voidsetFiles(int files) Sets the files.voidupdate(long bytes, long duration, int files) Update.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
-
BAN_DATE
The ban date. -
BAN_BYTES
protected long BAN_BYTESThe ban bytes. -
BAN_DURATION
protected long BAN_DURATIONThe ban duration. -
BAN_FILES
protected int BAN_FILESThe ban files.
-
-
Constructor Details
-
Traffic
public Traffic()
-
-
Method Details
-
getDate
-
setDate
-
getBytes
public long getBytes()Gets the bytes.- Returns:
- the bytes
-
setBytes
public void setBytes(long bytes) Sets the bytes.- Parameters:
bytes- the new bytes
-
getDuration
public long getDuration()Gets the duration.- Returns:
- the duration
-
setDuration
public void setDuration(long duration) Sets the duration.- Parameters:
duration- the new duration
-
getFiles
public int getFiles()Gets the files.- Returns:
- the files
-
setFiles
public void setFiles(int files) Sets the files.- Parameters:
files- the new files
-
update
public void update(long bytes, long duration, int files) Update.- Parameters:
bytes- the bytesduration- the durationfiles- the files
-
clear
public void clear()Clear.
-