| File was renamed from opends/src/server/org/opends/server/api/AccessLogger.java |
| | |
| | | */ |
| | | package org.opends.server.api; |
| | | |
| | | |
| | | |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.admin.std.server.AccessLogPublisherCfg; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.AbandonOperation; |
| | | import org.opends.server.core.AddOperation; |
| | | import org.opends.server.core.BindOperation; |
| | | import org.opends.server.core.CompareOperation; |
| | | import org.opends.server.core.DeleteOperation; |
| | | import org.opends.server.core.ExtendedOperation; |
| | | import org.opends.server.core.ModifyOperation; |
| | | import org.opends.server.core.ModifyDNOperation; |
| | | import org.opends.server.core.SearchOperation; |
| | | import org.opends.server.core.UnbindOperation; |
| | | import org.opends.server.types.DisconnectReason; |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.DisconnectReason; |
| | | import org.opends.server.types.SearchResultEntry; |
| | | import org.opends.server.types.SearchResultReference; |
| | | |
| | | |
| | | import org.opends.server.core.*; |
| | | |
| | | /** |
| | | * This class defines the set of methods and structures that must be |
| | | * implemented for a Directory Server access logger. |
| | | * implemented for a Directory Server access log publisher. |
| | | * |
| | | * @param <T> The type of access log publisher configuration handled |
| | | * by this log publisher implementation. |
| | | */ |
| | | public abstract class AccessLogger |
| | | public abstract class AccessLogPublisher |
| | | <T extends AccessLogPublisherCfg> |
| | | { |
| | | /** |
| | | * Initializes this access logger based on the information in the |
| | | * provided configuration entry. |
| | | * |
| | | * @param configEntry The configuration entry that contains the |
| | | * information to use to initialize this access |
| | | * logger. |
| | | * |
| | | * @throws ConfigException If an unrecoverable problem arises in |
| | | * the process of performing the |
| | | * initialization. |
| | | * |
| | | * @throws InitializationException If a problem occurs during |
| | | * initialization that is not |
| | | * related to the server |
| | | * configuration. |
| | | * Indicates if internal operations should be omited in the messages |
| | | * logged by this publisher. |
| | | */ |
| | | public abstract void initializeAccessLogger(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException; |
| | | |
| | | |
| | | protected boolean suppressInternalOperations = true; |
| | | |
| | | /** |
| | | * Closes this access logger and releases any resources it might |
| | | * have held. |
| | | * Initializes this access publisher provider based on the |
| | | * information in the provided debug publisher configuration. |
| | | * |
| | | * @param config |
| | | * The access publisher configuration that contains the |
| | | * information to use to initialize this access publisher. |
| | | * @throws org.opends.server.config.ConfigException |
| | | * If an unrecoverable problem arises in the process of |
| | | * performing the initialization as a result of the server |
| | | * configuration. |
| | | * @throws org.opends.server.types.InitializationException |
| | | * If a problem occurs during initialization that is not |
| | | * related to the server configuration. |
| | | */ |
| | | public abstract void closeAccessLogger(); |
| | | public abstract void initializeAccessLogPublisher(T config) |
| | | throws ConfigException, InitializationException; |
| | | |
| | | |
| | | /** |
| | | * Close this publisher. |
| | | */ |
| | | public abstract void close(); |
| | | |
| | | /** |
| | | * Writes a message to the access logger with information about a |
| | |
| | | * the disconnect. |
| | | */ |
| | | public abstract void |
| | | logDisconnect(ClientConnection clientConnection, |
| | | DisconnectReason disconnectReason, |
| | | String message); |
| | | logDisconnect(ClientConnection clientConnection, |
| | | DisconnectReason disconnectReason, |
| | | String message); |
| | | |
| | | |
| | | |
| | |
| | | * request. |
| | | */ |
| | | public abstract void logAbandonRequest(AbandonOperation |
| | | abandonOperation); |
| | | abandonOperation); |
| | | |
| | | |
| | | /** |
| | |
| | | * request. |
| | | */ |
| | | public abstract void logAbandonResult(AbandonOperation |
| | | abandonOperation); |
| | | abandonOperation); |
| | | |
| | | |
| | | |
| | |
| | | * request. |
| | | */ |
| | | public abstract void logCompareRequest(CompareOperation |
| | | compareOperation); |
| | | compareOperation); |
| | | |
| | | |
| | | |
| | |
| | | * response. |
| | | */ |
| | | public abstract void logCompareResponse(CompareOperation |
| | | compareOperation); |
| | | compareOperation); |
| | | |
| | | |
| | | |
| | |
| | | * request. |
| | | */ |
| | | public abstract void logDeleteRequest(DeleteOperation |
| | | deleteOperation); |
| | | deleteOperation); |
| | | |
| | | |
| | | |
| | |
| | | * response. |
| | | */ |
| | | public abstract void logDeleteResponse(DeleteOperation |
| | | deleteOperation); |
| | | deleteOperation); |
| | | |
| | | |
| | | |
| | |
| | | * request. |
| | | */ |
| | | public abstract void logExtendedRequest(ExtendedOperation |
| | | extendedOperation); |
| | | extendedOperation); |
| | | |
| | | |
| | | |
| | |
| | | * response. |
| | | */ |
| | | public abstract void logExtendedResponse(ExtendedOperation |
| | | extendedOperation); |
| | | extendedOperation); |
| | | |
| | | |
| | | |
| | |
| | | * request. |
| | | */ |
| | | public abstract void logModifyRequest(ModifyOperation |
| | | modifyOperation); |
| | | modifyOperation); |
| | | |
| | | |
| | | |
| | |
| | | * response. |
| | | */ |
| | | public abstract void logModifyResponse(ModifyOperation |
| | | modifyOperation); |
| | | modifyOperation); |
| | | |
| | | |
| | | |
| | |
| | | * DN request. |
| | | */ |
| | | public abstract void logModifyDNRequest(ModifyDNOperation |
| | | modifyDNOperation); |
| | | modifyDNOperation); |
| | | |
| | | |
| | | |
| | |
| | | * DN response. |
| | | */ |
| | | public abstract void logModifyDNResponse(ModifyDNOperation |
| | | modifyDNOperation); |
| | | modifyDNOperation); |
| | | |
| | | |
| | | |
| | |
| | | * request. |
| | | */ |
| | | public abstract void logSearchRequest(SearchOperation |
| | | searchOperation); |
| | | searchOperation); |
| | | |
| | | |
| | | |
| | |
| | | * @param searchEntry The search result entry to be logged. |
| | | */ |
| | | public abstract void logSearchResultEntry( |
| | | SearchOperation searchOperation, |
| | | SearchResultEntry searchEntry); |
| | | SearchOperation searchOperation, |
| | | SearchResultEntry searchEntry); |
| | | |
| | | |
| | | |
| | |
| | | * logged. |
| | | */ |
| | | public abstract void logSearchResultReference( |
| | | SearchOperation searchOperation, |
| | | SearchResultReference searchReference); |
| | | SearchOperation searchOperation, |
| | | SearchResultReference searchReference); |
| | | |
| | | |
| | | |
| | |
| | | * result done message. |
| | | */ |
| | | public abstract void logSearchResultDone(SearchOperation |
| | | searchOperation); |
| | | searchOperation); |
| | | |
| | | |
| | | |
| | |
| | | * request. |
| | | */ |
| | | public abstract void logUnbind(UnbindOperation unbindOperation); |
| | | |
| | | |
| | | |
| | | /** |
| | | * Indicates whether the provided object is equal to this access |
| | | * logger. |
| | | * |
| | | * @param o The object for which to make the determination. |
| | | * |
| | | * @return <CODE>true</CODE> if the provided object is determined |
| | | * to be equal to this access logger, or <CODE>false</CODE> |
| | | * if not. |
| | | */ |
| | | public abstract boolean equals(Object o); |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the hash code for this access logger. |
| | | * |
| | | * @return The hash code for this access logger. |
| | | */ |
| | | public abstract int hashCode(); |
| | | } |
| | | |