19 Aug, 2014
5 commits
-
…anges for new replicas and new domains Follow up of r10944 (and r10912 originally). Update ReplicaCursors with new replica offline information (For example, when replica came online or when there is more up to date replica offline information). Renamed ReplicaOfflineCursor(Test) to ReplicaCursor(Test) FileChangelogDB.java, JEChangelogDB.java: Added replicaCursors Map field. In getCursorFrom(), registered replicaCursors. In unregisterCursor(), handled ReplicaCursors. In notifyReplicaOnline() and notifyReplicaOffline(), called new method updateCursorsWithOfflineCSN(). ReplicaOfflineCursor.java: RENAMED to ReplicaCursor Removed returnReplicaOfflineMsg field. Changed replicaOfflineMsg field from ReplicaOfflineMsg to AtomicReference<ReplicaOfflineMsg>. In next(), rewrote the code to support resetting the replica offline CSN + added isReplicaOfflineMsgOutdated() and setOfflineCSN() Added replicaID and domainDB fields + called ReplicationDomainDB.unregisterCursor() in close() + added getReplicaID(). ReplicaOfflineCursorTest.java: RENAMED to ReplicaOfflineCursorTest Consequence of the change to ReplicaCursor. ChangeNumberIndexer.java: Removed outdated TODO git-svn-id: https://svn.forgerock.org/opendj/trunk@10958 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…anges for new replicas and new domains Fixing a deadlock situation with ExternalChangeLogTest. When removing domains, the cursors were not properly closed by ChangeNumberIndexer.run() before calling Object.wait(). Relied on the fact that DBCursors are not thread safe so if client code calls MultiDomainDBCursor.removeDomain(), then the cursor is immediately removed. I did not see the problem before because unit tests on trunk execute by default with file based changelog db. ChangeNumberIndexer.java: In run(), simplified the code that removes the domain cursors. CompositeDBCursor.java: Removed removeNoLongerNeededCursors() and removedCursorsIterator() + extracted method removeCursor() from it. Added another removeCursor() which also removes from the exhaustedCursors. MultiDomainDBCursor.java Consequence of the change to CompositeDBCursor. Removed removeDomains field and removedCursorsIterator(). In removeDomain(), now call CompositeDBCursor.removeCursor(). DomainDBCursor.java: Consequence of the change to CompositeDBCursor. git-svn-id: https://svn.forgerock.org/opendj/trunk@10955 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
… create a new suffix on existing backend git-svn-id: https://svn.forgerock.org/opendj/trunk@10954 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10952 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10947 41b1ffd8-f28e-4786-ab96-9950f0a78031
12 Aug, 2014
1 commit
-
In ctor, removed useless code, because this case is already covered in next(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10942 41b1ffd8-f28e-4786-ab96-9950f0a78031
11 Aug, 2014
1 commit
-
PBKDF2PasswordStorageScheme.java, PKCS5S2PasswordStorageScheme.java: Fixed a bug in PBKF2 + PKCS5S2 encodeOffline() methods which did not know how to deal with a byte[]. The right way was to wrap it in a ByteString like SaltedSHA1PasswordStorageScheme was already doing. BTW these encodeOffline() methods are never called from production code. Did more code factorization. Removed dead code in both with plainPlusSalt local variable which was not used for anything. Fixed a few bugs in PKCS5S2 where locks where not properly taken (or carefully avoided?). Made both PBKF2 + PKCS5S2 code look very similar now. PBKDF2PasswordStorageSchemeTestCase.java, PKCS5S2PasswordStorageSchemeTestCase.java, PasswordStorageSchemeTestCase.java, SaltedSHA1PasswordStorageSchemeTestCase.java, SaltedSHA256PasswordStorageSchemeTestCase.java, SaltedSHA384PasswordStorageSchemeTestCase.java, SaltedSHA512PasswordStorageSchemeTestCase.java: Removed dead code. CryptPasswordStorageSchemeTestCase.java: Made it reuse more code from PasswordStorageSchemeTestCase. git-svn-id: https://svn.forgerock.org/opendj/trunk@10941 41b1ffd8-f28e-4786-ab96-9950f0a78031
30 Jul, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10936 41b1ffd8-f28e-4786-ab96-9950f0a78031
25 Jul, 2014
3 commits
-
PBKDF2PasswordStorageSchemeTestCase.java: ADDED git-svn-id: https://svn.forgerock.org/opendj/trunk@10931 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…anges for new replicas and new domains Created ECLMultiDomainDBCursor to only let ECL enabled domains reach the ChangeNumberIndexer. ChangeNumberIndexer.java: Wrapped the MultiDomainDBCursor into an ECLMultiDomainDBCursor. ECLMultiDomainDBCursor.java: ADDED JEChangelogDB.java, FileChangelogDB.java: Removed unnecessary calls to MultimasterREplication.isECLEnabledDomain(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10930 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Used AutoRefactor. Reduced variable scopes. PBKDF2PasswordStorageScheme.java: Extracted methods getDigestBytes(), encodeAndMatch(), Removed unnecessary use of StringBuilders. In passwordMatches() and authPasswordMatches(), used String.indexOf(). PKCS5S2PasswordStorageScheme.java: See general changes. PKCS5S2PasswordStorageSchemeTestCase.java: In getTestPasswords(), reused the super method and filtered entries. git-svn-id: https://svn.forgerock.org/opendj/trunk@10929 41b1ffd8-f28e-4786-ab96-9950f0a78031
23 Jul, 2014
3 commits
-
…anges for new replicas and new domains Code Review: Nicolas Capponi Fixed regression introduced in r10912. It made fractional replication tests fail. ChangeNumberIndexer.initialize() must ignore ReplicaOfflineMsgs, just like ChangeNumberIndexer.run(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10928 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…anges for new replicas and new domains Fix done in r10925 ported to JE changelog implementation git-svn-id: https://svn.forgerock.org/opendj/trunk@10926 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…anges for new replicas and new domains Fixed a problem introduced in r10918. In getExistingOrNewDomainMap(DN) method, the MultimasterReplication.isECLEnabledDomain() method is called. However, this method blocks forever at replication startup because MultimasterReplication state is equals to STARTING and is only set to RUNNING in code that occurs after in the same thread. Code sequence is : 1. SynchronizationProviderConfigManager calls MultimasterReplication.initializeSynchronizationProvider() try to call MultimasterReplication.isECLEnabledDomain() but MultimasterReplication state is equals to STARTING so it waits indefinitely on a state change 2. SynchronizationProviderConfigManager calls DirectoryServer.registerSynchronizationProvider(provider) MultimasterReplication state is set to RUNNING Add a check on registeredMultiDomainCursors to ensure that isECLEnabledDomain() is not called when the replication server is starting (as no cursors can be created yet). git-svn-id: https://svn.forgerock.org/opendj/trunk@10925 41b1ffd8-f28e-4786-ab96-9950f0a78031
22 Jul, 2014
1 commit
-
…kend to support cn=changelog Merged + corrected backend error messages by passing in the backendID into the error messages + fixed translations (!?!) Started implementing ChangelogBackend by adding error messages. Used Collections.emptySet() for supported controls and / or features, where applicable. Generecized Backend class with the type of the configuration object + applied specific types to sub-classes of Backend. Code cleanups + factorized code by extracting methods + ran AutoRefactor. git-svn-id: https://svn.forgerock.org/opendj/trunk@10923 41b1ffd8-f28e-4786-ab96-9950f0a78031
21 Jul, 2014
7 commits
-
to support cn=changelog CR-4053 Preparatory work for the changelog backend: add a new behavior to cursors, in order to be able to start cursor at a given key instead of starting just after. In order to avoid introducing another boolean in the methods, I created two enums to define the behavior of a cursor. Note that JE implementation does not yet implement the new behavior. * DBCursor class : add two enums KeyMatchingStrategy and PositionStrategy ** The new behavior corresponds to PositionStrategy.ON_MATCHING_KEY, which allow to position on the record with the given key (while AFTER_MATCHING_KEY position just after the record with the given key). * ReplicationDomainDB : add PositionStrategy argument for all methods that returns a cursor * ReplicationServerDomain : getCursorFrom(DN, ServerState) method calls underlying method with PositionStrategy.AFTER_MATCHING_KEY * FileChangelogDB : add PositionStrategy argument for all methods that returns a cursor * FileReplicaDB : add PositionStrategy argument to generateCursorFrom(CSN) method * FileReplicaDBCursor : add PositionStrategy argument to the constructor, implement the new behavior when position strategy is ON_MATCHING_KEY * DomainDBCursor, MultiDomainDBCursor : add PositionStrategy argument to the constructor, pass the strategy to underlying cursors * Log, LogFile, BlockLogReader : implement the new behavior when position strategy is ON_MATCHING_KEY * ChangeNumberIndexer : use AFTER_MATCHING_KEY strategy when retrieving the cursor (no behavior change) * JEChangelogDB : add PositionStrategy argument for all methods that returns a cursor, but getCursorFrom(DN, int, CSN, PositionStrategy) method does NOT implement the new ON_MATCHING_KEY strategy. * Update of tests classes to match method signature but no new tests added for the new behavior (ON_MATCHING_KEY) - to be done later git-svn-id: https://svn.forgerock.org/opendj/trunk@10922 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
to support cn=changelog CR-4052 Revert previous changes corresponding to CR-4052 as a better approach is to implement the processing of "Changelog Exchange Control" directly in the changelog backend. git-svn-id: https://svn.forgerock.org/opendj/trunk@10921 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10919 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…anges for new replicas and new domains Fixed a problem introduced in r10912. Problem was due to removing domains from the MultiDomainDBCursor: In CompositeDBCursor.removeNoLongerNeededCursors(), code iterates over cursors and then forget baseDNs to remove only they match with a cursor. Problem is that it should be the other way around: iterate over the baseDNs to remove and always forget them whether or not a matching cursor is found. ChangeNumberIndexer.java: In run(), better handled the removed domains. CompositeDBCursor.java: In removeNoLongerNeededCursors(), iterate over the baseDNs to remove, find a cursor and remove it if found, then always forget the baseDN. Added abstract method removedCursorsIterator(). Removed isCursorNoLongerNeededFor() and cursorRemoved(). DomainDBCursor.java, MultiDomainDBCursor.java, CompositeDBCursorTest.java: Consequence of the changes to CompositeDBCursor. ExternalChangeLogTest.java: Code cleanup. Extracted method readMessages() to factorize code. Added method assertLastCookieDifferentThanLastValue() to loop until last cookie is updated. Added inner class Results. FileChangelogDB.java, JEChangelogDB.java: In getExistingOrNewDomainMap(), only add the new domain if the baseDN is from an ECL enabled domain. FileReplicaDBCursor.java: Fixed javadoc. git-svn-id: https://svn.forgerock.org/opendj/trunk@10918 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
to support cn=changelog CR-4052 Preparatory work for the changelog backend: make the "Changelog Exchange Control" available to the backend when search(SearchOperation) method is called * LocalBackendSearchOperation#handleRequestControls() method: handle the "Changelog Exchange Control" : add it to the SearchOperation if provided in the request * SearchOperation, SearchOperationBasis and SearchOperationWrapper classes: add getter and setter for the "Changelog Exchange Control" (ECLRequestControl class) * core.properties : add new message for case when "Changelog Exchange Control" is requested but not supported by a backend git-svn-id: https://svn.forgerock.org/opendj/trunk@10917 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
to support cn=changelog Skeleton of the new backend class : ChangelogBackend.java git-svn-id: https://svn.forgerock.org/opendj/trunk@10916 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
to support cn=changelog CR-4036 Preparatory work : change implementation of virtual attribute providers related to external changelog to be independant of ECL workflow * ReplicationServer class: ** remove duplication of virtual attribute providers creation (for registering and deregistering) ** create virtual attribute providers by injecting the replication server instance * FirstChangeNumberVirtualAttributeProvider, LastChangeNumberVirtualAttributeProvider, LastCookieVirtualProvider classes: ** inject ReplicationServer in constructor in order to use it in getValues() method ** remove ConfigurationChangeListener implementation because no config change can happen * ChangelogBaseDNVirtualAttributeProvider class: ** remove ConfigurationChangeListener implementation because no config change can happen git-svn-id: https://svn.forgerock.org/opendj/trunk@10915 41b1ffd8-f28e-4786-ab96-9950f0a78031
19 Jul, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10914 41b1ffd8-f28e-4786-ab96-9950f0a78031
18 Jul, 2014
3 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10913 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…anges for new replicas and new domains This commit only fixes the "new replicas" case. For this, I made the existing CompositeDBCursor abstract and implemented 2 new cursors: DomainDBCursor and MultiDomainDBCursor which iterate on a single replication domain or in a cross domain fashion. These new cursors are able to react to topology changes like a new domain or a new replica. However, ECL persistent search cannot take advantage of them right now because their list of ECLServerHandler.domainCtxts is initialized at the start of the search and never updated after. Please note that I added new methods to ReplicationDomainDB, but several of them are just called by DomainDBCursor, MultiDomainDBCursor or ChangeNumberIndexer which are considered internal classes to the changelog DB. So maybe should we find a way to hide them from code client to the changelogDB. These changes meant I could remove the awful double way to use the CompositeDBCursor + I could also remove most cursor management from ChangeNumberIndexer. I think I might find a way in a subsequent commit to also get rid of ChangeNumberIndexer.replicasOffline. Alas the same changes are duplicated in JE + file based changelog. DomainDBCursor.java, MultiDomainDBCursor.java: ADDED ReplicationDomainDB.java: Added getCursorFrom(MultiDomainServerState startAfterState) and unregisterCursor(DBCursor) called by DomainDBCursor and MultiDomainDBCursor. FileChangelogDB.java, JEChangelogDB.java: Added registeredDomainCursors and registeredMultiDomainCursors fields. In getExistingOrNewDomainMap(), updated MultiDomainDBCursors when a new domain is created. In getCursorFrom(DN baseDN, int serverId, CSN), created the ReplicaOfflineCSN there from getCursorFrom(DN baseDN, ServerState). Added newDomainDBCursor(). Reworked newOfflineCSN(). Implemented new methods in ReplicationDomainDB. In getOrCreateReplicaDB(), updated DomainDBCursors when a new replica is created. Synchronized the two files to ease diffing them together. ChangeNumberIndexer.java: Removed the responsibility to manage cursors from this class. Removed allCursors, newCursors fields. In publishUpdateMsg(), initialize(), moveForwardMediumConsistencyPoint() and run() removed code that dealt with creating/opening/recreating/removing cursors. Removed resetNextChangeForInsertDBCursor(), ensureCursorExists(), removeCursors(), getCursor(), recycleExhaustedCursors(), createNewCursors(), getPrecedingCSN(). Made getPrecedingCSN() public static. Added logUnexpectedException(). CompositeDBCursor.java: Now abstract. Removed ctor. Removed recycleExhaustedCursors field. Added incorporateNewCursors, isCursorNoLongerNeededFor(), cursorRemoved() and addCursor() + used them in next(). In next(), extracted recycleExhaustedCursors + used newly added removeNoLongerNeededCursors(). In close(), completed code. ChangeNumberIndexerTest.java: Consequence of the changes to ChangeNumberIndexer. Renamed cursors field to replicaDBCursors. Added multiDomainCursor, domainDBCursors fields. Added eclEnabledDomains field to separate it from startCNIndexer(). Changed setup() and addReplica(). CompositeDBCursorTest.java: Consequence of the change to CompositeDBCursor. git-svn-id: https://svn.forgerock.org/opendj/trunk@10912 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10910 41b1ffd8-f28e-4786-ab96-9950f0a78031
15 Jul, 2014
1 commit
-
Thanks for review. git-svn-id: https://svn.forgerock.org/opendj/trunk@10908 41b1ffd8-f28e-4786-ab96-9950f0a78031
07 Jul, 2014
2 commits
-
Regression was introduced in r10655. ECLServerHandler.java: In buildDomainContexts(), fixed the code to match the code behaviour pre r10655. git-svn-id: https://svn.forgerock.org/opendj/trunk@10869 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
In r10840, the change to JE/FileChangelogDB.getCursorFrom(DN, ServerState) unnecessarily triggers a lot of calls to the underlying DB (JE or file based) to retrieve the ChangelogState. As an optimization, keeping an in-memory version of the ChangelogState in synch with the on-disk version will help. ChangelogState.java: Now thread safe. Added removeOfflineReplica(), isEqualTo(). Changed domainToServerIds from Map<DN, List<Integer>> to Map<DN, Set<Integer>>. In getOfflineReplicas(), now return a MultiDomainServerState. ChangeNumberIndexer.java: Consequence of the changes to ChangelogState. ReplicationDbEnv.java: Added changelogState field, updated at the same time as the on-disk changelogstate DB Added getChangelogState(), called by client code instead of readChangelogState(). Renamed readChangelogState() to private readOnDiskChangelogState(). Added stateLock field to sync updates to in-memory and on-disk changelog state. ReplicationEnvironment.java: Added changelogState field, updated at the same time as the on-disk changelogstate DB Added getChangelogState(), called by client code instead of readChangelogState(). Renamed readChangelogState() to private readOnDiskChangelogState(). Renamed domainLock field to domainsLock. replication.properties: Removed now unused error message. FileChangelogDB.java, JEChangelogDB.java: Consequence of the changes to ChangelogState and ReplicationEnvironment/ReplicationDbEnv. MultiDomainServerState.java, ServerState.java: Added getSnapshot() for unit tests. ReplicationEnvironmentTest.java, ReplicationDbEnvTest.java: Consequence of the changes to ReplicationEnvironment and ChangelogState. Used the fake server. git-svn-id: https://svn.forgerock.org/opendj/trunk@10868 41b1ffd8-f28e-4786-ab96-9950f0a78031
04 Jul, 2014
2 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10866 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10864 41b1ffd8-f28e-4786-ab96-9950f0a78031
03 Jul, 2014
3 commits
-
This changed managed to solve the combined DS/RS case. Mostly, because robot test is sometimes failing yet. This is fixed by introducing a DSRSShutdownSync class which ensures that when the DS sends a ReplicaOfflineMsg, the RS will relay it to the rest of the topology. Second main change is to ensure ReplicaOfflineMsgs do not update the domain's ServerState otherwise the functional tests detect an inconsistency in the backend ds-sync-state data between the 2 replica: the one that is stopped and the one that is never stopped. For this I added UpdateMsg.contributesToDomainState() and used it throughout. The rest of the change is passing the DSRSShutdownSync down method calls. DSRSShutdownSync.java: ADDED UpdateMsg.java, ReplicaOfflineMsg.java: Added contributesToDomainState() MultimasterReplication.java: Added dsrsShutdownSync field + created it here + passed it down creation of LDAPReplicationDomain and ReplicationServerListener. Code cleanup. LDAPReplicationDomain.java: Added dsrsShutdownSync field + used it in publishReplicaOfflineMsg(). ReplicationServerListener.java Added dsrsShutdownSync field + used it when creating ReplicationServer. Code cleanup. ReplicationServer.java: Added dsrsShutdownSync field + added getDSRSShutdownSync() getter. ServerHandler.java Called ReplicationServer.getDSRSShutdownSync() when creating ServerWriter. Code cleanup. ServerWriter.java: Added dsrsShutdownSync field + used it in run(). ECLServerWriter.java: Consequence of the change to ServerWriter. Code cleanup. RemotePendingChanges.java, ReplicationDomain.java, MessageHandler.java: Used UpdateMsg.contributesToDomainState(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10861 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Made use of constants and serverConstants where applicable. Fixed typos. Simplified tests. Fixed a couple of erroneous impossible condition tests. git-svn-id: https://svn.forgerock.org/opendj/trunk@10860 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
ReplicationServerDomain.java: In put(), renamed update parameter to updateMsg. Extracted methods getPreparedAssuredInfo(), getAssuredServers(), isDifferentGenerationId(), isUpdateMsgFiltered(). Dramatically simplified addUpdate(). ServerReader.java, ServerWriter.java: Extracted method isUpdateMsgFiltered(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10858 41b1ffd8-f28e-4786-ab96-9950f0a78031
02 Jul, 2014
2 commits
-
- hid ReplicationDomain internals - moved test code out of production code - removed duplicated test code ReplicationDomain.java: In ctor, delegate to other ctor. In startPublishService(), removed ReplicationDomainCfg parameter and get the config from field instead. Removed getConfig(), not used anymore. Moved publish(byte[]) to ReplicationDomainTest. LDAPReplicationDomain.java, AssuredReplicationServerTest.java, FakeStressReplicationDomain.java: Consequence of the change to ReplicationDomain.startPublishService(). FakeReplicationDomain.java: Expanded the code to support what FractionalReplicationTest.FakeReplicationDomain was doing. Consequence of the change to ReplicationDomain.startPublishService(). FractionalReplicationTest.java: Removed FakeReplicationDomain inner class, replaced by org.opends.server.replication.service.FakeReplicationDomain. Removed newConfig(), now unused. ReplicationDomainTest.java: Moved ReplicationDomain.publish(byte[]) here. Extracted method publishRepeatedly(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10855 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
CR-3920 Third and last step : all cursors related to ChangeNumberindexDB now behave like java.sql.ResultSet API. * FileChangeNumberIndexDBCursor, JEChangeNumberIndexDBCursor: now behave like ResultSet API * ECLServerHandler : adapt to changes of underlying cursor on ChangeNumberIndexDB * FileChangeNumberIndexDBTest, JEChangeNumberIndexDBTest: adapt to changes on cursor * ChangeNumberIndexDB : javadoc fix * ReplicationEnvironment : change default log file size to 10M git-svn-id: https://svn.forgerock.org/opendj/trunk@10854 41b1ffd8-f28e-4786-ab96-9950f0a78031
01 Jul, 2014
3 commits
-
MessageHandler.java: Extracted method fillLateQueue(). MsgQueue.java: Added toString(). PersistentServerState.java: Renamed field baseDn => baseDN. Made updateStateEntry() return a boolean instead of a ResultCode. Used Collections.singleton*() methods. Added toString(). JEReplicaDBCursor.java: In next(), factorized code. ExternalChangeLogTest.java: Inlined a few passthrough test methods. Renamed createControls() to createCookieControl(). In getControls(), removed an esoteric way to call Assert.fail(). Let the exception bubble up dammit! InternalSearchMonitorTestCase.java: Simplified code calling processSearch(). In getMonitorNames(), do not copy the monitor names. BrowserController.java: Reduce fields + methods visibilities. Added final keyword to fields. Removed unused methods removeSuffix(), showAttributeName(), removeBrowserEventListener(), notifyChildEntryChanged(), notifyChildEntryAdded(), notifyChildEntryDeleted(), startRefresh(), shutDown(), getAttrsForGreenSearch(), entryArrayFromCollection(), nodeArrayFromCollection(). Extracted methods getAciCount(), getNewIcon() and toInt(). Used early returns. IconPool.java: Removed unused method maskedIcon(). LDAPConnectionPool.java: Reduce fields + methods visibilities. Added final keyword to fields. Used static import for ConnectionUtils. Changed makeLDAPUrl() to accept a single InitialLdapContext parameter. Removed unused methods removeReferralAuthenticationListener(), flush(), getAuthDN(), getAuthPassword(), getRegisteredAuthentication(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10853 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10851 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
CR-3911 Second step : all cursors related to ReplicaDB now behave like java.sql.ResultSet API in both JE and file-based implementations * FileChangelogDB#getCursorFrom(DN, int, CSN) now returns a java.sql.ResultSet style cursor * JEChangelogDB#getCursorFrom(DN, int, CSN) now returns a java.sql.ResultSet style cursor * ChangeNumberIndex : advance cursor to first record to keep current behavior * Update Javadoc in several classes : DBCursor, ReplicationDomainDB, FileReplicaDB, JEReplicaDB, JEReplicaDBCursor, Log, LogFile * SequentialDBCursor (used in tests only) now behaves like java.sql.ResultSet API * ChangeNumberIndexerTest : adapt to changes of SequentialDBCursor * CompositeDBCursorTest : add more tests * ReplicaOfflineCursorTest : adapt to changes of SequentialDBCursor git-svn-id: https://svn.forgerock.org/opendj/trunk@10849 41b1ffd8-f28e-4786-ab96-9950f0a78031
30 Jun, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10843 41b1ffd8-f28e-4786-ab96-9950f0a78031