Class GetSystemLog
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetSystemLog
A Data Access Object to read system logging tables.
- Since:
- 9.0
- Version:
- 11.6
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAPIRequests
(API api, int days) Retrtieves external API request statistics from the database.getCommands
(String remoteAddr) Returns invocation statistics for a remote address.getCommands
(Collection<Integer> pilotIDs) Returns invocation statistics for particular user(s).getCurrentAPIUsage
(API api, String method) Retrieves today's API request statistics from the database.Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeIDs, executeUpdate, executeUpdate, expandDate, formatDBName, formatLocation, getNewID, getQueryCount, prepare, prepareWithoutLimits, rollbackTransaction, setQueryMax, setQueryStart, setQueryTimeout, startTransaction, toID, toID, toInstant
-
Constructor Details
-
GetSystemLog
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getCommands
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
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
Retrieves today's API request statistics from the database.- Parameters:
api
- an API enumerationmethod
- the method name- Returns:
- an APIUsage bean
- Throws:
DAOException
- if a JDBC error occurs
-
getAPIRequests
Retrtieves external API request statistics from the database.- Parameters:
api
- the API, or null for alldays
- the number of days to go back- Returns:
- a List of APIUsage beans
- Throws:
DAOException
- if a JDBC error occurs
-