[jira] Created: (DIRSERVER-677) Refactor interceptors so only one
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Created: (DIRSERVER-677) Refactor interceptors so only one




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Created: (DIRSERVER-677) Refactor interceptors so only one  
Alex Karasulu (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-20-06 06:12 AM

Refactor interceptors so only one SearchRequestFilteringEnumeration is used
---------------------------------------------------------------------------

Key: DIRSERVER-677
URL: http://issues.apache.org/jira/browse/DIRSERVER-677
Project: Directory ApacheDS
Issue Type: Improvement
Components: core
Affects Versions: pre-1.0, 1.0-RC1, 1.0-RC2, 1.0-RC3
Reporter: Alex Karasulu
Priority: Trivial


We need to clean up the number of nested (wrappings of) SearchResultFilterin
gEnumerations.  It's best if we relocate the code that wraps Partition speci
fic Enumerations with this into the Nexus.  There we can add Filters to a si
ngle SearchResultFilteringE
numeration.  Right now a few interceptors wrap 3 layers of SearchResultFilte
ringEnumerations.  Here are the offending interceptors:

(1) DefaultAuthorizationService
(2) SubentryService
(3) CollectiveAttributeService

Creating a new SearchResultFilteringEnumeration everytime costs us about 2% 
total of processing time in search operations.  We could save a total of 4% 
and improve the code.

Regarding addFilter usage
------------------------------------------

Note that some interceptors, these 3, need to add filters at searh construct
ion time rather than at interceptor service init time.  These services can u
se the addFilter() interface of the SearchResultFilteringEnumeration but thi
s interface must make sure
the first prefetched entry is evaluated otherwise the first entry will be re
turned even if your filter rejects it.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://iss
ues.apache.org/ji...nistrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:17 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register