Java Doc for plasmaHTCache.java in  » Search-Engine » yacy » de » anomic » plasma » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » yacy » de.anomic.plasma 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.anomic.plasma.plasmaHTCache

plasmaHTCache
final public class plasmaHTCache (Code)

Inner Class :final public static class Entry

Field Summary
final public static  intAP_ANCHOR
    
final public static  intAP_AUTHOR
    
final public static  intAP_BOLD
    
final public static  intAP_DOM
    
final public static  intAP_ENV
    
final public static  intAP_H1
    
final public static  intAP_H2
    
final public static  intAP_H3
    
final public static  intAP_H4
    
final public static  intAP_H5
    
final public static  intAP_H6
    
final public static  intAP_IMG
    
final public static  intAP_INVISIBLE
    
final public static  intAP_ITALICS
    
final public static  intAP_OPUS
    
final public static  intAP_PATH
    
final public static  intAP_TAG
    
final public static  intAP_TEXT
    
final public static  intAP_TITLE
    
final public static  intAP_TRACK
    
final public static  intAP_WEAK
    
final public static  StringDB_NAME
    
final public static  charDT_AUDIO
    
final public static  charDT_BINARY
    
final public static  charDT_DOC
    
final public static  charDT_FLASH
    
final public static  charDT_HTML
    
final public static  charDT_IMAGE
    
final public static  charDT_MOVIE
    
final public static  charDT_PDFPS
    
final public static  charDT_SHARE
    
final public static  charDT_TEXT
    
final public static  charDT_UNKNOWN
    
final public static  charLT_GLOBAL
    
final public static  charLT_LOCAL
    
final public static  intUA_LOCAL
    
final public static  intUA_REDIRECT
    
final public static  intUA_TILDE
    
public static  StringcacheLayout
    
public static  booleancacheMigration
    
public static  FilecachePath
    
public static  longcurCacheSize
    
final public static  HashSet<File>filesInUse
    
final public static  serverLoglog
    
public static  longmaxCacheSize
    
final public static  longoneday
    


Method Summary
public static  voidcacheScan()
    
public static  voidclose()
    
public static  intdbSize()
    
public static  booleandeleteURLfromCache(yacyURL url)
    
public static  chardocType(yacyURL url)
    
public static  chardocType(String mime)
    
public static  booleanempty()
    
public static  booleanfull()
    
public static  FilegetCachePath(yacyURL url)
    
public static  longgetFreeSize()
    
public static  StringgetHash(File f)
    
public static  longgetResourceContentLength(yacyURL url)
    
public static  InputStreamgetResourceContentStream(yacyURL url)
     Returns the content of a cached resource as InputStream
Parameters:
  url - the requested resource the resource content as InputStream.
public static  ResourceInfoFactorygetResourceInfoFactory()
    
public static  yacyURLgetURL(File f)
    
public static  voidinit(File htCachePath, long CacheSizeMax, long preloadTime, String layout, boolean migration)
    
public static  booleanisPicture(String mimeType)
    
public static  booleanisText(String mimeType)
    
public static  IResourceInfoloadResourceInfo(yacyURL url)
    
public static  EntrynewEntry(Date initDate, int depth, yacyURL url, String name, String responseStatus, IResourceInfo docInfo, String initiator, plasmaCrawlProfile.entry profile)
    
public static  booleannoIndexingURL(yacyURL url)
    
public static  Entrypop()
    
public static  voidpush(Entry entry)
    
public static  voidsetCacheSize(long newCacheSize)
    
public static  intsize()
    
public static  voidwriteFileAnnouncement(File file)
    
public static  booleanwriteResourceContent(yacyURL url, byte[] array)
    

Field Detail
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)



DB_NAME
final public static String DB_NAME(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)



cacheLayout
public static String cacheLayout(Code)



cacheMigration
public static boolean cacheMigration(Code)



cachePath
public static File cachePath(Code)



curCacheSize
public static long curCacheSize(Code)



filesInUse
final public static HashSet<File> filesInUse(Code)



log
final public static serverLog log(Code)



maxCacheSize
public static long maxCacheSize(Code)



oneday
final public static long oneday(Code)





Method Detail
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)



docType
public static char docType(yacyURL url)(Code)



docType
public static char docType(String mime)(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, nullis returned.



getResourceInfoFactory
public static ResourceInfoFactory getResourceInfoFactory()(Code)



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)



isText
public static boolean isText(String mimeType)(Code)



loadResourceInfo
public static IResourceInfo loadResourceInfo(yacyURL url) throws UnsupportedProtocolException, IllegalAccessException(Code)
Returns an object containing metadata about a cached resource
Parameters:
  url - the URL of the resource an IResourceInfo info object IllegalAccessException if the SecurityManager doesn't allow instantiationof the info object with the given protocol UnsupportedProtocolException if the protocol is not supported and therefore theinfo object couldn't be created



newEntry
public static Entry newEntry(Date initDate, int depth, yacyURL url, String name, String responseStatus, IResourceInfo docInfo, String initiator, plasmaCrawlProfile.entry profile)(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)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.