Commit Graph
6948 Commits
Author SHA1 Message Date
Adrian Crum b499717344 Updated Web Tools Thread List screen to reflect changes in the Job Scheduler.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374625 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:06:44 +00:00
Adrian Crum aaf10dce39 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374619 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 17:48:55 +00:00
Adrian Crum e130531db9 Moved JobInvoker.java code to AbstractJob.java, removed JobInvoker.java. Also worked on the Job API - the meaning of "runtime" was a little muddled, so I made "runtime" mean job execution elapsed time, and added a getStartTime method to the Job interface. This should make the distinction clearer.
This commit completes the Job Scheduler overhaul.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374618 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 17:43:03 +00:00
Adrian Crum 6d132e8bd7 A small bug fix in JobManager.java - re-initialize a reused variable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374603 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 16:05:01 +00:00
Adrian Crum 2e4cb54075 Refactored JobPoller.java - the JobPoller instance is now a singleton.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374596 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 15:21:14 +00:00
Adrian Crum 7dc28a9f5d Small change to GenericServiceJob - restore job state in the deQueue method so client code can keep trying to submit the job.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374588 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 14:28:13 +00:00
Hans Bakker 655c38dd6e adapt ant create component target for new security organization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374160 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 06:45:07 +00:00
Erwan de Ferrieres da60e4d9f4 Updating to latest nekohtml release 1.9.16
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1373435 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 14:44:31 +00:00
Adrian Crum 25c04f28af Partially reverting rev 1372738. As Scott pointed out on the dev mailing list, the conditions requiring a cast are rare - rendering those optimizations ineffective.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1373239 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 07:08:57 +00:00
Sascha Rodekamp 1e0411fb47 Cleanup javascript jquery folder and update jquery references for the elrte editor
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372757 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 07:52:59 +00:00
Sascha Rodekamp 5b8548563a Update jQuery to Version 1.8 and jQuery UI to Version 1.8.22
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372751 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 07:21:15 +00:00
Adrian Crum afd4e8b3c0 Small GenericEntity optimization - remove instanceof checks in getXxx methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372738 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 06:02:58 +00:00
Adrian Crum 85d2a421a0 Updated ofbiz-properties.xsd.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372510 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:58:31 +00:00
Adrian Crum f90c42db0f Add the deQueue method to AbstractJob to solve a workflow build problem. Patch from Leon - https://issues.apache.org/jira/browse/OFBIZ-5007.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372501 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:41:32 +00:00
Adrian Crum 6fd584e207 Added Job Manager/Job Poller documentation to the service-config.xsd file. Hopefully this will help everyone understand the Job Scheduler behavior and what the settings do.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372088 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 13:17:17 +00:00
Adrian Crum b3ea46d9a5 Changed JobPoller shutdown behavior - stop threads immediately and dequeue queued jobs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371863 13f79535-47bb-0310-9956-ffa450edef68
2012-08-11 03:39:03 +00:00
Adrian Crum a0e18a8d73 Removed unnecessary entity condition that I added earlier.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371862 13f79535-47bb-0310-9956-ffa450edef68
2012-08-11 03:36:58 +00:00
Adrian Crum 5e05a4df42 JobManager and PersistedServiceJob improvements - based on feedback from Scott.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371593 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 07:50:37 +00:00
Adrian Crum d8f2291c51 Oops, I forgot to wrap the purge find operation in a transaction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371163 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 11:11:00 +00:00
Adrian Crum 7d7a4017d6 JobManager improvement: Have the JobManager handle purging old jobs - instead of the purgeOldJobs service. Old jobs will be purged when the job queue is idle.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371140 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 10:15:59 +00:00
Adrian Crum 8d6aaecc85 JobManager bug fix - ensure consistent return value in poll method. Also some log message cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371119 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 09:26:40 +00:00
Adrian Crum 0375909e6b Fixed the Job Scheduler so jobs are not lost during heavy server load.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370566 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 22:10:27 +00:00
Adrian Crum 3627d8bbc8 More work on the Job Scheduler:
1. Gave the job queue a fixed size so the job poller can't create an out-of-memory condition.
2. Changed min/max thread settings to more conservative values.
3. Changed JobSandbox polling code to accept a limit argument to control the number of records retrieved. Also used ELI to limit memory use.
4. Improved JobManager reloadCrashedJobs method to recover queued jobs that were being missed previously.

At this stage the Job Scheduler has been fixed to not crash/saturate the server, but it can still lose jobs. That will be fixed in the next commit.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370437 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 19:11:06 +00:00
Adrian Crum aea294945e Added a warning comment to ResourceLoader.java. DOM object trees should not be kept in memory because they are big. Keep in mind the entire XML document is in the DOM tree - including comments, license headers, etc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370162 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:47:41 +00:00
Adrian Crum 2b3cf6c431 Eliminated/moved some classes in the Job Scheduler.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370157 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:02:03 +00:00
Sascha Rodekamp 6ffa178bca js issue causes error when invalid dates are entered (https://issues.apache.org/jira/browse/OFBIZ-4982). A patch from Christoph Neuroth: Reproduce: Enter "123" in a DateField. This will trigger a JS exception and the invalid value will be sent to the server on form submission, probably causing server-side exceptions in badly written backend code, resulting in really bad error messages for the user.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370123 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 05:51:10 +00:00
Jacques Le Roux 9b00fd0dce renderLookupField macro comments improvement
Simple formatting (tabs to 2 spaces)
Fixes a bug which prevented to show an i18n "clear" text when layered lookups were used in read only mode from FTL templates
Fixes a bug which prevented to clear the description (at right of button) when layered lookups were used in read only mode 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369561 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:48:44 +00:00
Jacques Le Roux e23033e569 Tiny ajaxAutoCompleter comment improvement
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369560 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:44:17 +00:00
Jacques Le Roux 5d358537a3 No functional change: simple formatting (tabs to 2 spaces)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369559 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:43:34 +00:00
Jacques Le Roux 9fd4ddb462 Closes "correct "javascript:void();" to "javascript:void(0);" to make it syntax valid" reported by Leon https://issues.apache.org/jira/browse/OFBIZ-4970
Firefox will throw syntax error if you call javascript void function without parameter.

jleroux: I did not reproduce with FF14 on XP (modern browsers correct by themselves) but I agree it's a better syntax. So I changed all where it was needed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369555 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:27:20 +00:00
Adrian Crum b3fc79770b Moved method used exclusively by PersistedServiceJob from JobManager to PersistedServiceJob. Also added some JavaDocs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369543 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 09:43:59 +00:00
Adrian Crum 4de5aaf712 Refactored PersistedServiceJob.java so that it contains the GenericValue it represents. This improves throughput because the original code retrieved the JobSandbox entity value about 10 times for each job, and with this change the JobSandbox entity value is retrieved twice per job.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369536 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 08:01:29 +00:00
Adrian Crum a324ef7bb3 Some JavaDocs to help explain the Job behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369491 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 22:17:02 +00:00
Adrian Crum 5779419ca3 Fixed a costly call to UtilValidate:
UtilValidate.isEmpty(Object) calls ObjectType.isEmpty(Object) - which performs a series of instanceof checks. Calling UtilValidate.isEmpty(String) avoids the expensive instanceof checks.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369486 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 22:07:18 +00:00
Adrian Crum 55f2c7de7e Fixed a bug in GenericServiceJob where the failed method would get called twice.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369485 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 22:06:24 +00:00
Adrian Crum 541679a972 Removed unnecessary Date object creation from GenericAsyncEngine.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369469 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 21:25:21 +00:00
Adrian Crum 6fdee332f5 Refactored Job implementations so they implement a state machine. This approach makes the code much simpler.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369467 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 21:24:27 +00:00
Erwan de Ferrieres c40c76c80c using for each in testtools
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369430 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 20:34:25 +00:00
Erwan de Ferrieres 51c8310aae Fix javadoc for PersistedServiceJob.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369409 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:54:05 +00:00
Erwan de Ferrieres 342c56d85c correcting javadoc for DynamicViewEntity.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369406 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:47:26 +00:00
Erwan de Ferrieres aa4a3b0730 Missed this one at rev 1369357
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369404 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:45:44 +00:00
Erwan de Ferrieres 7901b55e95 Fixing the javadoc for ServiceDispatcher.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369401 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:41:50 +00:00
Erwan de Ferrieres 1c15d2ab3e correcting an error with my search and replace at rev 1369357
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369360 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:23:21 +00:00
Erwan de Ferrieres a41366e95f as suggested by Adrian, replacing @see by @Override in commit 1367751
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369357 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:15:36 +00:00
Adrian Crum 58aaab37cc A bunch of fixes for JobManager and JobPoller:
1. Fixed some concurrency issues during object construction.
2. Cleaned up some feature-envy code.
3. Added code for orderly startup and shutdown.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369298 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 12:00:07 +00:00
Adrian Crum f89887fe40 JobManager.java and JobPoller.java code formatting - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369291 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 08:57:19 +00:00
Erwan de Ferrieres 6f363f4480 updating javadoc for Container#init
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1367751 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 20:25:26 +00:00
Erwan de Ferrieres ebad9a93df missing ending } in javadoc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1367750 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 20:24:42 +00:00
Jacopo Cappellato e8a43a2101 Upgrade of embedded Tomcat from 7.0.28 to 7.0.29
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1367029 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 08:30:14 +00:00
Jacques Le Roux 3c90c4204b While working on OFBIZ-4978, I changed for getDependentDropdownValues.js to load values unselected instead of loading them all selected one by one, then only the last being selected. This was actually a bug and I already wondered why the list had the last option selected by default instead of the 1st. This fixes this last aspect.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1366660 13f79535-47bb-0310-9956-ffa450edef68
2012-07-28 12:46:22 +00:00