edu.iastate.metnet.ui
Class BlockunitWorker

java.lang.Object
  extended by EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
      extended by edu.iastate.metnet.utils.SwingWorker2
          extended by edu.iastate.metnet.ui.BlockunitWorker
All Implemented Interfaces:
java.lang.Runnable

public class BlockunitWorker
extends SwingWorker2

blockunit find thread

Author:
Jie Li

Nested Class Summary
 
Nested classes/interfaces inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser.DefaultThreadFactory
 
Field Summary
(package private)  java.util.Collection blockIdList
          blockid list to be found
(package private)  java.util.Vector blockunitSink
          blockunit sink
 
Fields inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
threadFactory_
 
Constructor Summary
BlockunitWorker(java.util.Collection blockIdList, java.util.Vector sink)
          default constructor
 
Method Summary
protected  java.lang.Object construct()
          call remote finder
protected  void finished()
          save the result to main sink
 
Methods inherited from class edu.iastate.metnet.utils.SwingWorker2
get, getException, getTimeout, interrupt, isReady, run, start, timedGet
 
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
getThreadFactory, setThreadFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockunitSink

java.util.Vector blockunitSink
blockunit sink


blockIdList

java.util.Collection blockIdList
blockid list to be found

Constructor Detail

BlockunitWorker

public BlockunitWorker(java.util.Collection blockIdList,
                       java.util.Vector sink)
default constructor

Parameters:
blockIdList - blockid list
sink - the result sink
Method Detail

construct

protected java.lang.Object construct()
                              throws java.lang.InterruptedException
call remote finder

Specified by:
construct in class SwingWorker2
Throws:
java.lang.InterruptedException

finished

protected void finished()
save the result to main sink

Overrides:
finished in class SwingWorker2