hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Min Zhou <coderp...@gmail.com>
Subject Re: Why jobtracker.jsp can safely call a non-thread-safe method of JT?
Date Wed, 16 Feb 2011 08:47:45 GMT
Anyone can help me with this?

Thanks,
Min

On Tue, Feb 15, 2011 at 11:16 AM, Min Zhou <coderplay@gmail.com> wrote:
> Hi all,
>
> Hadoop JobTracker's http info server provides running/failed/completed
> job informations on the web through jobtracker.jsp.  Lines below show
> the logic how the web retries those informations from JobTracker.
>
>  JobTracker tracker = (JobTracker) application.getAttribute("job.tracker");
>  ...
>  Vector<JobInProgress> runningJobs = tracker.runningJobs();
>  Vector<JobInProgress> completedJobs = tracker.completedJobs();
>  Vector<JobInProgress> failedJobs = tracker.failedJobs();
>
> Those three methods above are apparently non-thread-safe ones.  I am
> confused,  why the web can safely call a non-thread-safe method of JT?
>
> Thanks,
> Min
> --
> My research interests are distributed systems, parallel computing and
> bytecode based virtual machine.
>
> My profile:
> http://www.linkedin.com/in/coderplay
> My blog:
> http://coderplay.javaeye.com
>



-- 
My research interests are distributed systems, parallel computing and
bytecode based virtual machine.

My profile:
http://www.linkedin.com/in/coderplay
My blog:
http://coderplay.javaeye.com

Mime
View raw message