Java Doc for ManagedObjectImpl.java in  » Net » Terracotta » com » tc » objectserver » managedobject » 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 » Net » Terracotta » com.tc.objectserver.managedobject 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.tc.objectserver.managedobject.ManagedObjectImpl

ManagedObjectImpl
public class ManagedObjectImpl implements ManagedObject,ManagedObjectReference,Serializable,PrettyPrintable(Code)
Responsible for maintaining the state of a shared object. Used for broadcasting new instances of an object as well as having changes applied to it and keeping track of references for garbage collection. If you add fields to this object that need to be serialized make sure you add them to the ManagedObjectSerializer
author:
   steve TODO:: Remove Cacheable interface from this Object.


Field Summary
final  ObjectIDid
    
transient  ManagedObjectStatestate
    
 longversion
    

Constructor Summary
public  ManagedObjectImpl(ObjectID id)
    

Method Summary
public  intaccessCount(int factor)
    
public  voidaddObjectReferencesTo(ManagedObjectTraverser traverser)
    
public  voidapply(DNA dna, TransactionID txnID, BackReferences includeIDs, ObjectInstanceMonitor instanceMonitor, boolean ignoreIfOlderDNA)
    
public synchronized  booleancanEvict()
    
public  voidclearAccessed()
    
public  ManagedObjectFacadecreateFacade(int limit)
    
public  StringgetClassname()
    
public  ObjectIDgetID()
    
public  StringgetLoaderDescription()
    
public  ManagedObjectStategetManagedObjectState()
    
public  TLinkablegetNext()
    
public  ManagedObjectgetObject()
    
public  ObjectIDgetObjectID()
    
public  SetgetObjectReferences()
    
public  TLinkablegetPrevious()
    
public  ManagedObjectReferencegetReference()
    
public  longgetVersion()
    
public  booleanisDirty()
    
public  booleanisEqual(ManagedObject moi)
     This is here for testing, not production use.
public  booleanisNew()
    
public  booleanisPinned()
     Determines whether or not this reference is pinned in the ObjectManager's cache.
public  booleanisReferenced()
    
public  booleanisRemoveOnRelease()
    
public  voidmarkAccessed()
    
public  voidmarkReference()
    
public  voidpin()
     Pins this reference in the cache.
public  PrettyPrinterprettyPrint(PrettyPrinter out)
    
public  booleanrecentlyAccessed()
    
 voidsetBasicIsNew(boolean b)
    
public  voidsetIsDirty(boolean isDirty)
    
public  voidsetNext(TLinkable next)
    
public  voidsetPrevious(TLinkable previous)
    
public  voidsetRemoveOnRelease(boolean removeOnRelease)
    
public  voidtoDNA(TCByteBufferOutputStream out, ObjectStringSerializer serializer)
     Writes the data in the object to the DNA strand supplied.
public  StringtoString()
    
public  voidunmarkReference()
    
public  voidunpin()
    

Field Detail
id
final ObjectID id(Code)



state
transient ManagedObjectState state(Code)



version
long version(Code)




Constructor Detail
ManagedObjectImpl
public ManagedObjectImpl(ObjectID id)(Code)




Method Detail
accessCount
public int accessCount(int factor)(Code)



addObjectReferencesTo
public void addObjectReferencesTo(ManagedObjectTraverser traverser)(Code)



apply
public void apply(DNA dna, TransactionID txnID, BackReferences includeIDs, ObjectInstanceMonitor instanceMonitor, boolean ignoreIfOlderDNA)(Code)



canEvict
public synchronized boolean canEvict()(Code)



clearAccessed
public void clearAccessed()(Code)



createFacade
public ManagedObjectFacade createFacade(int limit)(Code)



getClassname
public String getClassname()(Code)
This is public for testing



getID
public ObjectID getID()(Code)



getLoaderDescription
public String getLoaderDescription()(Code)



getManagedObjectState
public ManagedObjectState getManagedObjectState()(Code)



getNext
public TLinkable getNext()(Code)



getObject
public ManagedObject getObject()(Code)
ManagedObjectReference Interface



getObjectID
public ObjectID getObjectID()(Code)



getObjectReferences
public Set getObjectReferences()(Code)



getPrevious
public TLinkable getPrevious()(Code)



getReference
public ManagedObjectReference getReference()(Code)



getVersion
public long getVersion()(Code)



isDirty
public boolean isDirty()(Code)



isEqual
public boolean isEqual(ManagedObject moi)(Code)
This is here for testing, not production use.



isNew
public boolean isNew()(Code)



isPinned
public boolean isPinned()(Code)
Determines whether or not this reference is pinned in the ObjectManager's cache. This allows the object manager to lookup multiple objects one at a time without evicting them from the cache.



isReferenced
public boolean isReferenced()(Code)



isRemoveOnRelease
public boolean isRemoveOnRelease()(Code)



markAccessed
public void markAccessed()(Code)



markReference
public void markReference()(Code)



pin
public void pin()(Code)
Pins this reference in the cache.



prettyPrint
public PrettyPrinter prettyPrint(PrettyPrinter out)(Code)



recentlyAccessed
public boolean recentlyAccessed()(Code)



setBasicIsNew
void setBasicIsNew(boolean b)(Code)



setIsDirty
public void setIsDirty(boolean isDirty)(Code)



setNext
public void setNext(TLinkable next)(Code)



setPrevious
public void setPrevious(TLinkable previous)(Code)



setRemoveOnRelease
public void setRemoveOnRelease(boolean removeOnRelease)(Code)
ManagedObjectReference::Cacheable interface XXX:: Most of these methods are not synchronized (except when accessing the flag field which can be accessed from multiple threads) 'coz it is expected that these are called under the scope of a bigger sync block (from evictionPolicy)



toDNA
public void toDNA(TCByteBufferOutputStream out, ObjectStringSerializer serializer)(Code)
Writes the data in the object to the DNA strand supplied.



toString
public String toString()(Code)



unmarkReference
public void unmarkReference()(Code)



unpin
public void unpin()(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.