mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
15.33.2007 8633e780ffe89c5cf5453d40b9b65fd3fd1ef17f
refs
author matthew_swift <matthew_swift@localhost>
Saturday, September 15, 2007 22:33 +0200
committer matthew_swift <matthew_swift@localhost>
Saturday, September 15, 2007 22:33 +0200
commit8633e780ffe89c5cf5453d40b9b65fd3fd1ef17f
tree 693880ed49fa186cce0bd5f482308eb3e90ee55b tree | zip | gz
parent 5b971d4365f91f23d08458b299edac93efe56122 view | diff
Performance improvements to server-side admin framework.

The strongly typed server-side APIs now retrieve and cache their property values during construction so that subsequent calls to property getters no longer have to repeatedly access the underlying ServerManagedObject. This avoids having to repeatedly perform hash-table look-ups in the ServerManagedObject and, in the case of single-valued properties, temporary construction of iterators.

I have also modified the ServerManagedObject#getPropertyValues() method to return an UnmodifiableSortedSet rather than a defensive copy and updated the javadoc in the generated server-side getters to reflect that the returned set is unmodifiable.
3 files modified
127 ■■■■ changed files
opendj-sdk/opends/resource/admin/metaMO.xsl 81 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/resource/admin/property-types.xsl 34 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/server/ServerManagedObject.java 12 ●●●● diff | view | raw | blame | history