| java.lang.Object de.anomic.plasma.plasmaHTCache
plasmaHTCache | final public class plasmaHTCache (Code) | | |
Inner Class :final public static class Entry | |
Method Summary | |
public static void | cacheScan() | public static void | close() | public static int | dbSize() | public static boolean | deleteURLfromCache(yacyURL url) | public static char | docType(yacyURL url) | public static char | docType(String mime) | public static boolean | empty() | public static boolean | full() | public static File | getCachePath(yacyURL url) | public static long | getFreeSize() | public static String | getHash(File f) | public static long | getResourceContentLength(yacyURL url) | public static InputStream | getResourceContentStream(yacyURL url) Returns the content of a cached resource as
InputStream Parameters: url - the requested resource the resource content as InputStream. | public static ResourceInfoFactory | getResourceInfoFactory() | public static yacyURL | getURL(File f) | public static void | init(File htCachePath, long CacheSizeMax, long preloadTime, String layout, boolean migration) | public static boolean | isPicture(String mimeType) | public static boolean | isText(String mimeType) | public static IResourceInfo | loadResourceInfo(yacyURL url) | public static Entry | newEntry(Date initDate, int depth, yacyURL url, String name, String responseStatus, IResourceInfo docInfo, String initiator, plasmaCrawlProfile.entry profile) | public static boolean | noIndexingURL(yacyURL url) | public static Entry | pop() | public static void | push(Entry entry) | public static void | setCacheSize(long newCacheSize) | public static int | size() | public static void | writeFileAnnouncement(File file) | public static boolean | writeResourceContent(yacyURL url, byte[] array) |
AP_ANCHOR | final public static int AP_ANCHOR(Code) | | |
AP_AUTHOR | final public static int AP_AUTHOR(Code) | | |
AP_BOLD | final public static int AP_BOLD(Code) | | |
AP_DOM | final public static int AP_DOM(Code) | | |
AP_ENV | final public static int AP_ENV(Code) | | |
AP_H1 | final public static int AP_H1(Code) | | |
AP_H2 | final public static int AP_H2(Code) | | |
AP_H3 | final public static int AP_H3(Code) | | |
AP_H4 | final public static int AP_H4(Code) | | |
AP_H5 | final public static int AP_H5(Code) | | |
AP_H6 | final public static int AP_H6(Code) | | |
AP_IMG | final public static int AP_IMG(Code) | | |
AP_INVISIBLE | final public static int AP_INVISIBLE(Code) | | |
AP_ITALICS | final public static int AP_ITALICS(Code) | | |
AP_OPUS | final public static int AP_OPUS(Code) | | |
AP_PATH | final public static int AP_PATH(Code) | | |
AP_TAG | final public static int AP_TAG(Code) | | |
AP_TEXT | final public static int AP_TEXT(Code) | | |
AP_TITLE | final public static int AP_TITLE(Code) | | |
AP_TRACK | final public static int AP_TRACK(Code) | | |
AP_WEAK | final public static int AP_WEAK(Code) | | |
DT_AUDIO | final public static char DT_AUDIO(Code) | | |
DT_BINARY | final public static char DT_BINARY(Code) | | |
DT_DOC | final public static char DT_DOC(Code) | | |
DT_FLASH | final public static char DT_FLASH(Code) | | |
DT_HTML | final public static char DT_HTML(Code) | | |
DT_IMAGE | final public static char DT_IMAGE(Code) | | |
DT_MOVIE | final public static char DT_MOVIE(Code) | | |
DT_PDFPS | final public static char DT_PDFPS(Code) | | |
DT_SHARE | final public static char DT_SHARE(Code) | | |
DT_TEXT | final public static char DT_TEXT(Code) | | |
DT_UNKNOWN | final public static char DT_UNKNOWN(Code) | | |
LT_GLOBAL | final public static char LT_GLOBAL(Code) | | |
LT_LOCAL | final public static char LT_LOCAL(Code) | | |
UA_LOCAL | final public static int UA_LOCAL(Code) | | |
UA_REDIRECT | final public static int UA_REDIRECT(Code) | | |
UA_TILDE | final public static int UA_TILDE(Code) | | |
cacheMigration | public static boolean cacheMigration(Code) | | |
curCacheSize | public static long curCacheSize(Code) | | |
maxCacheSize | public static long maxCacheSize(Code) | | |
oneday | final public static long oneday(Code) | | |
cacheScan | public static void cacheScan()(Code) | | |
close | public static void close()(Code) | | |
dbSize | public static int dbSize()(Code) | | |
deleteURLfromCache | public static boolean deleteURLfromCache(yacyURL url)(Code) | | |
empty | public static boolean empty()(Code) | | |
full | public static boolean full()(Code) | | |
getCachePath | public static File getCachePath(yacyURL url)(Code) | | this method creates from a given host and path a cache path
from a given host (which may also be an IPv4 - number, but not IPv6 or
a domain; all without leading 'http://') and a path (which must start
with a leading '/', and may also end in an '/') a path to a file
in the file system with root as given in cachePath is constructed
it will also be ensured, that the complete path exists; if necessary
that path will be generated
new File |
getFreeSize | public static long getFreeSize()(Code) | | This method returns the free HTCache size.
the cache size in bytes |
getHash | public static String getHash(File f)(Code) | | This is a helper function that extracts the Hash from the filename
|
getResourceContentLength | public static long getResourceContentLength(yacyURL url)(Code) | | |
getResourceContentStream | public static InputStream getResourceContentStream(yacyURL url)(Code) | | Returns the content of a cached resource as
InputStream Parameters: url - the requested resource the resource content as InputStream. In no datais available or the cached file is not readable, null is returned. |
getURL | public static yacyURL getURL(File f)(Code) | | this is the reverse function to getCachePath: it constructs the url as string
from a given storage path
|
init | public static void init(File htCachePath, long CacheSizeMax, long preloadTime, String layout, boolean migration)(Code) | | |
isPicture | public static boolean isPicture(String mimeType)(Code) | | |
noIndexingURL | public static boolean noIndexingURL(yacyURL url)(Code) | | |
pop | public static Entry pop()(Code) | | |
push | public static void push(Entry entry)(Code) | | |
setCacheSize | public static void setCacheSize(long newCacheSize)(Code) | | This method changes the HTCache size.
Parameters: the - new cache size in bytes |
size | public static int size()(Code) | | |
writeFileAnnouncement | public static void writeFileAnnouncement(File file)(Code) | | |
writeResourceContent | public static boolean writeResourceContent(yacyURL url, byte[] array)(Code) | | |
|
|