Class GetSystemLog

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetSystemLog

public class GetSystemLog extends DAO
A Data Access Object to read system logging tables.
Since:
9.0
Version:
11.6
Author:
Luke
  • Constructor Details

    • GetSystemLog

      public GetSystemLog(Connection c)
      Initialize the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • getCommands

      public List<CommandLog> getCommands(String remoteAddr) throws DAOException
      Returns invocation statistics for a remote address.
      Parameters:
      remoteAddr - the user's IP address or host name
      Returns:
      a List of CommandLog objects
      Throws:
      DAOException - if a JDBC error occurs
    • getCommands

      public List<CommandLog> getCommands(Collection<Integer> pilotIDs) throws DAOException
      Returns invocation statistics for particular user(s).
      Parameters:
      pilotIDs - a Collection of Database IDs
      Returns:
      a List of CommandLog objects
      Throws:
      DAOException - if a JDBC error occurs
    • getCurrentAPIUsage

      public APIUsage getCurrentAPIUsage(API api, String method) throws DAOException
      Retrieves today's API request statistics from the database.
      Parameters:
      api - an API enumeration
      method - the method name
      Returns:
      an APIUsage bean
      Throws:
      DAOException - if a JDBC error occurs
    • getAPIRequests

      public List<APIUsage> getAPIRequests(API api, int days) throws DAOException
      Retrtieves external API request statistics from the database.
      Parameters:
      api - the API, or null for all
      days - the number of days to go back
      Returns:
      a List of APIUsage beans
      Throws:
      DAOException - if a JDBC error occurs