Class StreetsideExportWriterThread
- java.lang.Object
-
- java.lang.Thread
-
- org.openstreetmap.josm.plugins.streetside.io.export.StreetsideExportWriterThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class StreetsideExportWriterThread extends java.lang.Thread
Writes the images from the queue in the file system.- See Also:
StreetsideExportManager
-
-
Field Summary
Fields Modifier and Type Field Description private intamount(package private) static org.apache.log4j.Loggerloggerprivate ProgressMonitormonitorprivate java.lang.Stringpathprivate java.util.concurrent.ArrayBlockingQueue<java.awt.image.BufferedImage>queueprivate java.util.concurrent.ArrayBlockingQueue<StreetsideAbstractImage>queueImages
-
Constructor Summary
Constructors Constructor Description StreetsideExportWriterThread(java.lang.String path, java.util.concurrent.ArrayBlockingQueue<java.awt.image.BufferedImage> queue, java.util.concurrent.ArrayBlockingQueue<StreetsideAbstractImage> queueImages, int amount, ProgressMonitor monitor)Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
logger
static final org.apache.log4j.Logger logger
-
path
private final java.lang.String path
-
queue
private final java.util.concurrent.ArrayBlockingQueue<java.awt.image.BufferedImage> queue
-
queueImages
private final java.util.concurrent.ArrayBlockingQueue<StreetsideAbstractImage> queueImages
-
amount
private final int amount
-
monitor
private final ProgressMonitor monitor
-
-
Constructor Detail
-
StreetsideExportWriterThread
public StreetsideExportWriterThread(java.lang.String path, java.util.concurrent.ArrayBlockingQueue<java.awt.image.BufferedImage> queue, java.util.concurrent.ArrayBlockingQueue<StreetsideAbstractImage> queueImages, int amount, ProgressMonitor monitor)
Main constructor.- Parameters:
path- Path to write the pictures.queue- Queue ofStreetsideAbstractImageobjects.queueImages- Queue ofBufferedImageobjects.amount- Amount of images that are going to be exported.monitor- Progress monitor.
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-