|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.filePiper.model.BasicPipeLineEnvironment
public class BasicPipeLineEnvironment
| Constructor Summary | |
|---|---|
BasicPipeLineEnvironment(Pipeline processPipeline)
|
|
| Method Summary | |
|---|---|
void |
abortProcessing()
Tell this environment that the current file processing should be aborted. |
boolean |
canOverwriteFile(File newFil)
Always overwrite by default. |
void |
dumpStatus()
|
void |
fileSkipped(File dest)
Notify the environment of the currently processed output file is not written to avoid overriding an existing file. |
void |
finished(Exception e)
Notify the environment that the pipe-line processing is finished. |
OutputStream |
getConsoleStream()
Get an output stream to write to the console. |
File |
getCurrentInputFile()
|
File |
getCurrentOutputFile()
|
File |
getCurrentScannedDirectory()
|
Exception |
getException()
|
int |
getInputFileCount()
|
int |
getOutputFileCount()
|
int |
getSkippedFileCount()
|
boolean |
isAborted()
|
boolean |
isErrored()
|
boolean |
isOutputToConsole()
|
boolean |
isRunning()
|
void |
outputtingToFile(File newDest)
Notify the environment of the currently processed output file. |
void |
processInputFile(File newSrc)
Notify the environment of the currently processed input file. |
void |
scanningDirectory(File dir)
Notify the environment that the pipeline is scanning directory to find file to process. |
boolean |
shouldContinue()
Check if the processing should continue. |
void |
startProcessing()
Notify the environment that the pipe-line processing has started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicPipeLineEnvironment(Pipeline processPipeline)
| Method Detail |
|---|
public void dumpStatus()
public void abortProcessing()
PipelineEnvironmentshouldContinue() must return false.
abortProcessing in interface PipelineEnvironmentpublic boolean isRunning()
isRunning in interface PipelineEnvironmentpublic boolean isAborted()
isAborted in interface PipelineEnvironmentpublic boolean isErrored()
isErrored in interface PipelineEnvironmentpublic int getInputFileCount()
public int getOutputFileCount()
public int getSkippedFileCount()
public boolean isOutputToConsole()
public Exception getException()
public void startProcessing()
PipelineEnvironment
startProcessing in interface PipelineEnvironmentpublic void scanningDirectory(File dir)
PipelineEnvironment
scanningDirectory in interface PipelineEnvironmentpublic void processInputFile(File newSrc)
PipelineEnvironment
processInputFile in interface PipelineEnvironmentpublic void outputtingToFile(File newDest)
PipelineEnvironment
outputtingToFile in interface PipelineEnvironmentpublic File getCurrentScannedDirectory()
public File getCurrentInputFile()
public File getCurrentOutputFile()
public void finished(Exception e)
PipelineEnvironment
finished in interface PipelineEnvironmente - if not null, it means that the processing was stopped by this exception.public boolean shouldContinue()
PipelineEnvironment
shouldContinue in interface PipelineEnvironmentpublic boolean canOverwriteFile(File newFil)
canOverwriteFile in interface PipelineEnvironmentnewFil - the existing file that is about to be overwritten.
public void fileSkipped(File dest)
PipelineEnvironment
fileSkipped in interface PipelineEnvironmentpublic OutputStream getConsoleStream()
PipelineEnvironment
getConsoleStream in interface PipelineEnvironment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||