|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread gov.bnl.star.offline.scheduler.util.Task gov.bnl.star.offline.scheduler.util.CommandLineTask gov.bnl.star.offline.scheduler.util.ResolveFilesystemWildcards
public class ResolveFilesystemWildcards
Resolves a wildcard for filenames by executing ls on the local machine. It is actually csh that resolves the wildcard, so what is actually being executed is:
csh -c "ls -1 wildcard"
where wildcard is the string passed through the constructor. To retrieve the
result use getResult
.
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 gov.bnl.star.offline.scheduler.util.Task |
---|
exitStatus |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ResolveFilesystemWildcards(java.lang.String wildcard)
Creates a new task to resolve wildcards. |
Method Summary | |
---|---|
java.lang.String[] |
getResult()
Returns all the files matched by the wildcard |
static void |
main(java.lang.String[] args)
|
Methods inherited from class gov.bnl.star.offline.scheduler.util.CommandLineTask |
---|
destroy, getOutput, getOutputReader, run |
Methods inherited from class gov.bnl.star.offline.scheduler.util.Task |
---|
execute, getExitStatus |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, 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 |
---|
public ResolveFilesystemWildcards(java.lang.String wildcard)
wildcard
- the wildcard to be resolved: ex. /home/user/pippo/*a/test.*Method Detail |
---|
public java.lang.String[] getResult()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |