Class PortalTraffic
java.lang.Object
ecmwf.common.database.DataBaseObject
ecmwf.common.database.PortalTraffic
- All Implemented Interfaces:
Serializable, Cloneable
ECMWF Product Data Store (OpenECPDS) Project. Represents one minute-bucket of Data Portal traffic for a specific user
(or all users when PTR_USER is empty).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected intprotected longprotected longprotected Timestampprotected StringFields inherited from class DataBaseObject
collectionSize, TAG_ACROSS_MULTIPLE_LINES, TAG_END_OF_LINES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(int connections, long bytesIn, long bytesOut, long durationIn, long durationOut) Thread-safe in-place accumulation used by the in-memory buffer.longlongintlonglonggetTime()getUser()voidsetBytesIn(long v) voidsetBytesOut(long v) voidsetConnections(int v) voidsetDurationIn(long v) voidsetDurationOut(long v) voidvoidMethods inherited from class DataBaseObject
bigDecimalToTimestamp, clone, compare, compare, getCollectionSize, integerToInt, integerToString, removeHiddenOptions, setCollectionSize, strim, stringToInteger, stringToLong, stringToString, timestampToBigDecimal, toString, toString, toString, toString
-
Field Details
-
PTR_USER
-
PTR_TIME
-
PTR_CONNECTIONS
protected int PTR_CONNECTIONS -
PTR_BYTES_IN
protected long PTR_BYTES_IN -
PTR_BYTES_OUT
protected long PTR_BYTES_OUT -
PTR_DURATION_IN
protected long PTR_DURATION_IN -
PTR_DURATION_OUT
protected long PTR_DURATION_OUT
-
-
Constructor Details
-
PortalTraffic
public PortalTraffic()
-
-
Method Details
-
getUser
-
setUser
-
getTime
-
setTime
-
getConnections
public int getConnections() -
setConnections
public void setConnections(int v) -
getBytesIn
public long getBytesIn() -
setBytesIn
public void setBytesIn(long v) -
getBytesOut
public long getBytesOut() -
setBytesOut
public void setBytesOut(long v) -
getDurationIn
public long getDurationIn() -
setDurationIn
public void setDurationIn(long v) -
getDurationOut
public long getDurationOut() -
setDurationOut
public void setDurationOut(long v) -
accumulate
public void accumulate(int connections, long bytesIn, long bytesOut, long durationIn, long durationOut) Thread-safe in-place accumulation used by the in-memory buffer.
-