Package org.opends.server.loggers
Class JfrAccessLogPublisher
java.lang.Object
org.opends.server.loggers.AccessLogPublisher<AccessLogPublisherCfg>
org.opends.server.loggers.JfrAccessLogPublisher
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LogPublisher<AccessLogPublisherCfg>
An access logger which emits JFR events for monitoring current load.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this publisher.getDN()
Gets the DN of the configuration entry for this log publisher.void
initializeLogPublisher
(AccessLogPublisherCfg cfg, ServerContext serverContext) Initializes this publisher provider based on the information in the provided debug publisher configuration.void
logAbandonResult
(RequestContext context, AbandonRequest request, Result result) Writes a message to the access logger with information about the provided result.void
logAddResult
(RequestContext context, AddRequest request, Result result) Writes a message to the access logger with information about the add result.void
logBindResult
(RequestContext context, BindRequest request, Result result) Writes a message to the access logger with information about the bind result.void
logCompareResult
(RequestContext context, CompareRequest request, Result result) Writes a message to the access logger with information about the compare result.void
logDeleteResult
(RequestContext context, DeleteRequest request, Result result) Writes a message to the access logger with information about the delete result.void
logExtendedResult
(RequestContext context, ExtendedRequest<?> request, Result result) Writes a message to the access logger with information about the extended result.void
logInvalidResult
(RequestContext context, InvalidRequest request, Result result) Writes a message to the access logger with information about the result.void
logModifyDnResult
(RequestContext context, ModifyDnRequest request, Result result) Writes a message to the access logger with information about the modifyDN result.void
logModifyResult
(RequestContext context, ModifyRequest request, Result result) Writes a message to the access logger with information about the modify result.void
logSearchResult
(RequestContext context, SearchRequest request, Result result) Writes a message to the access logger with information about the search result.Creates a new initialized JFR access log publisher.Methods inherited from class org.opends.server.loggers.AccessLogPublisher
isConfigurationAcceptable, logAbandonRequest, logAddRequest, logBindRequest, logCompareRequest, logConnect, logDeleteRequest, logDisconnect, logExtendedRequest, logInvalidRequest, logModifyDnRequest, logModifyRequest, logSearchRequest, logTlsHandshake, logUnbind
-
Method Details
-
newJfrAccessLogPublisher
Creates a new initialized JFR access log publisher.- Returns:
- The log publisher.
-
initializeLogPublisher
Description copied from interface:LogPublisher
Initializes this publisher provider based on the information in the provided debug publisher configuration.- Parameters:
cfg
- The publisher configuration that contains the information to use to initialize this publisher.serverContext
- The server context.
-
close
public void close()Description copied from interface:LogPublisher
Close this publisher. -
getDN
Description copied from interface:LogPublisher
Gets the DN of the configuration entry for this log publisher.- Returns:
- The configuration entry DN.
-
logAbandonResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the provided result. Note there is no LDAP result sent back to client, it is for logging purposes only.- Overrides:
logAbandonResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the context for the requestrequest
- the original abandon requestresult
- theResult
to the abandon request
-
logAddResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the add result.The default implementation is to not log anything.
- Overrides:
logAddResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original add requestresult
- the result to log
-
logBindResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the bind result.The default implementation is to not log anything.
- Overrides:
logBindResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original bind requestresult
- the result to log
-
logCompareResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the compare result.The default implementation is to not log anything.
- Overrides:
logCompareResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original compare requestresult
- the result to log
-
logDeleteResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the delete result.The default implementation is to not log anything.
- Overrides:
logDeleteResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original delete requestresult
- the result to log
-
logExtendedResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the extended result.The default implementation is to not log anything.
- Overrides:
logExtendedResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original extended requestresult
- the result to log
-
logInvalidResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the result.The default implementation is to not log anything.
- Overrides:
logInvalidResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original description of the invalid requestresult
- the result to log
-
logModifyDnResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the modifyDN result.The default implementation is to not log anything.
- Overrides:
logModifyDnResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original modifyDN requestresult
- the result to log
-
logModifyResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the modify result.The default implementation is to not log anything.
- Overrides:
logModifyResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original modify requestresult
- the result to log
-
logSearchResult
Description copied from class:AccessLogPublisher
Writes a message to the access logger with information about the search result.The default implementation is to not log anything.
- Overrides:
logSearchResult
in classAccessLogPublisher<AccessLogPublisherCfg>
- Parameters:
context
- the logging context for the requestrequest
- the original search requestresult
- the result to log
-