|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openpipeline.pipeline.stage.Stage
org.openpipeline.pipeline.stage.DiskWriter
public class DiskWriter
Writes items to disk in XML format. Each item is written to a file. The filename is the itemId with ".xml" appended.
| Constructor Summary | |
|---|---|
DiskWriter()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the stage and releases any resources. |
void |
flush()
If this stage accumulates items or sends them down a channel, this method flushes them. |
String |
getConfigPage()
Get the name of the .jsp page in the admin webapp that configures this stage. |
String |
getDescription()
Returns a brief description of what this class does, for use in the admin app. |
String |
getDisplayName()
Return the name of the Stage to display in the Admin UI, for example, "My Stage" |
void |
initialize()
Perform any necessary initialization. |
void |
processItem(Item item)
Perform some operation on an item. |
| Methods inherited from class org.openpipeline.pipeline.stage.Stage |
|---|
addChildStage, childStagesAccepted, getChildStages, getNextStage, loadParamsFromXML, saveParamsToXML, setNextStage, setParams |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiskWriter()
| Method Detail |
|---|
public void processItem(Item item)
throws PipelineException
Stage
processItem in class Stageitem - the item to process
PipelineException - a recoverable exception caused by this stage.
Unrecoverable errors should be thrown as unchecked exceptionspublic void initialize()
Stage
initialize in class Stagepublic void flush()
Stage
flush in class Stagepublic void close()
Stage
close in class Stagepublic String getDescription()
Stage
getDescription in class Stagepublic String getDisplayName()
Stage
getDisplayName in class Stagepublic String getConfigPage()
Stage
getConfigPage in class Stage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||