public class TimerInterceptor extends BaseInterceptor
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_DEBUG_STATS
Speedup for logs
|
private static boolean |
IS_DEBUG_TIME |
private static java.util.concurrent.atomic.AtomicInteger |
nbAddCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbBindCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbCompareCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbDeleteCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbGetRootDseCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbHasEntryCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbLookupCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbModifyCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbMoveAndRenameCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbMoveCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbRenameCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbSearchCalls |
private static java.util.concurrent.atomic.AtomicInteger |
nbUnbindCalls |
private static org.slf4j.Logger |
OPERATION_STATS
A aggregating logger
|
private static org.slf4j.Logger |
OPERATION_TIME
An operation logger
|
private static java.util.concurrent.atomic.AtomicLong |
totalAdd
Stats for the add operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalBind
Stats for the bind operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalCompare
Stats for the compare operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalDelete
Stats for the delete operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalGetRootDse
Stats for the GetRootDse operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalHasEntry
Stats for the HasEntry operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalLookup
Stats for the lookup operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalModify
Stats for the modify operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalMove
Stats for the move operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalMoveAndRename
Stats for the moveAndRename operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalRename
Stats for the rename operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalSearch
Stats for the search operation
|
private static java.util.concurrent.atomic.AtomicLong |
totalUnbind
Stats for the unbind operation
|
directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager| Constructor and Description |
|---|
TimerInterceptor(java.lang.String name)
Creates a new instance of TimerInterceptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AddOperationContext addContext)
Filters
Partition#add( AddOperationContext ) call. |
void |
bind(BindOperationContext bindContext)
Filters
Partition#bind( BindOperationContext ) call. |
boolean |
compare(CompareOperationContext compareContext)
Filters
DefaultPartitionNexus#compare( CompareOperationContext ) call. |
void |
delete(DeleteOperationContext deleteContext)
Filters
Partition#delete( DeleteOperationContext ) call. |
void |
destroy()
This method does nothing by default.
|
org.apache.directory.api.ldap.model.entry.Entry |
getRootDse(GetRootDseOperationContext getRootDseContext)
Filters
DefaultPartitionNexus#getRootDse( GetRootDseOperationContext ) call. |
boolean |
hasEntry(HasEntryOperationContext hasEntryContext)
Filters
Partition#hasEntry( HasEntryOperationContext ) call. |
void |
init(DirectoryService directoryService)
This method does nothing by default.
|
org.apache.directory.api.ldap.model.entry.Entry |
lookup(LookupOperationContext lookupContext)
Filters
Partition#lookup( LookupOperationContext ) call. |
void |
modify(ModifyOperationContext modifyContext)
Filters
Partition#modify( ModifyOperationContext ) call. |
void |
move(MoveOperationContext moveContext)
Filters
Partition#move( MoveOperationContext ) call. |
void |
moveAndRename(MoveAndRenameOperationContext moveAndRenameContext)
Filters
Partition#moveAndRename( MoveAndRenameOperationContext) call. |
void |
rename(RenameOperationContext renameContext)
Filters
Partition#rename( RenameOperationContext ) call. |
EntryFilteringCursor |
search(SearchOperationContext searchContext)
Filters
Partition#search( SearchOperationContext ) call. |
void |
unbind(UnbindOperationContext unbindContext)
Filters
Partition#unbind( UnbindOperationContext ) call. |
private static final org.slf4j.Logger OPERATION_STATS
private static final org.slf4j.Logger OPERATION_TIME
private static final boolean IS_DEBUG_STATS
private static final boolean IS_DEBUG_TIME
private static java.util.concurrent.atomic.AtomicLong totalAdd
private static java.util.concurrent.atomic.AtomicInteger nbAddCalls
private static java.util.concurrent.atomic.AtomicLong totalBind
private static java.util.concurrent.atomic.AtomicInteger nbBindCalls
private static java.util.concurrent.atomic.AtomicLong totalCompare
private static java.util.concurrent.atomic.AtomicInteger nbCompareCalls
private static java.util.concurrent.atomic.AtomicLong totalDelete
private static java.util.concurrent.atomic.AtomicInteger nbDeleteCalls
private static java.util.concurrent.atomic.AtomicLong totalGetRootDse
private static java.util.concurrent.atomic.AtomicInteger nbGetRootDseCalls
private static java.util.concurrent.atomic.AtomicLong totalHasEntry
private static java.util.concurrent.atomic.AtomicInteger nbHasEntryCalls
private static java.util.concurrent.atomic.AtomicLong totalLookup
private static java.util.concurrent.atomic.AtomicInteger nbLookupCalls
private static java.util.concurrent.atomic.AtomicLong totalModify
private static java.util.concurrent.atomic.AtomicInteger nbModifyCalls
private static java.util.concurrent.atomic.AtomicLong totalMove
private static java.util.concurrent.atomic.AtomicInteger nbMoveCalls
private static java.util.concurrent.atomic.AtomicLong totalMoveAndRename
private static java.util.concurrent.atomic.AtomicInteger nbMoveAndRenameCalls
private static java.util.concurrent.atomic.AtomicLong totalRename
private static java.util.concurrent.atomic.AtomicInteger nbRenameCalls
private static java.util.concurrent.atomic.AtomicLong totalSearch
private static java.util.concurrent.atomic.AtomicInteger nbSearchCalls
private static java.util.concurrent.atomic.AtomicLong totalUnbind
private static java.util.concurrent.atomic.AtomicInteger nbUnbindCalls
public TimerInterceptor(java.lang.String name)
name - This interceptor's getName()public void init(DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
init in interface Interceptorinit in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void destroy()
destroy in interface Interceptordestroy in class BaseInterceptorpublic void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#add( AddOperationContext ) call.add in interface Interceptoradd in class BaseInterceptoraddContext - The AddOperationContext instanceorg.apache.directory.api.ldap.model.exception.LdapException - If we had some error while processing the Add operationpublic void bind(BindOperationContext bindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#bind( BindOperationContext ) call.bind in interface Interceptorbind in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean compare(CompareOperationContext compareContext) throws org.apache.directory.api.ldap.model.exception.LdapException
DefaultPartitionNexus#compare( CompareOperationContext ) call.compare in interface Interceptorcompare in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void delete(DeleteOperationContext deleteContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#delete( DeleteOperationContext ) call.delete in interface Interceptordelete in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic org.apache.directory.api.ldap.model.entry.Entry getRootDse(GetRootDseOperationContext getRootDseContext) throws org.apache.directory.api.ldap.model.exception.LdapException
DefaultPartitionNexus#getRootDse( GetRootDseOperationContext ) call.getRootDse in interface InterceptorgetRootDse in class BaseInterceptorgetRootDseContext - The getRoot() operation contextorg.apache.directory.api.ldap.model.exception.LdapException - If we can't get back the RootDSE entrypublic boolean hasEntry(HasEntryOperationContext hasEntryContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#hasEntry( HasEntryOperationContext ) call.hasEntry in interface InterceptorhasEntry in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic org.apache.directory.api.ldap.model.entry.Entry lookup(LookupOperationContext lookupContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#lookup( LookupOperationContext ) call.lookup in interface Interceptorlookup in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void modify(ModifyOperationContext modifyContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#modify( ModifyOperationContext ) call.modify in interface Interceptormodify in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void move(MoveOperationContext moveContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#move( MoveOperationContext ) call.move in interface Interceptormove in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void moveAndRename(MoveAndRenameOperationContext moveAndRenameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#moveAndRename( MoveAndRenameOperationContext) call.moveAndRename in interface InterceptormoveAndRename in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void rename(RenameOperationContext renameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#rename( RenameOperationContext ) call.rename in interface Interceptorrename in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic EntryFilteringCursor search(SearchOperationContext searchContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#search( SearchOperationContext ) call.search in interface Interceptorsearch in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void unbind(UnbindOperationContext unbindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition#unbind( UnbindOperationContext ) call.unbind in interface Interceptorunbind in class BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapException