Java Doc for Cluster.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » core » wizardStore » 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 » Database DBMS » Ozone 1.1 » org.ozoneDB.core.wizardStore 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ozoneDB.core.wizardStore.Cluster

Cluster
final public class Cluster implements Externalizable(Code)

author:
   SMB
author:
   Medium.net
version:
   $Revision: 1.2 $Date: 2002/06/08 00:49:39 $


Field Summary
protected transient  intbytesPerContainer
    
protected  ClusterIDclusterID
    
protected transient  ClusterStoreclusterStore
    
protected  DxMapcontainers
     Maps ObjectIDs into WizardObjectContainers.
protected transient  Envenv
     The environment.
protected transient  longlastTouched
    
protected transient  Locklock
    
protected  longmodTime
    
protected  Permissionspermissions
    
protected transient  intpinCount
     The count of users of this cluster which requested it to be pinned. If a cluster is pinned, it may not be "passivated" (i.e.
final protected static  longserialVersionUID
    
final protected static  bytesubSerialVersionUID
    

Constructor Summary
public  Cluster()
     Constructor to be used for Externalizable object serialisation.
public  Cluster(ClusterID _clusterID, Permissions _permissions, Lock _lock, int _bpc)
    

Method Summary
public  voidabort(Transaction ta)
    
public synchronized  voidaddPinCount(int what)
    
protected  DxCollectionallLockers()
    
protected  DxLongcachePriority()
     Priority of this cluster to stay in the cluster cache.
public synchronized  intclearPinCount()
     Sets the pin count to zero and returns the former pin count.
public  ClusterIDclusterID()
    
public  voidcommit(Transaction ta)
    
public  WizardObjectContainercontainerForID(ObjectID id)
    
protected  voiddelete()
     Delete this cluster from the disk.
protected  voiddeleteShadow()
    
public  voidfinalize()
    
protected  LockgetLock()
    
public  booleanisInvoked()
    
public synchronized  booleanisPinned()
     Returns wether this cluster is pinned.
public  longmodTime()
    
public synchronized  voidpin()
     Pins this Cluster.
public  voidprepareCommit(Transaction ta)
    
public  voidreadExternal(ObjectInput in)
    
public  voidregisterContainer(WizardObjectContainer container)
    
public  voidremoveContainer(WizardObjectContainer container)
    
protected  voidrestoreShadow()
     Restore the saved shadow on disk.
protected  voidsaveShadow()
    
public synchronized  voidsetCurrentSize(int byteSize)
    
protected  voidsetLock(Lock to)
    
public  intsize()
    
public  StringtoString()
    
public synchronized  voidtouch()
    
public synchronized  voidunpin()
     Unpins this Cluster.
public  voidupdateLockLevel(Transaction ta)
     Note: This method must not be synchronized.
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
bytesPerContainer
protected transient int bytesPerContainer(Code)



clusterID
protected ClusterID clusterID(Code)



clusterStore
protected transient ClusterStore clusterStore(Code)



containers
protected DxMap containers(Code)
Maps ObjectIDs into WizardObjectContainers.



env
protected transient Env env(Code)
The environment. Will be set by the clusterStore.



lastTouched
protected transient long lastTouched(Code)



lock
protected transient Lock lock(Code)



modTime
protected long modTime(Code)



permissions
protected Permissions permissions(Code)



pinCount
protected transient int pinCount(Code)
The count of users of this cluster which requested it to be pinned. If a cluster is pinned, it may not be "passivated" (i.e. written to disk and forgotten), it has to stay in memory. This cluster is said to be pinned iff pinCount!=0. Access to this count is only allowed during synchronization on this Cluster.



serialVersionUID
final protected static long serialVersionUID(Code)



subSerialVersionUID
final protected static byte subSerialVersionUID(Code)




Constructor Detail
Cluster
public Cluster()(Code)
Constructor to be used for Externalizable object serialisation.



Cluster
public Cluster(ClusterID _clusterID, Permissions _permissions, Lock _lock, int _bpc)(Code)




Method Detail
abort
public void abort(Transaction ta) throws IOException(Code)



addPinCount
public synchronized void addPinCount(int what)(Code)
Adds an amount to the pin count



allLockers
protected DxCollection allLockers()(Code)



cachePriority
protected DxLong cachePriority()(Code)
Priority of this cluster to stay in the cluster cache. Low return value means low priority. Cache priority of the cluster.



clearPinCount
public synchronized int clearPinCount()(Code)
Sets the pin count to zero and returns the former pin count.



clusterID
public ClusterID clusterID()(Code)



commit
public void commit(Transaction ta) throws IOException(Code)



containerForID
public WizardObjectContainer containerForID(ObjectID id)(Code)



delete
protected void delete() throws Exception(Code)
Delete this cluster from the disk.



deleteShadow
protected void deleteShadow() throws IOException(Code)



finalize
public void finalize()(Code)



getLock
protected Lock getLock()(Code)



isInvoked
public boolean isInvoked()(Code)
True if at least one container is currently invoked.



isPinned
public synchronized boolean isPinned()(Code)
Returns wether this cluster is pinned.



modTime
public long modTime()(Code)



pin
public synchronized void pin()(Code)
Pins this Cluster. Every caller of this method must pair this call with a call to Cluster.unpin . A Cluster remains in main memory at least as long as it is pinned.



prepareCommit
public void prepareCommit(Transaction ta)(Code)



readExternal
public void readExternal(ObjectInput in) throws IOException, ObjectStreamException, ClassNotFoundException(Code)



registerContainer
public void registerContainer(WizardObjectContainer container)(Code)



removeContainer
public void removeContainer(WizardObjectContainer container)(Code)



restoreShadow
protected void restoreShadow() throws IOException(Code)
Restore the saved shadow on disk. The content of the receiver stays the same. The cluster needs to be re-loaded to reflect the changes.



saveShadow
protected void saveShadow() throws IOException(Code)



setCurrentSize
public synchronized void setCurrentSize(int byteSize)(Code)



setLock
protected void setLock(Lock to)(Code)



size
public int size()(Code)



toString
public String toString()(Code)



touch
public synchronized void touch()(Code)



unpin
public synchronized void unpin()(Code)
Unpins this Cluster. This method must be called exactly once for every call to Cluster.pin .



updateLockLevel
public void updateLockLevel(Transaction ta) throws IOException(Code)
Note: This method must not be synchronized.
Parameters:
  ta -
Parameters:
  lockLevel -



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(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.