gov.bnl.star.offline.scheduler.util
Class ThreadSafeFilesystemToolkit

java.lang.Object
  extended by java.lang.Thread
      extended by gov.bnl.star.offline.scheduler.util.ThreadSafeFilesystemToolkit
All Implemented Interfaces:
java.lang.Runnable

public class ThreadSafeFilesystemToolkit
extends java.lang.Thread

The class is used to call function that many not retrun and hang SUMS

Author:
lbhajdu

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 boolean done
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThreadSafeFilesystemToolkit()
          Creates a new instance of ThreadSafe
 
Method Summary
 void checkIfDirExists(java.net.URL dir, boolean hostAllowed)
          This function should not be called it is used only used international by this class, and must be public.
 void checkIfFileExists(java.net.URL file, boolean hostAllowed)
          This function should not be called it is used only used international by this class, and must be public.
 boolean getOutput()
           
 boolean isDone()
           
 void run()
          This function should not be called it is used only used international by this class, and must be public.
 boolean threadSafeCheckIfDirExists(java.net.URL dir, boolean hostAllowed)
           
 boolean threadSafeCheckIfFileExists(java.net.URL file, boolean hostAllowed)
           
 
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
 

Field Detail

done

public boolean done
Constructor Detail

ThreadSafeFilesystemToolkit

public ThreadSafeFilesystemToolkit()
Creates a new instance of ThreadSafe

Method Detail

isDone

public boolean isDone()

run

public void run()
This function should not be called it is used only used international by this class, and must be public.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getOutput

public boolean getOutput()

checkIfFileExists

public void checkIfFileExists(java.net.URL file,
                              boolean hostAllowed)
This function should not be called it is used only used international by this class, and must be public.


checkIfDirExists

public void checkIfDirExists(java.net.URL dir,
                             boolean hostAllowed)
This function should not be called it is used only used international by this class, and must be public.


threadSafeCheckIfFileExists

public boolean threadSafeCheckIfFileExists(java.net.URL file,
                                           boolean hostAllowed)

threadSafeCheckIfDirExists

public boolean threadSafeCheckIfDirExists(java.net.URL dir,
                                          boolean hostAllowed)


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.