Changeset 3809
- Timestamp:
- Oct 8, 2007, 12:17:44 PM (16 years ago)
- Location:
- branches/2.4-stable/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4-stable/src/clients/jobagent/net/sf/basedb/clients/jobagent/JobRunner.java
r3675 r3809 26 26 import java.util.Arrays; 27 27 28 import net.sf.basedb.core.Application; 28 29 import net.sf.basedb.core.DbControl; 29 30 import net.sf.basedb.core.ItemModifiedException; … … 119 120 } 120 121 122 // To protect the session control from timeouts 123 Application.Pinger pinger = Application.newPinger(sc); 121 124 try 122 125 { … … 131 134 dc.commit(); 132 135 throw t; 136 } 137 finally 138 { 139 if (pinger != null) pinger.stop(); 133 140 } 134 141 -
branches/2.4-stable/src/clients/jobagent/net/sf/basedb/clients/jobagent/executors/DummyJobExecutor.java
r3675 r3809 81 81 public void init(Agent agent) 82 82 { 83 wait = Values.getInt(agent.getProperty("agent.executor. wait"), -1);83 wait = Values.getInt(agent.getProperty("agent.executor.dummy.wait"), -1); 84 84 } 85 85 -
branches/2.4-stable/src/clients/jobagent/net/sf/basedb/clients/jobagent/executors/ThreadJobExecutor.java
r3675 r3809 147 147 SessionControl sc = null; 148 148 SessionControl impersonated = null; 149 Application.Pinger pinger = null; 149 150 try 150 151 { … … 169 170 170 171 Thread.currentThread().setPriority(threadPriority); 172 pinger = Application.newPinger(sc); 171 173 executor.executeJob(impersonated, null, job, settings, null); 172 174 } … … 178 180 finally 179 181 { 182 if (pinger != null) pinger.stop(); 180 183 if (dc != null) dc.close(); 181 184 if (impersonated != null && impersonated.isLoggedIn()) impersonated.logout(); -
branches/2.4-stable/src/core/net/sf/basedb/core/Application.java
r3808 r3809 459 459 460 460 if (useInternalJobQueue == null) useInternalJobQueue = Config.getBoolean("jobqueue.internal.enabled"); 461 log.info("jobqueue.internal.enabled = " + useInternalJobQueue); 461 462 if (useInternalJobQueue) 462 463 {
Note: See TracChangeset
for help on using the changeset viewer.