public class Engine extends Object
| Modifier and Type | Field and Description |
|---|---|
ContentCache |
contentCache |
static String |
ENCODING |
HashCache |
hashCache |
Repository |
repository |
AtomicLong |
requestedBytes
of compressed content
|
| Constructor and Description |
|---|
Engine(Repository repository) |
Engine(Repository repository,
int maxComputeThreads,
int hashSize,
int contentSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
computedBytes() |
void |
free() |
long |
getLastModified(String path) |
int |
load()
number of threads that could compute a unique path
|
long |
removedBytes() |
String |
request(String path)
Convenience method for testing
|
int |
request(String path,
javax.servlet.http.HttpServletResponse response,
boolean gzip)
Output is prepared in-memory before the response is written because
a) that's the common case where output is cached.
|
long |
requestedBytes() |
public static final String ENCODING
public final Repository repository
public final HashCache hashCache
public final ContentCache contentCache
public AtomicLong requestedBytes
public Engine(Repository repository)
public Engine(Repository repository, int maxComputeThreads, int hashSize, int contentSize)
public int load()
public long requestedBytes()
public long computedBytes()
public long removedBytes()
public int request(String path, javax.servlet.http.HttpServletResponse response, boolean gzip) throws IOException
IOExceptionpublic String request(String path) throws IOException
IOExceptionpublic long getLastModified(String path) throws net.oneandone.sushi.fs.GetLastModifiedException
net.oneandone.sushi.fs.GetLastModifiedExceptionpublic void free()
Copyright © 2004–2017 1&1. All rights reserved.