|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jwall.web.audit.io.ConcurrentAuditReader
public class ConcurrentAuditReader
This class read the index-file of a concurrent auditlog and creates audit-events from the appopriate event-files, if available.
| Constructor Summary | |
|---|---|
ConcurrentAuditReader(java.io.File dataDir)
|
|
ConcurrentAuditReader(java.io.File dataDir,
boolean tail)
This constructor creates a new concurrent audit-reader that listens on the index file in the given data-directory. |
|
ConcurrentAuditReader(java.io.File data,
java.io.File index)
|
|
ConcurrentAuditReader(java.io.File dataDir,
java.io.File indexFile,
boolean tail)
This constructor creates a new concurrent audit-reader that reads from the given index file and expects the audit data-files to exist relative to the given data-directory. |
|
| Method Summary | |
|---|---|
long |
bytesAvailable()
|
long |
bytesRead()
|
void |
close()
|
void |
finish()
|
AuditEvent |
readEvent(java.lang.String s)
This method creates an audit-event instance from a file. |
AuditEvent |
readNext()
This method read the next event from the file-system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcurrentAuditReader(java.io.File dataDir,
java.io.File indexFile,
boolean tail)
throws java.io.IOException
dataDir - The base directory of the data-files.indexFile - The file containing the summary-lines for all events.
java.io.IOException - In case any of the files cannot be read or does not exist.
public ConcurrentAuditReader(java.io.File data,
java.io.File index)
throws java.io.IOException
java.io.IOException
public ConcurrentAuditReader(java.io.File dataDir,
boolean tail)
throws java.io.IOException
index and
has to exists in the given data-directory.
dataDir - The directory where all audit-data is stored.
java.lang.Exception - In case the index file does not exists or
cannot be read.
java.io.IOException
public ConcurrentAuditReader(java.io.File dataDir)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public AuditEvent readNext()
throws java.io.IOException,
ParseException
readNext in interface AuditEventReaderNULL if no event is available.
java.io.IOException
ParseException
public AuditEvent readEvent(java.lang.String s)
throws java.io.IOException,
ParseException
s and the basic
data directory that was specified at creation of this audit-reader.
s - The index entry line.
java.io.IOException - In case the file cannot be read (due to non-existence
or missing rights) an exception is thrown.
ParseExceptionpublic void finish()
public void close()
throws java.io.IOException
close in interface AuditEventReaderjava.io.IOExceptionpublic long bytesRead()
bytesRead in interface AuditEventReaderpublic long bytesAvailable()
bytesAvailable in interface AuditEventReader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||