Interface ActivityRecord

  • All Known Subinterfaces:
    ConnectionRecord

    public interface ActivityRecord
    A logging record describing when a user started and ended a particular activity.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Date getEndDate()
      Returns the date and time the activity ended, if applicable.
      String getRemoteHost()
      Returns the hostname or IP address of the remote host that performed the activity associated with this record, if known.
      Date getStartDate()
      Returns the date and time the activity began.
      String getUsername()
      Returns the name of the user who performed or is performing the activity at the times given by this record.
      boolean isActive()
      Returns whether the activity associated with this record is still ongoing.
    • Method Detail

      • getStartDate

        Date getStartDate()
        Returns the date and time the activity began.
        Returns:
        The date and time the activity began.
      • getEndDate

        Date getEndDate()
        Returns the date and time the activity ended, if applicable.
        Returns:
        The date and time the activity ended, or null if the activity is still ongoing or if the end time is unknown.
      • getRemoteHost

        String getRemoteHost()
        Returns the hostname or IP address of the remote host that performed the activity associated with this record, if known. If the hostname or IP address is not known, null is returned.
        Returns:
        The hostname or IP address of the remote host, or null if this information is not available.
      • getUsername

        String getUsername()
        Returns the name of the user who performed or is performing the activity at the times given by this record.
        Returns:
        The name of the user who performed or is performing the associated activity.
      • isActive

        boolean isActive()
        Returns whether the activity associated with this record is still ongoing.
        Returns:
        true if the activity associated with this record is still ongoing, false otherwise.