core.background
Class CheckDirsExist

java.lang.Object
  extended by javax.swing.SwingWorker<java.util.ArrayList<java.io.File>,java.lang.Void>
      extended by core.background.CheckDirsExist
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.util.ArrayList<java.io.File>>, java.util.concurrent.RunnableFuture<java.util.ArrayList<java.io.File>>

public class CheckDirsExist
extends javax.swing.SwingWorker<java.util.ArrayList<java.io.File>,java.lang.Void>


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Constructor Summary
CheckDirsExist(java.util.ArrayList<java.io.File> dirsToCheck)
          The CheckFileToMonitorTask class is a simple SwingWorker class that is used to determine whether or not a directory is a valid directory to monitor.
 
Method Summary
 java.util.ArrayList<java.io.File> doInBackground()
           
 void done()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckDirsExist

public CheckDirsExist(java.util.ArrayList<java.io.File> dirsToCheck)
The CheckFileToMonitorTask class is a simple SwingWorker class that is used to determine whether or not a directory is a valid directory to monitor. It is useful when for instance a computer is booting up and iTunesDSM is set to start with Windows. The directory to monitor may not yet be available and so this class provides a time out system for determining whether or not the directory is indeed a directory.

Parameters:
dirsToCheck - The directories to determine whether or not the directories exist. The thread will grant up to 15 seconds to determine if the directories are in fact directories.
Method Detail

doInBackground

public java.util.ArrayList<java.io.File> doInBackground()
Specified by:
doInBackground in class javax.swing.SwingWorker<java.util.ArrayList<java.io.File>,java.lang.Void>

done

public void done()
Overrides:
done in class javax.swing.SwingWorker<java.util.ArrayList<java.io.File>,java.lang.Void>

main

public static void main(java.lang.String[] args)