Framework Professional Edition Package


com.prosyst.mbs.services.log
Interface LogFilter


public interface LogFilter

This interface provides utility methods for getting the LogEntries from the LogService. Instead of getting all entries via the LogReaderService and going through them to get what's needed, you can use the methods provided here:


Method Summary
 java.util.Enumeration getLogsById(long id)
          Gets the LogEntries logged by the bundle with the given id.
 java.util.Enumeration getLogsByTime(long t1, long t2)
          Gets the LogEntries logged during the period specified by t1 and t2 - time in milliseconds.
 

Method Detail

getLogsById

java.util.Enumeration getLogsById(long id)
Gets the LogEntries logged by the bundle with the given id.

Parameters:
id - the Bundle Id
Returns:
an Enumeration of LogEntry objects. If no such LogEntries are available - an empty enumeration is returned.

getLogsByTime

java.util.Enumeration getLogsByTime(long t1,
                                    long t2)
Gets the LogEntries logged during the period specified by t1 and t2 - time in milliseconds.

Parameters:
t1 - first time limit
t2 - last time limit
Returns:
an Enumeration of LogEntry objects. If no such LogEntries are available - an empty enumeration is returned.

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved