public class SplitWriter extends DataWriter
Modifier and Type | Class and Description |
---|---|
static interface |
SplitWriter.IStrategy |
static class |
SplitWriter.Strategy |
DataEndpoint.State
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_QUEUE_SIZE |
protected static Record |
EOF |
static Logger |
log |
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEY
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZE
id, name, TIMESTAMP_FORMAT
Constructor and Description |
---|
SplitWriter() |
SplitWriter(SplitWriter.IStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Indicates that this endpoint has finished reading or writing.
|
DataReader |
createReader() |
int |
getQueueSize()
Retrieves the buffer size for downstream readers of this splitter (default is 100 records).
|
SplitWriter.IStrategy |
getStrategy() |
List<SplitReader> |
getTargets() |
void |
open()
Makes this endpoint ready for reading or writing.
|
void |
removeClosedTargets() |
SplitWriter |
setQueueSize(int queueSize)
Sets the buffer size for downstream readers of this splitter (default is 100 records).
|
protected void |
writeImpl(Record record)
Overridden by subclasses to write the specified record to this
DataWriter . |
addExceptionProperties, available, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter, write
decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toString
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescription
public static final Logger log
public static final int DEFAULT_QUEUE_SIZE
protected static final Record EOF
public SplitWriter(SplitWriter.IStrategy strategy)
public SplitWriter()
public SplitWriter.IStrategy getStrategy()
public List<SplitReader> getTargets()
public int getQueueSize()
public SplitWriter setQueueSize(int queueSize)
public DataReader createReader()
protected void writeImpl(Record record) throws Throwable
DataWriter
DataWriter
.writeImpl
in class DataWriter
Throwable
public void open() throws DataException
DataEndpoint
open
in class DataEndpoint
DataException
public void close() throws DataException
DataEndpoint
close
in class DataEndpoint
DataException
public void removeClosedTargets()
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.