diff options
| author | abranson <andrew.branson@cern.ch> | 2011-08-04 16:08:49 +0200 |
|---|---|---|
| committer | abranson <andrew.branson@cern.ch> | 2011-08-04 16:08:49 +0200 |
| commit | 379ed8a0e133bee650e0acb24f6b743f657a50d0 (patch) | |
| tree | bdcac37cabe3f2f3d40715519b830469dc9e63ad /source/com/c2kernel/lifecycle/instance/JobPusher.java | |
| parent | 0ec8481c10cd8277d84c7c1a785483a0a739e5a0 (diff) | |
Last bit of cleanup honest
New castor and dependent commons libs
Diffstat (limited to 'source/com/c2kernel/lifecycle/instance/JobPusher.java')
| -rw-r--r-- | source/com/c2kernel/lifecycle/instance/JobPusher.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/com/c2kernel/lifecycle/instance/JobPusher.java b/source/com/c2kernel/lifecycle/instance/JobPusher.java index c6e5d26..5b8be63 100644 --- a/source/com/c2kernel/lifecycle/instance/JobPusher.java +++ b/source/com/c2kernel/lifecycle/instance/JobPusher.java @@ -26,18 +26,18 @@ final class JobPusher extends Thread { public void run()
{
Thread.currentThread().setName("Agent job pusher for "+activity.getName()+" to role "+myRole);
- for (Enumeration<?> e = myRole.getChildren(); e.hasMoreElements();)
+ for (Enumeration<AgentPath> e = myRole.getChildren(); e.hasMoreElements();)
{
- AgentPath nextAgent = (AgentPath)e.nextElement();
+ AgentPath nextAgent = e.nextElement();
Logger.msg(7, "Activity.pushJobsToAgents() - Calculating jobs for " + nextAgent.getAgentName());
try
{
// get joblist for user
JobArrayList jobList = new JobArrayList(this.activity.calculateJobs(nextAgent, false));
// only transmit start, complete and resume jobs
- for (Iterator<?> element = jobList.list.iterator(); element.hasNext();)
+ for (Iterator<Job> element = jobList.list.iterator(); element.hasNext();)
{
- Job thisJob = (Job) element.next();
+ Job thisJob = element.next();
if (thisJob.getPossibleTransition() != Transitions.START
&& thisJob.getPossibleTransition() != Transitions.COMPLETE
&& thisJob.getPossibleTransition() != Transitions.RESUME
|
