Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 1a033fa8f7 Deprecate Facility.squareFootage the right way.
The right associated script is
update FACILITY set facility_size=square_footage;
update FACILITY set facility_size_uom_id='AREA_ft2';




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929912 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 10:41:14 +00:00
Hans Bakker b2eec1b8a0 Add ebayStoreCategory list (Categories from ebayStore seller ) in 'exportProduct to ebay' screen, The seller can export products from ofbiz to ebay category and to their ebay store on ebay site.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929906 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 10:13:01 +00:00
Hans Bakker 45eaddfad7 renamed 'message' field name because reserved word in ebaystore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929897 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 09:51:41 +00:00
Adam Heath 94604a3923 Last commit fixed the compile error, and allowed the test cases to pass.
However, there are no tests against the webtools webapp, and this change
finishes the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929849 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 05:42:11 +00:00
Adam Heath 6094c94ba2 Fix for buildbot failure, due to committing untested rebased code;
mea-culpa.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929847 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 05:21:21 +00:00
Adam Heath a147d7863e Add a new method, erase(), which just clears out the stored entries,
without clearing any counters.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929846 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:52:39 +00:00
Adam Heath 1bc6324970 Remove SoftReferences automatically in the background. This is the
final step in removing all polling code patterns from UtilCache.
Because of this, all helper methods that were used to clear elements
programmatically are now officially deprecated.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929845 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:51:14 +00:00
Adam Heath b6948771f4 Helper class to poll a ReferenceQueue with a background thread.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929844 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:50:21 +00:00
Adam Heath e4ce6146c7 Backround removal of items due to ttl expiration.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929843 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:49:37 +00:00
Adam Heath 3e4236b4fc Switch memoryTable to ConcurrentMap, which means it's no longer a
FastMap.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929842 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:49:00 +00:00
Adam Heath c50099a5ac No longer store CacheLine into the disk store, just store the value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929841 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:48:30 +00:00
Adam Heath 6d5aa9b168 Remove CacheLine.getSizeInBytes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929840 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:47:58 +00:00
Adam Heath 5abf555503 New changeMemSize tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929839 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:47:25 +00:00
Adam Heath ccbc1646ca Inline CacheLineTable into UtilCache. This removes the CacheLineTable
class completely.  The getCacheLine() method now throws
UnsupportedOperationException.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929838 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:46:53 +00:00
Adam Heath f530c596ed Add a feature to request CacheLine metadata as a simple list of maps.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929837 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:46:14 +00:00
Adam Heath eb7c6dfaeb Fetching of cache.file.store now also uses getPropertyParam.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929836 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:45:29 +00:00
Adam Heath 8278eb9ecf Refactored getPropertyParam, so it is responsible for logging exception
warnings.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929835 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:44:57 +00:00
Adam Heath ddce0bdf97 The non-serial methods now call the local serial variants, to help with
code coverage.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929833 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:44:26 +00:00
Adam Heath 492e748758 Remove helper method, incrementCounter, and just call incrementAndGet on
all the atomics.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929832 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:43:12 +00:00
Adam Heath 66c1064c08 Simplify logic in getNextDefaultIndex, so that it's possible to get full
coverage on all it's lines.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929831 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:42:21 +00:00
Adam Heath 7b81a38648 Slight tweak to getOrCreateUtilCache, to get better code coverage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929830 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:41:49 +00:00
Adam Heath b182e5c92b Refactor createCacheLine slightly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929829 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:40:39 +00:00
Adam Heath 4d82b9565e Move the creation of the cache line instances to an internal helper
method.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929828 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:40:07 +00:00
Adam Heath e6a5ab99bf Remove CacheLine constructor variants that don't take a loadTime.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929827 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:39:35 +00:00
Adam Heath b0182c1157 setExpireTime wasn't storing new lines back to disk when the expire time
changed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929826 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:38:55 +00:00
Adam Heath 3daeedc596 Support multiple different file store locations; not finished, as it
still only fetches a single global value from the properties file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929825 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:38:23 +00:00
Adam Heath e6acc7109a Refactored setUseSoftReference, to call a new method
CacheLine.changeLine.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929824 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:37:50 +00:00
Adam Heath 7f1a64ba00 Inline getNoCheck method, which was only used in one place.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929823 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:37:10 +00:00
Adam Heath 478fd27742 Don't call get() when removing, so that an lru access is not recorded.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929822 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:36:35 +00:00
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 b48cd3eba3 Updated for jdbm-1.0-SNAPSHOT.jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929810 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:29:30 +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 95650636ff Better name for relation between FacilitySizeUomId.facilitySizeUomId and Uom.uomId, suggested by Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929646 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 18:08:02 +00:00
Adam Heath 60d70c155f Apply patch from OFBIZ-3630, adding hamcrest jar to .classpath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929640 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 17:52:26 +00:00
Scott Gray 9396333b48 Consolidated two <if> blocks that were doing the same thing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929609 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 16:22:23 +00:00
Jacques Le Roux 45593dad74 Completes r929503: adds a relation between facility and uom for facilitySizeUomId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929593 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 15:45:07 +00:00