| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void close() |
| | | { |
| | | writer.shutdown(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public DN getDN() |
| | | { |
| | | if (currentConfig != null) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void initializeAccessLogPublisher( |
| | | FileBasedAccessLogPublisherCfg config) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | AccessLogPublisherCfg configuration, |
| | | List<Message> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logAbandonIntermediateMessage(AbandonOperation abandonOperation, |
| | | String category, Map<String, String> content) |
| | | { |
| | |
| | | * The abandon operation containing the information to use |
| | | * to log the abandon request. |
| | | */ |
| | | @Override |
| | | public void logAbandonRequest(AbandonOperation abandonOperation) |
| | | { |
| | | if (!isLoggable(abandonOperation)) |
| | |
| | | * The abandon operation containing the information to use |
| | | * to log the abandon request. |
| | | */ |
| | | @Override |
| | | public void logAbandonResult(AbandonOperation abandonOperation) |
| | | { |
| | | if (!isLoggable(abandonOperation)) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logAddIntermediateMessage(AddOperation addOperation, |
| | | String category, Map<String, String> content) |
| | | { |
| | |
| | | * The add operation containing the information to use to |
| | | * log the add request. |
| | | */ |
| | | @Override |
| | | public void logAddRequest(AddOperation addOperation) |
| | | { |
| | | if (!isLoggable(addOperation)) |
| | |
| | | * The add operation containing the information to use to |
| | | * log the add response. |
| | | */ |
| | | @Override |
| | | public void logAddResponse(AddOperation addOperation) |
| | | { |
| | | if (!isLoggable(addOperation)) |
| | |
| | | } |
| | | |
| | | buffer.append(" etime="); |
| | | buffer.append(addOperation.getProcessingTime()); |
| | | long etime = addOperation.getProcessingNanoTime(); |
| | | if (etime <= -1) |
| | | { |
| | | etime = addOperation.getProcessingTime(); |
| | | } |
| | | buffer.append(etime); |
| | | |
| | | writer.writeRecord(buffer.toString()); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logBindIntermediateMessage(BindOperation bindOperation, |
| | | String category, Map<String, String> content) |
| | | { |
| | |
| | | * The bind operation with the information to use to log |
| | | * the bind request. |
| | | */ |
| | | @Override |
| | | public void logBindRequest(BindOperation bindOperation) |
| | | { |
| | | if (!isLoggable(bindOperation)) |
| | |
| | | * The bind operation containing the information to use to |
| | | * log the bind response. |
| | | */ |
| | | @Override |
| | | public void logBindResponse(BindOperation bindOperation) |
| | | { |
| | | if (!isLoggable(bindOperation)) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logCompareIntermediateMessage(CompareOperation compareOperation, |
| | | String category, Map<String, String> content) |
| | | { |
| | |
| | | * The compare operation containing the information to use |
| | | * to log the compare request. |
| | | */ |
| | | @Override |
| | | public void logCompareRequest(CompareOperation compareOperation) |
| | | { |
| | | if (!isLoggable(compareOperation)) |
| | |
| | | * The compare operation containing the information to use |
| | | * to log the compare response. |
| | | */ |
| | | @Override |
| | | public void logCompareResponse(CompareOperation compareOperation) |
| | | { |
| | | if (!isLoggable(compareOperation)) |
| | |
| | | * @param clientConnection |
| | | * The client connection that has been established. |
| | | */ |
| | | @Override |
| | | public void logConnect(ClientConnection clientConnection) |
| | | { |
| | | long connectionID = clientConnection.getConnectionID(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logDeleteIntermediateMessage(DeleteOperation deleteOperation, |
| | | String category, Map<String, String> content) |
| | | { |
| | |
| | | * The delete operation with the information to use to log |
| | | * the delete request. |
| | | */ |
| | | @Override |
| | | public void logDeleteRequest(DeleteOperation deleteOperation) |
| | | { |
| | | if (!isLoggable(deleteOperation)) |
| | |
| | | * The delete operation containing the information to use |
| | | * to log the delete response. |
| | | */ |
| | | @Override |
| | | public void logDeleteResponse(DeleteOperation deleteOperation) |
| | | { |
| | | if (!isLoggable(deleteOperation)) |
| | |
| | | * A human-readable message that can provide additional |
| | | * information about the disconnect. |
| | | */ |
| | | @Override |
| | | public void logDisconnect(ClientConnection clientConnection, |
| | | DisconnectReason disconnectReason, Message message) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logExtendedIntermediateMessage( |
| | | ExtendedOperation extendedOperation, String category, |
| | | Map<String, String> content) |
| | |
| | | * The extended operation containing the information to use |
| | | * to log the extended request. |
| | | */ |
| | | @Override |
| | | public void logExtendedRequest(ExtendedOperation extendedOperation) |
| | | { |
| | | if (!isLoggable(extendedOperation)) |
| | |
| | | * The extended operation containing the info to use to log |
| | | * the extended response. |
| | | */ |
| | | @Override |
| | | public void logExtendedResponse(ExtendedOperation extendedOperation) |
| | | { |
| | | if (!isLoggable(extendedOperation)) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logModifyDNIntermediateMessage( |
| | | ModifyDNOperation modifyDNOperation, String category, |
| | | Map<String, String> content) |
| | |
| | | * The modify DN operation containing the info to use to |
| | | * log the modify DN request. |
| | | */ |
| | | @Override |
| | | public void logModifyDNRequest(ModifyDNOperation modifyDNOperation) |
| | | { |
| | | if (!isLoggable(modifyDNOperation)) |
| | |
| | | * The modify DN operation containing the information to |
| | | * use to log the modify DN response. |
| | | */ |
| | | @Override |
| | | public void logModifyDNResponse(ModifyDNOperation modifyDNOperation) |
| | | { |
| | | if (!isLoggable(modifyDNOperation)) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logModifyIntermediateMessage(ModifyOperation modifyOperation, |
| | | String category, Map<String, String> content) |
| | | { |
| | |
| | | * The modify operation containing the information to use |
| | | * to log the modify request. |
| | | */ |
| | | @Override |
| | | public void logModifyRequest(ModifyOperation modifyOperation) |
| | | { |
| | | if (!isLoggable(modifyOperation)) |
| | |
| | | * The modify operation containing the information to use |
| | | * to log the modify response. |
| | | */ |
| | | @Override |
| | | public void logModifyResponse(ModifyOperation modifyOperation) |
| | | { |
| | | if (!isLoggable(modifyOperation)) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void logSearchIntermediateMessage(SearchOperation searchOperation, |
| | | String category, Map<String, String> content) |
| | | { |
| | |
| | | * The search operation containing the info to use to log |
| | | * the search request. |
| | | */ |
| | | @Override |
| | | public void logSearchRequest(SearchOperation searchOperation) |
| | | { |
| | | if (!isLoggable(searchOperation)) |
| | |
| | | * The search operation containing the information to use |
| | | * to log the search result done message. |
| | | */ |
| | | @Override |
| | | public void logSearchResultDone(SearchOperation searchOperation) |
| | | { |
| | | if (!isLoggable(searchOperation)) |
| | |
| | | * The unbind operation containing the info to use to log |
| | | * the unbind request. |
| | | */ |
| | | @Override |
| | | public void logUnbind(UnbindOperation unbindOperation) |
| | | { |
| | | if (!isLoggable(unbindOperation)) |