|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.loggers.LogPublisherErrorHandler
public class LogPublisherErrorHandler
A LogPublisherErrorHandler is used for notification of exceptions which occur during the publishing of a record. The advantage of using a handler is that we can handle exceptions asynchronously (useful when dealing with an AsynchronousPublisher).
| Constructor Summary | |
|---|---|
LogPublisherErrorHandler(DN publisherConfigDN)
Construct a new log publisher error handler for a log publisher with the provided configuration DN. |
|
| Method Summary | |
|---|---|
void |
handleCloseError(java.lang.Throwable ex)
Handle an exception which occurred while trying to close a log file. |
void |
handleDeleteError(RetentionPolicy retentionPolicy,
java.lang.Throwable ex)
Handle an exception which occured while trying to list log files in a directory. |
void |
handleFlushError(java.lang.Throwable ex)
Handle an exception which occurred while trying to flush the writer buffer. |
void |
handleOpenError(java.io.File file,
java.lang.Throwable ex)
Handle an exception which occurred while trying to open a log file. |
void |
handleWriteError(java.lang.String record,
java.lang.Throwable ex)
Handle an exception which occurred during the publishing of a log record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogPublisherErrorHandler(DN publisherConfigDN)
publisherConfigDN - The DN of the managed object for the
log publisher.| Method Detail |
|---|
public void handleWriteError(java.lang.String record,
java.lang.Throwable ex)
record - - the record which was being published.ex - - the exception occurred.
public void handleOpenError(java.io.File file,
java.lang.Throwable ex)
file - - the file which was being opened.ex - - the exception occurred.public void handleCloseError(java.lang.Throwable ex)
ex - - the exception occurred.public void handleFlushError(java.lang.Throwable ex)
ex - - the exception occurred.
public void handleDeleteError(RetentionPolicy retentionPolicy,
java.lang.Throwable ex)
retentionPolicy - - the retention policy being enforced when
the exception occured.ex - - the exception occurred.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||