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 long
The ban bytes.protected String
The ban date.protected long
The ban duration.protected int
The 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 TypeMethodDescriptionvoid
clear()
Clear.long
getBytes()
Gets the bytes.getDate()
Gets the date.long
Gets the duration.int
getFiles()
Gets the files.void
setBytes
(long bytes) Sets the bytes.void
Sets the date.void
setDuration
(long duration) Sets the duration.void
setFiles
(int files) Sets the files.void
update
(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.
-