Package com.sun.identity.log.handlers
Class RemoteHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- com.sun.identity.log.handlers.RemoteHandler
-
public class RemoteHandler extends Handler
The class which publishes the log message to a remote log service. Also does buffering of LogRecords upto the number specified in the log configuration. This buffer is emptied when the number of log records in the buffer reaches the specified number or when the specified time interval is exceeded.
-
-
Constructor Summary
Constructors Constructor Description RemoteHandler(String dummyParam)Constructor in which the configuration of the handler is done.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Flushes any buffered output by calling flush(), and then close the handler and free all associated resources with this handler.voidflush()Flush any buffered output.voidnonBlockingFlush()Copy the existing request set map and pass it on to ThreadPool as part of a FlushTask.voidpublish(LogRecord logRecord)This method sends the LogRecord to the remote logging service.-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Constructor Detail
-
RemoteHandler
public RemoteHandler(String dummyParam)
Constructor in which the configuration of the handler is done.- Parameters:
dummyParam- dummy parameter. To make instantation generic for all handlers.
-
-
Method Detail
-
publish
public void publish(LogRecord logRecord)
This method sends the LogRecord to the remote logging service.
-
close
public void close()
Flushes any buffered output by calling flush(), and then close the handler and free all associated resources with this handler.
-
nonBlockingFlush
public void nonBlockingFlush()
Copy the existing request set map and pass it on to ThreadPool as part of a FlushTask. Initiatize a new map as the new request set map for future remote logging calls.
-
-