@Deprecated public class LogReader extends Object
Modifier and Type | Method and Description |
---|---|
static ArrayList |
getLogFields()
Deprecated.
Returns the names of the Log Fields that are selected for logging
in the Logging Service template, plus the mandatory "time" and
"Data" fields.
|
static Set |
getLogNames()
Deprecated.
Returns the names of the Log Files or Tables.
|
static long |
getSize(String logName)
Deprecated.
Returns the number of LogRecords in the specified table in the DB.
|
static int |
getSizeUnits()
Deprecated.
Returns the units (LogConstants.NUM_BYTES or LogConstants.NUM_RECORDS)
that applies to the value returned by getSize(logName).
|
static boolean |
isLogSecure()
Deprecated.
|
static String[][] |
read(Set fileNames,
LogQuery logQuery,
Object userCrdential)
Deprecated.
Retrieves specific records in a given sorted order on
specific field (if user specifies valid sorting by field).
|
static String[][] |
read(String fileName,
LogQuery logQuery,
Object userCrdential)
Deprecated.
Retrieves specific records in a given sorted order on
specific field (if user specifies valid sorting by field).
|
static String[][] |
read(String fileName,
Object userCrdential)
Deprecated.
Reads the specified log file provided the user has the authorization.
|
static String[][] |
read(String logName,
String logType,
LogQuery logQuery,
Object userCrdential)
Deprecated.
Retrieves records from log file provided it has
the required authorization.
|
static String[][] |
read(String logName,
String logType,
Object userCrdential)
Deprecated.
Retrieves records from a log file provided the user has the required
authorization.
|
static String[][] |
read(String logname,
String logtype,
String timeStamp,
LogQuery logQuery,
Object userCrdential)
Deprecated.
Reads a log file provided it has the required authorization.
|
static String[][] |
read(String logName,
String logType,
String timeStamp,
Object userCrdential)
Deprecated.
Reads a log file provided the user has the authorization.
|
public static int getSizeUnits() throws Exception
Exception
- if unrecoverable problem occurs, that is beyond
its control.public static long getSize(String logName) throws IOException, Exception
logName
- the name of the Table or File.IOException
- if file does not exist.Exception
- if unrecoverable problem occurs, that is beyond
its control.public static Set getLogNames()
public static ArrayList getLogFields()
public static String[][] read(String fileName, Object userCrdential) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, Exception
fileName
- the filename without path to be read.userCrdential
- user credential to check authorization.IOException
- if interrupted or failed to do I/O.NoSuchFieldException
- if invalid field has been specified.IllegalArgumentException
- when inappropriate argument specified.RuntimeException
- when it has been caught in any phase.Exception
- if unrecoverable problem occurs, that is beyond
its control.public static String[][] read(String logName, String logType, Object userCrdential) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, Exception
logname
and
type
.
It reads all records from the file but returns the maximum number
of most recent records set through configuration.logName
- an identifier and is a part of file name to be read.logType
- the components of file name that will be read. it could
be either of "access", "error" or "system".userCrdential
- user credential to check authorization.IOException
- if interrupted or failed to do I/O.NoSuchFieldException
- if invalid field has been specified.IllegalArgumentException
- when inappropriate argument specified.RuntimeException
- when it has been caught in any phase.Exception
- if unrecoverable problem occurs, that is beyond
its control.public static String[][] read(String logName, String logType, String timeStamp, Object userCrdential) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, Exception
logName
- an identifier and is a part of file name to be read.logType
- the components of filename to be read, not null.timeStamp
- last component of filename to be read and not null.userCrdential
- user credential for authorization check.IOException
- if interrupted or failed to do I/O.NoSuchFieldException
- if invalid field has been specified.IllegalArgumentException
- when inappropriate argument specified.RuntimeException
- when it has been caught in any phase.Exception
- if unrecoverable problem occurs, that is beyond
its control.public static String[][] read(String logName, String logType, LogQuery logQuery, Object userCrdential) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, Exception
logName
- an identifier and is a part of file name to be read.logType
- the components of filename to be read.logQuery
- contains search criteria details.userCrdential
- user credential for authorization check.IOException
- if interrupted or failed to do I/O.NoSuchFieldException
- if invalid field has been specified.IllegalArgumentException
- when inappropriate argument specified.RuntimeException
- when it has been caught in any phase.Exception
- if unrecoverable problem occurs, that is beyond
its control.public static String[][] read(String logname, String logtype, String timeStamp, LogQuery logQuery, Object userCrdential) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, Exception
logname
- an identifier and is a part of file name to be read.logtype
- the components of filename to be read.timeStamp
- is the last component of filename to be read and not
null.logQuery
- contains search criteria details.userCrdential
- user credential for authorization check.IOException
- if interrupted or failed to do I/O.NoSuchFieldException
- if invalid field has been specified.IllegalArgumentException
- when inappropriate argument specified.RuntimeException
- when it has been caught in any phase.Exception
- if unrecoverable problem occurs, that is beyond
its control.public static String[][] read(String fileName, LogQuery logQuery, Object userCrdential) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, Exception
fileName
- filename without path that will be read.logQuery
- contains search criteria details.userCrdential
- user credential for authorization check.IOException
- if interrupted or failed to do I/O.NoSuchFieldException
- if invalid field has been specified.IllegalArgumentException
- when inappropriate argument specified.RuntimeException
- when it has been caught in any phase.Exception
- if unrecoverable problem occurs, that is beyond
its control.public static String[][] read(Set fileNames, LogQuery logQuery, Object userCrdential) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, Exception
fileNames
- set of filenames without path that will be readlogQuery
- contains search criteria detailsuserCrdential
- user credential for authorization check.IOException
- if interrupted or failed to do I/O.NoSuchFieldException
- if invalid field has been specified.IllegalArgumentException
- when inappropriate argument specified.RuntimeException
- when it has been caught in any phase.Exception
- if unrecoverable problem occurs, that is beyond
its control.public static boolean isLogSecure()
Copyright © 2010-2018, ForgeRock All Rights Reserved.