Class IncomingConnection
java.lang.Object
ecmwf.common.database.IncomingConnection
- All Implemented Interfaces:
Serializable
The Class IncomingConnection.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals.intGets the currently active upload streams.intGets the currently active download streams.longGets the bytes received from the client.longGets the bytes sent to the client.Gets the client agent string (User-Agent for HTTPS/WebDAV/S3, client version for SFTP, CLNT for FTP).Gets the data mover name.Gets the formatted bytes received from the client.Gets the formatted bytes sent to the client.Gets the start time.getId()Gets the session id.getLogin()Gets the login.Gets the protocol.Gets the remote IP address.longGets the start time.Gets the subscriber email for self-service portal sessions.longGets the accumulated upload stream count.longGets the accumulated download stream count.inthashCode()Hash code.voidsetActiveStreamsIn(int activeStreamsIn) Sets the currently active upload streams.voidsetActiveStreamsOut(int activeStreamsOut) Sets the currently active download streams.voidsetBytesIn(long bytesIn) Sets the bytes received from the client.voidsetBytesOut(long bytesOut) Sets the bytes sent to the client.voidsetClientAgent(String clientAgent) Sets the client agent string.voidsetDataMoverName(String dataMoverName) Sets the data mover name.voidSets the session id.voidSets the login.voidsetProtocol(String protocol) Sets the protocol.voidsetRemoteIpAddress(String remoteIpAddress) Sets the remote IP address.voidsetStartTime(long startTime) Sets the start time.voidsetSubscriberEmail(String subscriberEmail) Sets the subscriber email.voidsetTotalStreamsIn(long totalStreamsIn) Sets the accumulated upload stream count.voidsetTotalStreamsOut(long totalStreamsOut) Sets the accumulated download stream count.
-
Constructor Details
-
IncomingConnection
public IncomingConnection()
-
-
Method Details
-
getId
-
setId
-
getLogin
-
setLogin
-
getDataMoverName
-
setDataMoverName
Sets the data mover name.- Parameters:
dataMoverName- the data mover name
-
getRemoteIpAddress
-
setRemoteIpAddress
Sets the remote IP address.- Parameters:
remoteIpAddress- the remote IP address
-
getProtocol
-
setProtocol
-
getSubscriberEmail
Gets the subscriber email for self-service portal sessions.- Returns:
- the subscriber email, or
nullif not a self-service session
-
setSubscriberEmail
Sets the subscriber email.- Parameters:
subscriberEmail- the subscriber email
-
getClientAgent
Gets the client agent string (User-Agent for HTTPS/WebDAV/S3, client version for SFTP, CLNT for FTP).- Returns:
- the client agent, or null if not reported
-
setClientAgent
Sets the client agent string.- Parameters:
clientAgent- the client agent
-
getFormatedDuration
-
getStartTime
public long getStartTime()Gets the start time.- Returns:
- the start time
-
setStartTime
public void setStartTime(long startTime) Sets the start time.- Parameters:
startTime- the start time
-
getBytesIn
public long getBytesIn()Gets the bytes received from the client.- Returns:
- the bytes in
-
setBytesIn
public void setBytesIn(long bytesIn) Sets the bytes received from the client.- Parameters:
bytesIn- the bytes in
-
getBytesOut
public long getBytesOut()Gets the bytes sent to the client.- Returns:
- the bytes out
-
setBytesOut
public void setBytesOut(long bytesOut) Sets the bytes sent to the client.- Parameters:
bytesOut- the bytes out
-
getFormatedBytesIn
Gets the formatted bytes received from the client.- Returns:
- the formatted bytes in
-
getFormatedBytesOut
Gets the formatted bytes sent to the client.- Returns:
- the formatted bytes out
-
getActiveStreamsOut
public int getActiveStreamsOut()Gets the currently active download streams.- Returns:
- the active streams out
-
setActiveStreamsOut
public void setActiveStreamsOut(int activeStreamsOut) Sets the currently active download streams.- Parameters:
activeStreamsOut- the active streams out
-
getActiveStreamsIn
public int getActiveStreamsIn()Gets the currently active upload streams.- Returns:
- the active streams in
-
setActiveStreamsIn
public void setActiveStreamsIn(int activeStreamsIn) Sets the currently active upload streams.- Parameters:
activeStreamsIn- the active streams in
-
getTotalStreamsOut
public long getTotalStreamsOut()Gets the accumulated download stream count.- Returns:
- the total streams out
-
setTotalStreamsOut
public void setTotalStreamsOut(long totalStreamsOut) Sets the accumulated download stream count.- Parameters:
totalStreamsOut- the total streams out
-
getTotalStreamsIn
public long getTotalStreamsIn()Gets the accumulated upload stream count.- Returns:
- the total streams in
-
setTotalStreamsIn
public void setTotalStreamsIn(long totalStreamsIn) Sets the accumulated upload stream count.- Parameters:
totalStreamsIn- the total streams in
-
hashCode
-
equals
-