public interface LogReader extends LogReaderService
| Modifier and Type | Method and Description |
|---|---|
void |
addLogListener(int level,
LogListener listner)
Adds a log listener for log entries with a given severity level.
|
java.util.Enumeration |
getDeviceLog(java.lang.String groupPath,
boolean wholeSubTree,
int level,
java.util.Date fromTime,
java.util.Date toTime,
java.lang.String[] source,
java.lang.String text,
int count)
Method getDeviceLog retrieves log messages related to a given device group.
|
java.util.Enumeration |
getDeviceLog(java.lang.String deviceType,
java.lang.String deviceId,
int level,
java.util.Date fromTime,
java.util.Date toTime)
Retrieves log messages related to a given device.
|
java.util.Enumeration |
getDeviceLog(java.lang.String deviceType,
java.lang.String deviceId,
int level,
java.util.Date fromTime,
java.util.Date toTime,
java.lang.String[] source,
java.lang.String text,
int count)
Method getDeviceLog ...
|
java.util.Enumeration |
getGatewayLog(java.lang.String gatewayId,
int level,
java.util.Date fromTime,
java.util.Date toTime)
Deprecated.
As of mPRM 4.0, the preferred way is to use
getDeviceLog(String, String, int, Date, Date) method. |
java.util.Enumeration |
getLog(int level,
java.util.Date fromTime,
java.util.Date toTime)
Retrieves log messages created within a given period.
|
java.util.Enumeration |
getLog(int level,
java.util.Date fromTime,
java.util.Date toTime,
java.lang.String[] source,
java.lang.String text,
int count)
Method getLog retrieves log messages created within a given period.
|
java.io.InputStream |
getLogFile(java.lang.String gatewayId,
java.lang.String fileName)
Deprecated.
As of mPRM 4.0, the preferred way is to use
@link com.prosyst.mprm.admin.logfile.LogFilesReader#getLogFile(String, String) method from
the OSGi Device Management package. |
java.lang.String[] |
getLogFileNames(java.lang.String gatewayId)
Deprecated.
As of mPRM 4.0, the preferred way is to use
com.prosyst.mprm.admin.logfile.LogFilesReader#getLogFileNames(String) method from
the OSGi Device Management package. |
java.util.Enumeration |
getSources(int count)
Method getSources retrieves the source values of the stored log entries.
|
java.util.Enumeration |
getSources(java.lang.String deviceType,
java.lang.String deviceId,
int count)
Method getSources retrieves the source values of the stored log entries.
|
java.util.Enumeration |
getSystemLog(java.lang.String[] hostRoles,
int level,
java.util.Date fromTime,
java.util.Date toTime)
Retrieves system related log messages.
|
java.util.Enumeration |
getSystemLog(java.lang.String[] hostRoles,
int level,
java.util.Date fromTime,
java.util.Date toTime,
java.lang.String[] source,
java.lang.String text,
int count)
Method getSystemLog retrieves system related log messages.
|
void |
removeLogListener(int level,
LogListener listner)
Removes a log listener for log entries with given severity level.
|
addLogListener, getLog, removeLogListenerjava.util.Enumeration getSystemLog(java.lang.String[] hostRoles,
int level,
java.util.Date fromTime,
java.util.Date toTime)
throws ManagementException
hostRoles - - The host roles of backend hosts, that logs will be retrieved from.
Host roles could be some of the constants:level - - Specifies the severity level of log entries being returned. The returned
logs have a severity level with value equal to the specified or lower.fromTime - - Only log messages created after this date will be returned.toTime - - Only log messages created before this date will be returned.ManagementExceptionjava.util.Enumeration getGatewayLog(java.lang.String gatewayId,
int level,
java.util.Date fromTime,
java.util.Date toTime)
throws ManagementException
getDeviceLog(String, String, int, Date, Date) method.gatewayId - - Specifies the id of an OSGi device, the retrieved logs are related to. If
null is passed as value of this argument, then all logs
related to OSGi devices will be returned.level - - Specifies the severity level of log entries being returned. The returned
logs have a severity level with value equal to the specified or lower.fromTime - - Only log messages created after this date will be returned.toTime - - Only log messages created before this date will be returned.ManagementExceptionjava.util.Enumeration getDeviceLog(java.lang.String deviceType,
java.lang.String deviceId,
int level,
java.util.Date fromTime,
java.util.Date toTime)
throws ManagementException
deviceType - - Specifies the type of a device, the retrieved logs are related to. If
null is passed as value of this argument, then all logs
related to managed devices will be returned.deviceId - - Specifies the id of a device, the retrieved logs are related to. If
null is passed as value of this argument, then all logs
related to devices of the specified type will be returned.level - - Specifies the severity level of log entries being returned. The returned
logs have a severity level with value equal to the specified or lower.fromTime - - Only log messages created after this date will be returned.toTime - - Only log messages created before this date will be returned.ManagementExceptionjava.util.Enumeration getLog(int level,
java.util.Date fromTime,
java.util.Date toTime)
throws ManagementException
level - - Specifies the severity level of log entries being returned. The returned
logs have a severity level with value equal to the specified or lower.fromTime - - Only log messages created after this date will be returned.toTime - - Only log messages created before this date will be returned.ManagementExceptionvoid addLogListener(int level,
LogListener listner)
throws ManagementException
level - - The severity level of logs to be received.listner - - The listener to be registered.ManagementExceptionvoid removeLogListener(int level,
LogListener listner)
level - - The severity level of logs entries.listner - - The listener to be unregistered.java.lang.String[] getLogFileNames(java.lang.String gatewayId)
throws ManagementException
com.prosyst.mprm.admin.logfile.LogFilesReader#getLogFileNames(String) method from
the OSGi Device Management package.gatewayId - - Id of an OSGi device managed by the mPRM system.ManagementException - if a system error occurs.java.io.InputStream getLogFile(java.lang.String gatewayId,
java.lang.String fileName)
throws ManagementException
@link com.prosyst.mprm.admin.logfile.LogFilesReader#getLogFile(String, String) method from
the OSGi Device Management package.gatewayId - id of an OSGi device managed by the mPRM systemfileName - file name, whose content is retrieved in the streamIOException - in case such a file does not exists or
a system error occursManagementExceptionjava.util.Enumeration getDeviceLog(java.lang.String groupPath,
boolean wholeSubTree,
int level,
java.util.Date fromTime,
java.util.Date toTime,
java.lang.String[] source,
java.lang.String text,
int count)
throws ManagementException
groupPath - of type String - Specifies the path group of devices for which the retrieved logs are related towholeSubTree - of type boolean - tells whether to include the whole subtree that stays under the selected groupPathlevel - of type int - Specifies the severity level of log entries being returned. The returned
logs have a severity level with value equal to the specified or lower.fromTime - of type Date - Only log messages created after this date will be returned.toTime - of type Date - Only log messages created before this date will be returned.source - of type String[] - Filters the returned log entries with the provided source parameterstext - of type String - Filters the returned log entries with the text (provided via the parameter) included in the messagecount - of type int - Specifies how many maximum log entries to be retrieved.ManagementException - when - Thrown if there is a problem executing that methodjava.util.Enumeration getSystemLog(java.lang.String[] hostRoles,
int level,
java.util.Date fromTime,
java.util.Date toTime,
java.lang.String[] source,
java.lang.String text,
int count)
throws ManagementException
hostRoles - of type String[] - The host roles of backend hosts, that logs will be retrieved from.
Host roles could be some of the constants:level - of type int - Specifies the severity level of log entries being returned. The returned
logs have a severity level with value equal to the specified or lower.fromTime - of type Date - Only log messages created after this date will be returned.toTime - of type Date - Only log messages created before this date will be returned.source - of type String[] - Filters the returned log entries with the provided source parameterstext - of type String - Filters the returned log entries with the text (provided via the parameter) included in the messagecount - of type int - Specifies how many maximum log entries to be retrieved.ManagementException - when - Thrown if there is a problem executing that methodjava.util.Enumeration getLog(int level,
java.util.Date fromTime,
java.util.Date toTime,
java.lang.String[] source,
java.lang.String text,
int count)
throws ManagementException
level - of type int Specifies the severity level of log entries being returned. The returned
logs have a severity level with value equal to the specified or lower.fromTime - of type Date - Only log messages created after this date will be returned.toTime - of type Date - Only log messages created before this date will be returned.source - of type String[] - Only log messages created before this date will be returned.text - of type String - Filters the returned log entries with the text (provided via the parameter) included in the messagecount - of type int - Specifies how many maximum log entries to be retrieved.ManagementException - when - Thrown if there is a problem executing that methodjava.util.Enumeration getSources(int count)
throws ManagementException
count - of type int - Specifies how many maximum log entries to be retrieved.ManagementException - when - Thrown if there is a problem executing that methodjava.util.Enumeration getSources(java.lang.String deviceType,
java.lang.String deviceId,
int count)
throws ManagementException
deviceType - of type String - Specifies the type of a device, the retrieved logs are related to. If
null is passed as value of this argument, then all logs
related to managed devices will be returned.deviceId - of type String - Specifies the id of a device, the retrieved logs are related to. If
null is passed as value of this argument, then all logs
related to devices of the specified type will be returned.count - of type int - Specifies how many maximum log entries to be retrieved.ManagementException - when - Thrown if there is a problem executing that methodjava.util.Enumeration getDeviceLog(java.lang.String deviceType,
java.lang.String deviceId,
int level,
java.util.Date fromTime,
java.util.Date toTime,
java.lang.String[] source,
java.lang.String text,
int count)
throws ManagementException
deviceType - of type String - Specifies the type of a device, the retrieved logs are related to. If
null is passed as value of this argument, then all logs
related to managed devices will be returned.deviceId - of type String - Specifies the id of a device, the retrieved logs are related to. If
null is passed as value of this argument, then all logs
related to devices of the specified type will be returned.level - of type int - Specifies the severity level of log entries being returned. The returned
logs have a severity level with value equal to the specified or lower.fromTime - of type Date - Only log messages created after this date will be returned.toTime - of type Date - Only log messages created before this date will be returned.source - of type String[] - Filters the returned log entries with the provided source parameterstext - of type String - Filters the returned log entries with the text (provided via the parameter) included in the messagecount - of type int - Specifies how many maximum log entries to be retrieved.ManagementException - when - Thrown if there is a problem executing that methodCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.