org.gvsig.raster.reproject.app.preparelayer
Class ReprojectionQueue

java.lang.Object
  extended by java.lang.Thread
      extended by org.gvsig.raster.reproject.app.preparelayer.ReprojectionQueue
All Implemented Interfaces:
java.lang.Runnable

public class ReprojectionQueue
extends java.lang.Thread

Cola de procesos de ejecución exclusiva. Los procesos de esta lista se irán ejecutando por orden de llegada impidiendo que se ejecuten dos al mismo tiempo. 16/05/2008

Author:
Nacho Brodin nachobrodin@gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ReprojectionQueue()
           
 
Method Summary
 void add(org.gvsig.raster.algorithm.process.DataProcess process, org.gvsig.raster.algorithm.process.IProcessActions obj)
          Añade un proceso a la cola.
static ReprojectionQueue getSingleton()
          Devuelve una instancia al unico objeto de UniqueProcessQueue que puede existir.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReprojectionQueue

public ReprojectionQueue()
Method Detail

add

public void add(org.gvsig.raster.algorithm.process.DataProcess process,
                org.gvsig.raster.algorithm.process.IProcessActions obj)
Añade un proceso a la cola.

Parameters:
id - Identificador del proceso
process - Proceso
Throws:
java.lang.InterruptedException

getSingleton

public static ReprojectionQueue getSingleton()
Devuelve una instancia al unico objeto de UniqueProcessQueue que puede existir.

Returns:

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright © 2013-2014 gvSIG Association. All Rights Reserved.