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

matthew_swift
15.33.2007 e780d578b481d057ba61fc76e310ab492ed2293a
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
commite780d578b481d057ba61fc76e310ab492ed2293a
tree b13f83e0fcb4584059a4693cf08f0f684c609dbd tree | zip | gz
parent 18493539aa963a6879694cdc940148756a0234ad 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
opends/resource/admin/metaMO.xsl 81 ●●●●● diff | view | raw | blame | history
opends/resource/admin/property-types.xsl 34 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/server/ServerManagedObject.java 12 ●●●● diff | view | raw | blame | history