Class WARCWriterPool
java.lang.Object
org.archive.io.WriterPool
org.archive.io.warc.WARCWriterPool
A pool of WARCWriters.
- Version:
- $Revision: 4566 $ $Date: 2006-08-31 09:51:41 -0700 (Thu, 31 Aug 2006) $
- Author:
- stack, gojomo
-
Field Summary
Fields inherited from class org.archive.io.WriterPool
availableWriters, currentActive, DEFAULT_MAX_ACTIVE, DEFAULT_MAX_WAIT_FOR_IDLE, LARGEST_MAX_ACTIVE, lastWriterNeededTime, lastWriterRolloverTime, maxActive, maxWait, serialNo, settings -
Constructor Summary
ConstructorsConstructorDescriptionWARCWriterPool(AtomicInteger serial, WARCWriterPoolSettings settings, int poolMaximumActive, int poolMaximumWait) ConstructorWARCWriterPool(WARCWriterPoolSettings settings, int poolMaximumActive, int poolMaximumWait) Constructor -
Method Summary
Methods inherited from class org.archive.io.WriterPool
borrowFile, close, destroyWriter, drainAllWriters, flush, getNumActive, getNumIdle, getPoolState, getSerialNo, getSettings, invalidateFile, jsonStatus, makeNewWriterIfAppropriate, returnFile
-
Constructor Details
-
WARCWriterPool
Constructor- Parameters:
settings- Settings for this pool.poolMaximumActive-poolMaximumWait-
-
WARCWriterPool
public WARCWriterPool(AtomicInteger serial, WARCWriterPoolSettings settings, int poolMaximumActive, int poolMaximumWait) Constructor- Parameters:
serial- Used to generate unique filename sequencessettings- Settings for this pool.poolMaximumActive-poolMaximumWait-
-
-
Method Details
-
makeWriter
- Specified by:
makeWriterin classWriterPool- Returns:
- new WriterPoolMember of appropriate type
-