stella.sql
Class TargetConsistency.UpdateThread

java.lang.Object
  extended by java.lang.Thread
      extended by stella.sql.TargetConsistency.UpdateThread
All Implemented Interfaces:
Runnable
Enclosing class:
TargetConsistency

private static final class TargetConsistency.UpdateThread
extends Thread

A thread that updates the targt database with simbad-resolved stars. No auto-starting


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  List<String> names
          The list worked on.
private  Map<String,StarDescription> resort
          The fallback-solution for unresolved stars, might be null.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private TargetConsistency.UpdateThread(List<String> stars, Map<String,StarDescription> f)
          Copies the simbad list into a new reference.
 
Method Summary
 void run()
          For each star found in the list we query the simbad services and enter it into the database if resolvable.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

names

private List<String> names
The list worked on.


resort

private Map<String,StarDescription> resort
The fallback-solution for unresolved stars, might be null.

Constructor Detail

TargetConsistency.UpdateThread

private TargetConsistency.UpdateThread(List<String> stars,
                                       Map<String,StarDescription> f)
Copies the simbad list into a new reference.

Method Detail

run

public void run()
For each star found in the list we query the simbad services and enter it into the database if resolvable.

Specified by:
run in interface Runnable
Overrides:
run in class Thread