Java Doc for AbstractStoreManager.java in  » Search-Engine » Jofti » com » jofti » store » 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 » Jofti » com.jofti.store 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jofti.store.AbstractStoreManager

All known Subclasses:   com.jofti.store.HashedStoreManager,  com.jofti.store.PassThroughStoreManager,  com.jofti.store.LRUStoreManager,
AbstractStoreManager
abstract public class AbstractStoreManager implements IStoreManager,IEntrySerializer(Code)

Base store manager that deals with non-implementation specific actions. The majority of the functions are to do with storing and retrieving pages to and from disk.

Sub classesshould make use of the bstract methods provided to allow diffirent types of cache optimisations to make alleviate some of the direct to disk behaviour.


author:
   xenephon


Field Summary
final  StringBLOCK_SIZE
    
final  StringFILE_NAME
    
final  StringFILE_SIZE
    
final  StringMAX_FILES
    
final  StringMAX_NODES
    
final  StringOVERFLOW_DIRECTORY
    
 intblockSize
    
 BufferManagerbufferManager
    
 intbufferNumber
    
protected  PropertiesconfigProperties
    
protected  intcurrentStore
    
 StringfileName
    
 intfileSize
    
 HelperManagerhelperManager
    
 inthelperNumber
    
 inthits
    
final  AtomicLongkeyId
    
 FileManagerlogManager
    
 intmaxBuffers
    
 intmaxFiles
    
 intmaxNodes
    
 intmisses
    
protected  Stringname
    
 StringoverflowDirectory
    
 PageManagerpageManager
    
 intpendingHits
    
 intsize
    
 intstoreRetrieves
    


Method Summary
protected  FilePositionHolder[]allocatePositions(FilePositionHolder[] filePositions, int size)
    
public  byte[]convertForStorage(Object obj)
    
public  LeafNodeEntryconvertFromStorage(ByteBuffer buf)
    
protected  IPagedoGetNewPage(int size)
    
protected  voiddoRemove(IStoreKey key)
    
protected  voiddoRemoveAll()
    
protected  IPagedoRetrieve(IStoreKey key)
    

The method that does the work of retrieving the page from the backing store.

protected  IStoreKeydoStore(IStoreKey key, ByteBuffer buffer)
    

Method that does the actual work for storing a byteBuffer to disk.

public  StringgetName()
    
abstract protected  IPagegetNewPage(int size)
    

Used to retrieve a new page.

public  IStoreKeygetNextKey()
    
public synchronized  voidinit(Properties properties)
    
abstract public  voidreleasePage(IStoreKey key, IPage page)
    
abstract public  voidremove(IStoreKey key, IPage page)
    
abstract public  voidremoveAll()
    
abstract public  StoreWrapperretrieve(IStoreKey key)
    
public  voidsetName(String name)
    
protected  voidsetUpProperties(Properties properties)
    
public  EntrySplitWrapper[]split(IPage page, int entryNumber)
    
abstract public  IStoreKeystore(IStoreKey key, IPage obj)
    

Field Detail
BLOCK_SIZE
final String BLOCK_SIZE(Code)



FILE_NAME
final String FILE_NAME(Code)



FILE_SIZE
final String FILE_SIZE(Code)



MAX_FILES
final String MAX_FILES(Code)



MAX_NODES
final String MAX_NODES(Code)



OVERFLOW_DIRECTORY
final String OVERFLOW_DIRECTORY(Code)



blockSize
int blockSize(Code)



bufferManager
BufferManager bufferManager(Code)



bufferNumber
int bufferNumber(Code)



configProperties
protected Properties configProperties(Code)



currentStore
protected int currentStore(Code)



fileName
String fileName(Code)



fileSize
int fileSize(Code)



helperManager
HelperManager helperManager(Code)



helperNumber
int helperNumber(Code)



hits
int hits(Code)



keyId
final AtomicLong keyId(Code)



logManager
FileManager logManager(Code)



maxBuffers
int maxBuffers(Code)



maxFiles
int maxFiles(Code)



maxNodes
int maxNodes(Code)



misses
int misses(Code)



name
protected String name(Code)



overflowDirectory
String overflowDirectory(Code)



pageManager
PageManager pageManager(Code)



pendingHits
int pendingHits(Code)



size
int size(Code)



storeRetrieves
int storeRetrieves(Code)





Method Detail
allocatePositions
protected FilePositionHolder[] allocatePositions(FilePositionHolder[] filePositions, int size) throws JoftiException(Code)



convertForStorage
public byte[] convertForStorage(Object obj) throws JoftiException(Code)



convertFromStorage
public LeafNodeEntry convertFromStorage(ByteBuffer buf) throws JoftiException(Code)



doGetNewPage
protected IPage doGetNewPage(int size)(Code)

Parameters:
  size -



doRemove
protected void doRemove(IStoreKey key) throws JoftiException(Code)



doRemoveAll
protected void doRemoveAll() throws JoftiException(Code)



doRetrieve
protected IPage doRetrieve(IStoreKey key) throws JoftiException(Code)

The method that does the work of retrieving the page from the backing store.


Parameters:
  key -
throws:
  JoftiException -



doStore
protected IStoreKey doStore(IStoreKey key, ByteBuffer buffer) throws JoftiException(Code)

Method that does the actual work for storing a byteBuffer to disk. The Byte buffer can be of any size and the filepositions in the key object are used to determine where the data is written.


Parameters:
  key -
Parameters:
  buffer -
throws:
  JoftiException -



getName
public String getName()(Code)



getNewPage
abstract protected IPage getNewPage(int size)(Code)

Used to retrieve a new page. Sub classes should use this method to decorate the pages in any way they want in order to improve any cache optimisations.


Parameters:
  size -



getNextKey
public IStoreKey getNextKey()(Code)



init
public synchronized void init(Properties properties) throws JoftiException(Code)



releasePage
abstract public void releasePage(IStoreKey key, IPage page)(Code)



remove
abstract public void remove(IStoreKey key, IPage page) throws JoftiException(Code)



removeAll
abstract public void removeAll() throws JoftiException(Code)



retrieve
abstract public StoreWrapper retrieve(IStoreKey key) throws JoftiException(Code)



setName
public void setName(String name)(Code)



setUpProperties
protected void setUpProperties(Properties properties) throws JoftiException(Code)

Parameters:
  properties -
throws:
  JoftiException -



split
public EntrySplitWrapper[] split(IPage page, int entryNumber)(Code)



store
abstract public IStoreKey store(IStoreKey key, IPage obj) throws JoftiException(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.