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 TypeMethodDescriptionvoidclose()Close this publisher.getDN()Gets the DN of the configuration entry for this log publisher.voidinitializeLogPublisher(AccessLogPublisherCfg cfg, ServerContext serverContext) Initializes this publisher provider based on the information in the provided debug publisher configuration.voidlogAbandonResult(RequestContext context, AbandonRequest request, Result result) Writes a message to the access logger with information about the provided result.voidlogAddResult(RequestContext context, AddRequest request, Result result) Writes a message to the access logger with information about the add result.voidlogBindResult(RequestContext context, BindRequest request, Result result) Writes a message to the access logger with information about the bind result.voidlogCompareResult(RequestContext context, CompareRequest request, Result result) Writes a message to the access logger with information about the compare result.voidlogDeleteResult(RequestContext context, DeleteRequest request, Result result) Writes a message to the access logger with information about the delete result.voidlogExtendedResult(RequestContext context, ExtendedRequest<?> request, Result result) Writes a message to the access logger with information about the extended result.voidlogInvalidResult(RequestContext context, InvalidRequest request, Result result) Writes a message to the access logger with information about the result.voidlogModifyDnResult(RequestContext context, ModifyDnRequest request, Result result) Writes a message to the access logger with information about the modifyDN result.voidlogModifyResult(RequestContext context, ModifyRequest request, Result result) Writes a message to the access logger with information about the modify result.voidlogSearchResult(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:LogPublisherInitializes 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:LogPublisherClose this publisher. -
getDN
Description copied from interface:LogPublisherGets the DN of the configuration entry for this log publisher.- Returns:
- The configuration entry DN.
-
logAbandonResult
Description copied from class:AccessLogPublisherWrites 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:
logAbandonResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the context for the requestrequest- the original abandon requestresult- theResultto the abandon request
-
logAddResult
Description copied from class:AccessLogPublisherWrites a message to the access logger with information about the add result.The default implementation is to not log anything.
- Overrides:
logAddResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the logging context for the requestrequest- the original add requestresult- the result to log
-
logBindResult
Description copied from class:AccessLogPublisherWrites a message to the access logger with information about the bind result.The default implementation is to not log anything.
- Overrides:
logBindResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the logging context for the requestrequest- the original bind requestresult- the result to log
-
logCompareResult
Description copied from class:AccessLogPublisherWrites a message to the access logger with information about the compare result.The default implementation is to not log anything.
- Overrides:
logCompareResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the logging context for the requestrequest- the original compare requestresult- the result to log
-
logDeleteResult
Description copied from class:AccessLogPublisherWrites a message to the access logger with information about the delete result.The default implementation is to not log anything.
- Overrides:
logDeleteResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the logging context for the requestrequest- the original delete requestresult- the result to log
-
logExtendedResult
Description copied from class:AccessLogPublisherWrites a message to the access logger with information about the extended result.The default implementation is to not log anything.
- Overrides:
logExtendedResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the logging context for the requestrequest- the original extended requestresult- the result to log
-
logInvalidResult
Description copied from class:AccessLogPublisherWrites a message to the access logger with information about the result.The default implementation is to not log anything.
- Overrides:
logInvalidResultin 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:AccessLogPublisherWrites a message to the access logger with information about the modifyDN result.The default implementation is to not log anything.
- Overrides:
logModifyDnResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the logging context for the requestrequest- the original modifyDN requestresult- the result to log
-
logModifyResult
Description copied from class:AccessLogPublisherWrites a message to the access logger with information about the modify result.The default implementation is to not log anything.
- Overrides:
logModifyResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the logging context for the requestrequest- the original modify requestresult- the result to log
-
logSearchResult
Description copied from class:AccessLogPublisherWrites a message to the access logger with information about the search result.The default implementation is to not log anything.
- Overrides:
logSearchResultin classAccessLogPublisher<AccessLogPublisherCfg>- Parameters:
context- the logging context for the requestrequest- the original search requestresult- the result to log
-