Commit Graph
4529 Commits
Author SHA1 Message Date
Adam Heath ca93e370fc In setLru, if memoryTable is a ConcurrentLinkedHashMap, then just call
setCapacity on it, which will cause the oldest entries to be removed
when the size is lowered.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929821 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:36:03 +00:00
Adam Heath e5b8e12d8a No longer use LRUMap, but a non-blocking variant,
ConcurrentLinkedHashMap.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929820 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:35:31 +00:00
Adam Heath 204dc4e8f7 Create the memoryTable during the constructor, instead of calling
setLru.  This removes a null check in the latter method.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929819 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:34:49 +00:00
Adam Heath a5c9f50d5a In setLru, it's not nescessary to check memoryTable against null.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929818 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:34:17 +00:00
Adam Heath 59cc3972ec Refactored null handling, so that isNullSet and nullValue are no longer
required.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929817 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:33:45 +00:00
Adam Heath bff9d9e655 Don't prefix jdbmMgr access with CacheLineTable classname.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929816 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:33:13 +00:00
Adam Heath d02a6bc2ff When removing a key, and calling fileTable.remove, be certain to call
jdbmMgr.commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929815 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:32:40 +00:00
Adam Heath b7acc2eb21 getMaxSize didn't actually do anything useful, and overlapped with
getMaxInMemory.  Deprecate getMaxSize(it continues to call setLru
underneath everything), and provide a new getSizeLimit method.  This
latter method still does nothing, but at least it no longer overlaps.

Also remove the maxSize parameter in webtools FindUtilCache page,
instead displaying and altering the maxInMemory setting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929813 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:31:37 +00:00
Adam Heath a092e05bf7 values() shouldn't call get(), as it records a hit count.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929812 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:30:38 +00:00
Adam Heath cad4022b33 Make use of the new generics support in jdbm.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929811 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:30:02 +00:00
Adam Heath 548da39c81 Upgrade jdbm to a snapshop from svn, version 38; this new version
finally supports generics markup.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929809 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:26:40 +00:00
Adam Heath 657da93f8c Import jdbm classes instead of referencing them directly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929808 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:25:52 +00:00
Adam Heath 796c464be5 utilCacheTable is a ConcurrentHashMap, which means the values can be
iterated directly, instead of making a copy.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929807 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:25:15 +00:00
Adam Heath 778e079437 Remove default values from cache.properties. Since the default setting
in the file was to set soft reference to false, if some code explicitly
called create, requesting soft reference, it would be overridden by the
setting in the file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929806 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:24:28 +00:00
Adam Heath 9bb060774d Fix parsing of maxSize parameter, should be an integer.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929805 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:23:30 +00:00
Adrian Crum 274cafd577 Removed obsolete template boundary comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929730 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 21:57:06 +00:00
Jacques Le Roux 0b8d1d026a A patch from Atul Vani "typo mistakes in tempExprMacros.ftl" https://issues.apache.org/jira/browse/OFBIZ-3629 - OFBIZ-3629
Fix 2 C/P in tempExprMacros.ftl. Like in HourOfDayRange's dropdown field the selected value is set to 31 which it can't hold so it is restored to 0 when the page renders
path to regenerate affected page "webtools>Configuration>Temporal Expression>Create" 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929582 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 15:12:42 +00:00
Erwan de Ferrieres 68c6130cf1 Fixing a NPE introduced at rev.929173
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929576 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 15:09:59 +00:00
Jacques Le Roux 3dd53a86f1 A patch from Ankit Jain related to 'Allow to open a layer lookup from a layer lookup' https://issues.apache.org/jira/browse/OFBIZ-3446 - OFBIZ-3446
It fixes an issue found in Find survey

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929508 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 12:45:19 +00:00
Erwan de Ferrieres e185d50179 Correcting a NPE introduced at rev 929157 when using sub-hyperlink
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929449 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 09:54:55 +00:00
Adam Heath eb3cfad398 Refactor testBasicDisk and testSimple.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929399 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:11:04 +00:00
Adam Heath 3e2eaaa4f4 Fetching null key from disk when it doesn't already exist in memory was
broken, because the key wasn't protected with ObjectType.NULL.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929398 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:10:14 +00:00
Adam Heath 08b3441578 Add tests for the file store feature.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929396 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:09:14 +00:00
Adam Heath 08a7366497 Don't attempt to reload an existing cache from disk.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929395 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:08:35 +00:00
Adam Heath 94f3f520b9 Prefix the fileStore path with ofbiz.home.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929393 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:07:48 +00:00
Adam Heath 8f74e23e50 Start UtilCache tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929392 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:05:05 +00:00
Adam Heath 1a802df86a Helper method to force an OutOfMemory error to occur.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929391 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:04:13 +00:00
Adam Heath b09015e841 Add getMaxInMemory method to expose the internal variable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929390 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:03:41 +00:00
Adam Heath 2189889f33 Change return type of getMaxSize to int, to match the internal variable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929389 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 06:02:59 +00:00
Adam Heath 906e234286 Use accessor methods consistently.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929388 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 05:55:37 +00:00
Adam Heath 7af0756b2f Fix needless use of ().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929387 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 05:55:03 +00:00
Adam Heath fcd1be6419 Add testing for ComparableRange.compareTo(not done).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929386 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 05:54:28 +00:00
Adam Heath 88849d4ed9 Turn off heavy axis debug logging.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929385 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 05:53:49 +00:00
Adam Heath c5ea13344b Rename SourceMonitor to SourceMonitored, and remove all the settings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929384 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 05:52:58 +00:00
Scott Gray af7ea98d9c Removed a few extra spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929281 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 20:59:21 +00:00
Adrian Crum af0ca8e141 A patch from Blas Rodriguez Somoza: XHTML validation errors (framework/widget) - (https://issues.apache.org/jira/browse/OFBIZ-3623).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929173 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 15:35:28 +00:00
Erwan de Ferrieres ddc80e3cb6 Adding title for images in hyperlink field or in a field displaying an image. Use the description if exists otherwise takes the title.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929157 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 14:45:45 +00:00
Jacopo Cappellato 505608a5b5 Updated groovy script broken after recent changes for multi tenant support.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929148 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 14:10:23 +00:00
Bilgin Ismet Ibryam cebc361953 If there is no map center and zoom level provided for google map, get these values from all the markers on the map. If there are no markers, use 0 for latitude and longitude.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928804 13f79535-47bb-0310-9956-ffa450edef68
2010-03-29 15:16:55 +00:00
Bilgin Ismet Ibryam de0b52bfe6 Removed hardcoded width and height pixels from google map template, which now allows setting them also in percentages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928733 13f79535-47bb-0310-9956-ffa450edef68
2010-03-29 11:51:49 +00:00
Jacques Le Roux 40924b4fc9 Fix a bug reported by Qin Sheng on user ML. This wrong C/P was introduced by r585750
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928470 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 18:32:32 +00:00
Adrian Crum 7d4a943c2a Revert 928451.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928460 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 17:46:45 +00:00
Adrian Crum 0b9abb6a8b Simplified label html renderer macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928451 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 16:48:22 +00:00
Jacques Le Roux cfe8ef9dec Oops, wrong commit at r928304. I thought I was in the lookup block, moreover I put one quote too many :/. To be revisited...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928307 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 23:59:24 +00:00
Jacques Le Roux a323ba2de6 A little improvement for sight impaired users
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928304 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 23:28:18 +00:00
Jacques Le Roux 5a64b4b0da In order to fix issues after issues, I commit this patch from Sascha Rodekamp that fixes "Allow to open a layer lookup from a layer lookup" (https://issues.apache.org/jira/browse/OFBIZ-3446) - OFBIZ-3446
This patch does not fix an issue with calendar in layered lookups. So I will create a new Jira for that.
Also it introduces a small drawback: you can't no longer close a layered lookup with the right left cross button. But Esc. is still working, so it's not a blocker. I will have a look at this and if needed will create a new Jira 







git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928292 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:56:24 +00:00
Scott Gray 63aadfd6be Removed a couple of redundant null assignments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928275 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:00:32 +00:00
Scott Gray 42f78553dc Removed a couple of unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928274 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:00:29 +00:00
Scott Gray b9605ffbf0 Removed a few redundant null checks.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928273 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:00:27 +00:00
Scott Gray 0ea00e303d Move a couple of null checks higher to where they can actually be reached
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928272 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:00:24 +00:00