public class FileOverwriterOutputWriter extends AbstractOutputWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
FileOverwriterOutputWriter.IoUtils |
| Modifier and Type | Field and Description |
|---|---|
protected File |
file |
static String |
SETTING_FILE_NAME |
static String |
SETTING_FILE_NAME_DEFAULT_VALUE |
protected File |
temporaryFile |
protected Writer |
temporaryFileWriter |
| Constructor and Description |
|---|
FileOverwriterOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected Writer |
getTemporaryFileWriter() |
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
postConstruct(Map<String,String> settings) |
protected void |
releaseTemporaryWriter() |
void |
write(String metricName,
Object value) |
preCollect, preDestroypublic static final String SETTING_FILE_NAME
public static final String SETTING_FILE_NAME_DEFAULT_VALUE
protected Writer temporaryFileWriter
protected File temporaryFile
protected File file
public void postConstruct(Map<String,String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterprotected Writer getTemporaryFileWriter() throws IOException
IOExceptionpublic void write(String metricName, Object value) throws IOException
write in interface OutputWriterwrite in class AbstractOutputWriterIOExceptionprotected void releaseTemporaryWriter()
public void postCollect()
throws IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterpostCollect in class AbstractOutputWriterIOExceptionCopyright © 2013. All Rights Reserved.