Java Doc for Node.java in  » JMX » je » com » sleepycat » je » tree » 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 » JMX » je » com.sleepycat.je.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sleepycat.je.tree.Node

All known Subclasses:   com.sleepycat.je.tree.IN,  com.sleepycat.je.tree.LN,
Node
abstract public class Node implements Loggable(Code)
A Node contains all the common base information for any JE B-Tree node.



Constructor Summary
protected  Node(boolean init)
     Create a new node, assigning it the next available node id.

Method Summary
abstract  voidaccountForSubtreeRemoval(INList inList, UtilizationTracker tracker)
     Remove yourself from the in memory list if you're a type of node that is put there.
abstract protected  booleancanBeAncestor(boolean targetContainsDuplicates)
    
public  booleancontainsDuplicates()
    
public  voiddump(int nSpaces)
    
public  voiddumpLog(StringBuffer sb, boolean verbose)
    
 StringdumpString(int nSpaces, boolean dumpTags)
    
public static synchronized  longgetLastId()
     Get the latest id, for checkpointing.
 intgetLevel()
     Cover for LN's and just return 0 since they'll always be at the bottom of the tree.
public  intgetLogSize()
    
abstract public  LogEntryTypegetLogType()
    
protected  longgetMemorySizeIncludedByParent()
     Return the approximate size of this node in memory, if this size should be included in it's parents memory accounting. For example, all INs return 0, because they are accounted for individually.
public static synchronized  longgetNextNodeId()
     Increment and return the next usable id.
public  longgetNodeId()
    
public  longgetTransactionId()
    
public  StringgetType()
    
abstract protected  booleanisSoughtNode(long nid, boolean updateGeneration)
    
abstract  booleanisValidForDelete()
    
public  voidlatchShared()
    
 booleanmatchLNByNodeId(TreeLocation location, long nodeId)
    
public  voidpostFetchInit(DatabaseImpl db, long sourceLsn)
    
public  voidreadFromLog(ByteBuffer itemBuffer, byte entryTypeVersion)
    
abstract  voidrebuildINList(INList inList)
     Add yourself to the in memory list if you're a type of node that should belong.
public  voidreleaseLatch()
    
public static synchronized  voidsetLastNodeId(long id)
    
 voidsetNodeId(long nid)
    
public  StringshortDescription()
    
public  StringtoString()
     Default toString method at the root of the tree.
public  voidverify(byte[] maxKey)
    
public  voidwriteToLog(ByteBuffer logBuffer)
    


Constructor Detail
Node
protected Node(boolean init)(Code)
Create a new node, assigning it the next available node id.




Method Detail
accountForSubtreeRemoval
abstract void accountForSubtreeRemoval(INList inList, UtilizationTracker tracker) throws DatabaseException(Code)
Remove yourself from the in memory list if you're a type of node that is put there.



canBeAncestor
abstract protected boolean canBeAncestor(boolean targetContainsDuplicates)(Code)
true if you can be the ancestor of the target IN.Currently the determining factor is whether the target IN containsduplicates.



containsDuplicates
public boolean containsDuplicates()(Code)
true if this node is a duplicate-bearing node type, falseif otherwise.



dump
public void dump(int nSpaces)(Code)



dumpLog
public void dumpLog(StringBuffer sb, boolean verbose)(Code)

See Also:   Loggable.dumpLog



dumpString
String dumpString(int nSpaces, boolean dumpTags)(Code)



getLastId
public static synchronized long getLastId()(Code)
Get the latest id, for checkpointing.



getLevel
int getLevel()(Code)
Cover for LN's and just return 0 since they'll always be at the bottom of the tree.



getLogSize
public int getLogSize()(Code)

See Also:   Loggable.getLogSize



getLogType
abstract public LogEntryType getLogType()(Code)



getMemorySizeIncludedByParent
protected long getMemorySizeIncludedByParent()(Code)
Return the approximate size of this node in memory, if this size should be included in it's parents memory accounting. For example, all INs return 0, because they are accounted for individually. LNs must return a count, they're not counted on the INList.



getNextNodeId
public static synchronized long getNextNodeId()(Code)
Increment and return the next usable id. Must be synchronized.



getNodeId
public long getNodeId()(Code)



getTransactionId
public long getTransactionId()(Code)

See Also:   Loggable.getTransactionId



getType
public String getType()(Code)



isSoughtNode
abstract protected boolean isSoughtNode(long nid, boolean updateGeneration) throws DatabaseException(Code)
true if you're an IN in the search path



isValidForDelete
abstract boolean isValidForDelete() throws DatabaseException(Code)
true if you're part of a deletable subtree.



latchShared
public void latchShared() throws DatabaseException(Code)



matchLNByNodeId
boolean matchLNByNodeId(TreeLocation location, long nodeId) throws DatabaseException(Code)



postFetchInit
public void postFetchInit(DatabaseImpl db, long sourceLsn) throws DatabaseException(Code)
Initialize a node that has been faulted in from the log



readFromLog
public void readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion) throws LogException(Code)

See Also:   Loggable.readFromLog



rebuildINList
abstract void rebuildINList(INList inList) throws DatabaseException(Code)
Add yourself to the in memory list if you're a type of node that should belong.



releaseLatch
public void releaseLatch() throws LatchNotHeldException(Code)



setLastNodeId
public static synchronized void setLastNodeId(long id)(Code)



setNodeId
void setNodeId(long nid)(Code)



shortDescription
public String shortDescription()(Code)



toString
public String toString()(Code)
Default toString method at the root of the tree.



verify
public void verify(byte[] maxKey) throws DatabaseException(Code)



writeToLog
public void writeToLog(ByteBuffer logBuffer)(Code)

See Also:   Loggable.writeToLog



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.