|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.liveweb.ARCCacheDirectory
public class ARCCacheDirectory
Class uses an ARCWriterPool to provide access to a set of ARCWriters, exposing getting and setters which simplify Spring configuration. This class also provides one method, getResource() which transforms a String path and an long offset into a Resource.
| Field Summary | |
|---|---|
static String |
LIVE_WAYBACK_TEMPLATE
template string used to configure the ARC writer pool |
| Constructor Summary | |
|---|---|
ARCCacheDirectory()
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String LIVE_WAYBACK_TEMPLATE
| Constructor Detail |
|---|
public ARCCacheDirectory()
| Method Detail |
|---|
public void init()
throws IOException
IOException - for usual reasonspublic void shutdown()
public org.archive.io.arc.ARCWriter getWriter()
throws IOException
IOException - for usual reasons
public void returnWriter(org.archive.io.arc.ARCWriter w)
throws IOException
w - previously borrowed ARCWriter
IOException - for usual reasons
public Resource getResource(String path,
long offset)
throws IOException
path - to ARC fileoffset - within file where record begins
IOException - 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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||