public class ARCCacheDirectory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LIVE_WAYBACK_TEMPLATE
template string used to configure the ARC writer pool
|
Constructor and Description |
---|
ARCCacheDirectory() |
Modifier and Type | Method and Description |
---|---|
String |
getArcDir() |
String |
getArcPrefix() |
long |
getMaxARCSize() |
int |
getMaxPoolWait() |
int |
getPoolWriters() |
Resource |
getResource(String path,
long offset)
transform an ARCLocation into a Resource.
|
org.archive.io.arc.ARCWriter |
getWriter()
get an ARCWriter. be sure to return it to the pool with returnWriter.
|
void |
init() |
void |
returnWriter(org.archive.io.arc.ARCWriter w) |
void |
setArcDir(String arcPath) |
void |
setArcPrefix(String arcPrefix) |
void |
setMaxARCSize(long maxARCSize) |
void |
setMaxPoolWait(int maxPoolWait) |
void |
setPoolWriters(int poolWriters) |
void |
shutdown()
shut down the ARC Writer pool.
|
public static String LIVE_WAYBACK_TEMPLATE
public void init() throws IOException
IOException
- for usual reasonspublic void shutdown()
public org.archive.io.arc.ARCWriter getWriter() throws IOException
IOException
- for usual reasonspublic void returnWriter(org.archive.io.arc.ARCWriter w) throws IOException
w
- previously borrowed ARCWriterIOException
- for usual reasonspublic Resource getResource(String path, long offset) throws IOException
path
- to ARC fileoffset
- within file where record beginsIOException
- for usual reasonspublic String getArcPrefix()
public void setArcPrefix(String arcPrefix)
arcPrefix
- the arcPrefix to setpublic String getArcDir()
public void setArcDir(String arcPath)
arcPath
- the arcPath to setpublic int getPoolWriters()
public void setPoolWriters(int poolWriters)
poolWriters
- the poolWriters to setpublic int getMaxPoolWait()
public void setMaxPoolWait(int maxPoolWait)
maxPoolWait
- the maxPoolWait to setpublic long getMaxARCSize()
public void setMaxARCSize(long maxARCSize)
maxARCSize
- the maxARCSize to setCopyright © 2005–2015 IIPC. All rights reserved.