Class IncomingConnection

java.lang.Object
ecmwf.common.database.IncomingConnection
All Implemented Interfaces:
Serializable

public class IncomingConnection extends Object implements Serializable
The Class IncomingConnection.
See Also:
  • Constructor Details

    • IncomingConnection

      public IncomingConnection()
  • Method Details

    • getId

      public String getId()
      Gets the session id.
      Returns:
      the session id
    • setId

      public void setId(String id)
      Sets the session id.
      Parameters:
      id - the session id
    • getLogin

      public String getLogin()
      Gets the login.
      Returns:
      the login
    • setLogin

      public void setLogin(String login)
      Sets the login.
      Parameters:
      login - the login
    • getDataMoverName

      public String getDataMoverName()
      Gets the data mover name.
      Returns:
      the data mover name
    • setDataMoverName

      public void setDataMoverName(String dataMoverName)
      Sets the data mover name.
      Parameters:
      dataMoverName - the data mover name
    • getRemoteIpAddress

      public String getRemoteIpAddress()
      Gets the remote IP address.
      Returns:
      the remote IP address
    • setRemoteIpAddress

      public void setRemoteIpAddress(String remoteIpAddress)
      Sets the remote IP address.
      Parameters:
      remoteIpAddress - the remote IP address
    • getProtocol

      public String getProtocol()
      Gets the protocol.
      Returns:
      the protocol
    • setProtocol

      public void setProtocol(String protocol)
      Sets the protocol.
      Parameters:
      protocol - the protocol
    • getSubscriberEmail

      public String getSubscriberEmail()
      Gets the subscriber email for self-service portal sessions.
      Returns:
      the subscriber email, or null if not a self-service session
    • setSubscriberEmail

      public void setSubscriberEmail(String subscriberEmail)
      Sets the subscriber email.
      Parameters:
      subscriberEmail - the subscriber email
    • getClientAgent

      public String 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

      public void setClientAgent(String clientAgent)
      Sets the client agent string.
      Parameters:
      clientAgent - the client agent
    • getFormatedDuration

      public String getFormatedDuration()
      Gets the start time.
      Returns:
      the start time
    • 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

      public String getFormatedBytesIn()
      Gets the formatted bytes received from the client.
      Returns:
      the formatted bytes in
    • getFormatedBytesOut

      public String 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

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Equals.
      Overrides:
      equals in class Object