28 Feb, 2014
6 commits
-
Factorized duplicated code from org.forgerock.opendj.ldap.schema into SchemaUtils.java git-svn-id: https://svn.forgerock.org/opendj/trunk@10449 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Preparation work for removing org.opends.server.api.MatchingRule.normalizeAssertionValue(). Updated copyright for r10447. Assertion.java: In matches(), renamed attributeValue parameter to normalizedAttributeValue. MatchingRuleImpl.java: In getAssertion(), renamed value parameter to assertionValue. Fixed javadocs. AbstractApproximateMatchingRuleImpl.java, AbstractEqualityMatchingRuleImpl.java: ADDED Made the relevant approximate and equality matching rule classes subclass these new ones. AbstractMatchingRuleImpl.java: In getAssertion(), returned UNDEFINED_ASSERTION. Extracted method trimConsecutiveSpaces() here from several places in the code. WordEqualityMatchingRuleImpl.java: REMOVED Implementation was the same as KeywordEqualityMatchingRuleImpl so reused that class instead + updated CoreSchemaImpl. KeywordEqualityMatchingRuleImpl.java: Extracted method isAcceptable(). Removed useless calls to String.intern() on String literals. IntegerFirstComponentEqualityMatchingRuleImpl.java: In getAssertion(), used DefaultEqualityAssertion instead of custom built Assertion. EnumSyntaxTestCase.java: Made the code more readable. *.java: Simplified code by using ConditionResult.valueOf(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10448 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Preparation work for removing org.opends.server.api.MatchingRule.normalizeAssertionValue(). Assertion.java: In matches(), renamed attributeValue parameter to normalizedAttributeValue. MatchingRuleImpl.java: In getAssertion(), renamed value parameter to assertionValue. Fixed javadocs. AbstractApproximateMatchingRuleImpl.java, AbstractEqualityMatchingRuleImpl.java: ADDED Made the relevant approximate and equality matching rule classes subclass these new ones. AbstractMatchingRuleImpl.java: In getAssertion(), returned UNDEFINED_ASSERTION. Extracted method trimConsecutiveSpaces() here from several places in the code. WordEqualityMatchingRuleImpl.java: REMOVED Implementation was the same as KeywordEqualityMatchingRuleImpl so reused that class instead + updated CoreSchemaImpl. KeywordEqualityMatchingRuleImpl.java: Extracted method isAcceptable(). Removed useless calls to String.intern() on String literals. IntegerFirstComponentEqualityMatchingRuleImpl.java: In getAssertion(), used DefaultEqualityAssertion instead of custom built Assertion. EnumSyntaxTestCase.java: Made the code more readable. *.java: Simplified code by using ConditionResult.valueOf(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10447 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…erver() to match @BeforeClass git-svn-id: https://svn.forgerock.org/opendj/trunk@10446 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
add '/' to make the path absolute, to ensure manifest is found when using opendj-config as a jar dependency git-svn-id: https://svn.forgerock.org/opendj/trunk@10445 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Fix build break: use older JDK6 socket option APIs. git-svn-id: https://svn.forgerock.org/opendj/trunk@10444 41b1ffd8-f28e-4786-ab96-9950f0a78031
27 Feb, 2014
4 commits
-
* throw a connect error when a connection attempt times out instead of a timeout error, as it seems more appropriate. git-svn-id: https://svn.forgerock.org/opendj/trunk@10441 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
* improve Javadoc for TimeoutEventListener.handleTimeout() git-svn-id: https://svn.forgerock.org/opendj/trunk@10440 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
* added support for setting connect timeout in LDAPOptions * added support for other common socket options: TCP nodelay, keepalive, linger, and reuseaddr git-svn-id: https://svn.forgerock.org/opendj/trunk@10439 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- Added CONFLICTING_ARGS to ReturnCode. - Added canWrite() to Utils + unit tests. - Replaced calls to org.opends.quicksetup.util.Utils.canWrite by com.forgerock.opendj.cli.Utils.canWrite. - Removed the TablePrinter classes from org.opends.server.util.table as they are now in the opendj-cli. - Minor code cleanup on DSConfig package. (reorganize imports). git-svn-id: https://svn.forgerock.org/opendj/trunk@10435 41b1ffd8-f28e-4786-ab96-9950f0a78031
26 Feb, 2014
1 commit
-
SDK DN class Purpose is to ease migration to OpenDJ 3 server by minimizing code that breaks. git-svn-id: https://svn.forgerock.org/opendj/trunk@10434 41b1ffd8-f28e-4786-ab96-9950f0a78031
25 Feb, 2014
1 commit
-
SDK Entry class Purpose is to ease migration to OpenDJ 3 server by minimizing code that breaks. git-svn-id: https://svn.forgerock.org/opendj/trunk@10430 41b1ffd8-f28e-4786-ab96-9950f0a78031
24 Feb, 2014
4 commits
-
- Replaced harcoded "\n" by ServerConstants.EOL. git-svn-id: https://svn.forgerock.org/opendj/trunk@10425 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Minor Javadoc improvements: document default values for deleteOldRDN and newSuperior for modify DN operations. git-svn-id: https://svn.forgerock.org/opendj/trunk@10424 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…arget server is powered off and restarted * HeartBeatConnectionFactory: check for heartbeat timeouts when there is a bind/startTLS in progress. Use the pending bind/startTLS as a proxy for the heartbeat request * CachedConnectionPool: flush all pending connection futures if an attempt to establish a new pooled connection fails. Improve statistics in toString() representation to make problems easier to diagnose during debugging * AbstractLoadBalancingAlgorithm: minor change - notify event listeners after closing the monitoring connection so that statistics are more accurate. Reviewed by Jean-Noel. git-svn-id: https://svn.forgerock.org/opendj/trunk@10423 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- Replaced some argument names by their long identifier.toLowerCase() (in CommonArguments ). - Replaced "trustAll" -> CommonArguments.getTrustAll() - Replaced "showUsage"/"help" -> CommonArguments.getShowUsage() - Renamed sslBlindTrust by trustAll in LDAPPasswordModify.java - Added OPTION_LONG_RESTART to ArgumentConstants. - Replaced "restart" string in StopDS.java by OPTION_LONG_RESTART. - Replaced argument declaration by CommonArguments.getRestart(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10422 41b1ffd8-f28e-4786-ab96-9950f0a78031
21 Feb, 2014
3 commits
-
- Fixed build in SetupCli. Added message + replaced importLDIF to getLDIFFile. git-svn-id: https://svn.forgerock.org/opendj/trunk@10420 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- added javadoc for arguments which share the same short ID. (TBC...) - added argument constants. git-svn-id: https://svn.forgerock.org/opendj/trunk@10418 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- added javadoc for arguments which share the same short ID. (TBC...) - removed from ArgumentConstants 'description' / 'memberName' (unused). - Added to ArgumentConstants the OPTION_SHORT_CONTROL && OPTION_LONG_CONTROL. git-svn-id: https://svn.forgerock.org/opendj/trunk@10416 41b1ffd8-f28e-4786-ab96-9950f0a78031
20 Feb, 2014
3 commits
-
- Added messages. - Added common arguments. - Added constants. git-svn-id: https://svn.forgerock.org/opendj/trunk@10414 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
ReplicationDomain.java: Renamed inner class IEContext to ImportExportContext. Renamed fields ieContext to importExportContext. Renamed isRemoteDSConnected() to getConnectedRemoteDS(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10410 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
ReplicationDomain.java: Renamed inner class IEContext to ImportExportContext. Renamed fields ieContext to importExportContext. Renamed isRemoteDSConnected() to getConnectedRemoteDS(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10409 41b1ffd8-f28e-4786-ab96-9950f0a78031
19 Feb, 2014
3 commits
-
Improved design for Replication Topology ReplicationBroker.java + *Test.java: Extracted the Topology class to encapsulate the dsList and replicationServerInfos fields + atomically set it via an AtomicReference + moved setLocallyConfiguredFlag(), isSameReplicationServerUrl(), computeConnectedDSs() to Topology class. Created methods computeNewTopology() and topologyChange() to compute and set the new topology. Removed generationID instance variable duplicated with the one from ReplicationDomain + updated ctor and setGenerationID(). Improved debugging messages. Renamed getDsList() to getReplicaInfos() + changed return type from List<DSInfo> to Map<Integer, DSInfo>. Renamed getRsList() to getRsInfos(). Extracted method toRSInfos(). ReplicationBrokerTest.java: ADDED Added to test new ReplicationBroker.Topology class. DSInfo.java: Changed equals(Set<String>, Set<String>) to equals(Object, Object). In toString(), hid the assured fields if assured replication is off. RSInfo.java: Renamed fields id and serverUrl to rsServerId and rsServerURL. In toString(), relied on the compiler to generate the String. TopologyMsg.java: Renamed fields dsList and rsList to replicaInfos and rsInfos. Renamed getDsList() to getReplicaInfos() + changed return type from List<DSInfo> to Map<Integer, DSInfo>. Renamed getRsList() to getRsInfos(). Extracted methods readStrings() and writeStrings(). Code cleanup Used javadocs ReplicationDomain.java, replication*.properties: Extracted class ECLIncludes to replace eclIncludesLock, eclIncludesByServer, eclIncludesAllServers, eclIncludesForDeletesByServer, eclIncludesForDeletesAllServers + moved setEclIncludes() implementation to this class + removed synchronized blocks from all the getters. Added baseDN to ERR_INIT_NO_SUCCESS_START_FROM_SERVERS. Inlined initializeRemote(). Removed unused initializeFromRemote(). Reduced methods visibility. Renamed getReplicaList() to getReplicaInfos() + changed return type from List<DSInfo> to Map<Integer, DSInfo>. Renamed getRsList() to getRsInfos(). In initializeRemote(), waitForRemoteEndOfInit(), isRemoteDSConnected() and getProtocolVersion(), simplified code. *.java: Consequence of the changes above. Simplified code in a number of places, particularly in the tests. git-svn-id: https://svn.forgerock.org/opendj/trunk@10405 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- Added messages. - Added common arguments. - Added constants. - Unit test : removed TODO. git-svn-id: https://svn.forgerock.org/opendj/trunk@10404 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10402 41b1ffd8-f28e-4786-ab96-9950f0a78031
18 Feb, 2014
6 commits
-
opendj-server3x-adapter: Updated after changes on opendj3-server-dev branch: switched to ResultCode and DereferenceAliasesPolicy SDK types. git-svn-id: https://svn.forgerock.org/opendj/trunk@10400 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- Added methods to ConsoleApplication which are going to be used by the server. - Added APPLICATION_ERROR to ReturnCode. - Added methods to Utils (used by opendj3) git-svn-id: https://svn.forgerock.org/opendj/trunk@10397 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10393 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10392 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
ResultCode.java, ResultCodeTestCase.java, core.properties: Added UNDEFINED value. Transformed ELEMENTS array field into a Map + adapted the code. git-svn-id: https://svn.forgerock.org/opendj/trunk@10391 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
opendj-server3x-adapter: Updated after changes on opendj3-server-dev branch: switched to ModificationType and SearchScope SDK types. git-svn-id: https://svn.forgerock.org/opendj/trunk@10390 41b1ffd8-f28e-4786-ab96-9950f0a78031
17 Feb, 2014
1 commit
-
Added asEnum() + added an actual inner enum called Enum to match all the cases. In valueOf(int), fixed a bug for ResultCode + implemented it the same as ResultCode for the other classes. ModificationTypeTestCase.java, ResultCodeTestCase.java: ADDED SearchScopeTestCase.java: Added more tests. DataProviderIterator.java: ADDED Eases developing TestNG's DataProviders. git-svn-id: https://svn.forgerock.org/opendj/trunk@10386 41b1ffd8-f28e-4786-ab96-9950f0a78031
14 Feb, 2014
8 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10382 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- added return codes. git-svn-id: https://svn.forgerock.org/opendj/trunk@10380 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Made checkstyle happy + fixed the tests failing when run with Maven. git-svn-id: https://svn.forgerock.org/opendj/trunk@10378 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Ignored test-output directory. git-svn-id: https://svn.forgerock.org/opendj/trunk@10376 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
ConditionResultTestCase.java: ADDED ConditionResult.java: Fixed a bug with or(ConditionResult...). git-svn-id: https://svn.forgerock.org/opendj/trunk@10375 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…ed modifications on previous test cases. Thanks to JN. git-svn-id: https://svn.forgerock.org/opendj/trunk@10369 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10368 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- added TabSeparatedTablePrinter.java - added return codes used by tools in opendj3. - added new messages needed by DSConfig. git-svn-id: https://svn.forgerock.org/opendj/trunk@10367 41b1ffd8-f28e-4786-ab96-9950f0a78031