Java Doc for FileStore.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » server » cluster » 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 » EJB Server resin 3.1.5 » resin » com.caucho.server.cluster 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.server.cluster.StoreManager
      com.caucho.server.cluster.FileStore

FileStore
public class FileStore extends StoreManager (Code)
Class storing distributed objects based on the filesystem.



Constructor Summary
public  FileStore()
     Create a new file-based persistent store.

Method Summary
public  voidaccessImpl(String uniqueId)
     Updates the object's access time in the persistent store.
public  voidaddText(String value)
    
public  voidclearOldObjects()
     Clears the files which are too old.
 ClusterObjectcreate(Store store, String id)
     Creates the cluster object.
public  PathgetPath()
    
public  booleaninit()
     Initialize.
protected  booleanisPrimary(String id)
     Returns true if this server is a primary for the given object id.
public  booleanload(ClusterObject clusterObj, Object obj)
     Loads the session from the filesystem.
public  voidremove(ClusterObject obj)
     When the session is no longer valid, remove it from the backing store.
public  voidsetExpireInterval(String uniqueId, long expires)
     Sets the timef for the expires interval.
Parameters:
  uniqueId - the identifier of the object.
public  voidsetPath(Path path)
     Sets the file store's path.
public  booleanstart()
    
public  voidstore(ClusterObject obj, TempStream tempStream, long crc)
     Saves the session to the filesystem.


Constructor Detail
FileStore
public FileStore()(Code)
Create a new file-based persistent store.




Method Detail
accessImpl
public void accessImpl(String uniqueId) throws Exception(Code)
Updates the object's access time in the persistent store.
Parameters:
  uniqueId - the identifier of the object.



addText
public void addText(String value)(Code)



clearOldObjects
public void clearOldObjects()(Code)
Clears the files which are too old.



create
ClusterObject create(Store store, String id)(Code)
Creates the cluster object.



getPath
public Path getPath()(Code)



init
public boolean init() throws Exception(Code)
Initialize.



isPrimary
protected boolean isPrimary(String id)(Code)
Returns true if this server is a primary for the given object id.



load
public boolean load(ClusterObject clusterObj, Object obj) throws Exception(Code)
Loads the session from the filesystem.
Parameters:
  clusterObj - the object to fill



remove
public void remove(ClusterObject obj) throws Exception(Code)
When the session is no longer valid, remove it from the backing store.



setExpireInterval
public void setExpireInterval(String uniqueId, long expires) throws Exception(Code)
Sets the timef for the expires interval.
Parameters:
  uniqueId - the identifier of the object. long the time in ms for the expire



setPath
public void setPath(Path path)(Code)
Sets the file store's path.



start
public boolean start() throws Exception(Code)
Start



store
public void store(ClusterObject obj, TempStream tempStream, long crc) throws Exception(Code)
Saves the session to the filesystem.
Parameters:
  obj - the object to save
Parameters:
  tempStream - stream to the serialized object
Parameters:
  crc - digest of the serialized stream
Parameters:
  updateCount - how many times the object has been updated



Fields inherited from com.caucho.server.cluster.StoreManager
final static L10N L(Code)(Java Doc)
protected LruCache<String, ClusterObject> _clusterObjects(Code)(Java Doc)
protected long _idleCheckInterval(Code)(Java Doc)
protected boolean _isAlwaysLoad(Code)(Java Doc)
protected boolean _isAlwaysSave(Code)(Java Doc)
protected volatile long _loadCount(Code)(Java Doc)
protected volatile long _loadFailCount(Code)(Java Doc)
protected long _maxIdleTime(Code)(Java Doc)
protected volatile long _saveCount(Code)(Java Doc)
protected volatile long _saveFailCount(Code)(Java Doc)
protected int _selfIndex(Code)(Java Doc)
protected HashMap<String, Store> _storeMap(Code)(Java Doc)
final protected static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.server.cluster.StoreManager
public void access(String uniqueId) throws Exception(Code)(Java Doc)
public void access(Store store, String id) throws Exception(Code)(Java Doc)
abstract public void accessImpl(String uniqueId) throws Exception(Code)(Java Doc)
public void classLoaderDestroy(DynamicClassLoader loader)(Code)(Java Doc)
public void classLoaderInit(DynamicClassLoader loader)(Code)(Java Doc)
public void clearOldObjects() throws Exception(Code)(Java Doc)
ClusterObject create(Store store, String id)(Code)(Java Doc)
ClusterObject createClusterObject(Store store, String id)(Code)(Java Doc)
public Store createStore(String storeId, ObjectManager objectManager)(Code)(Java Doc)
static int decode(int code)(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public void environmentConfig(EnvironmentClassLoader loader)(Code)(Java Doc)
public void environmentStart(EnvironmentClassLoader loader)(Code)(Java Doc)
public void environmentStop(EnvironmentClassLoader loader)(Code)(Java Doc)
public long getAccessWindowTime()(Code)(Java Doc)
public PersistentStoreMXBean getAdmin()(Code)(Java Doc)
public Cluster getCluster()(Code)(Java Doc)
ClusterObject getClusterObject(Store store, String id)(Code)(Java Doc)
ClusterObject getClusterObject(String storeId, String id)(Code)(Java Doc)
ClusterObject getClusterObject(String uniqueId)(Code)(Java Doc)
public long getIdleCheckTime()(Code)(Java Doc)
public long getLoadCount()(Code)(Java Doc)
public long getLoadFailCount()(Code)(Java Doc)
public long getMaxIdleTime()(Code)(Java Doc)
public long getObjectCount()(Code)(Java Doc)
protected ServerConnector getOwningServer(String objectId)(Code)(Java Doc)
public int getPrimaryIndex(String id, int offset)(Code)(Java Doc)
public long getSaveCount()(Code)(Java Doc)
public long getSaveFailCount()(Code)(Java Doc)
public int getSecondaryIndex(String id, int offset)(Code)(Java Doc)
protected int getSelfIndex()(Code)(Java Doc)
protected ServerConnector[] getServerList()(Code)(Java Doc)
public Store getStore(String storeId)(Code)(Java Doc)
public int getTertiaryIndex(String id, int offset)(Code)(Java Doc)
public void handleAlarm(Alarm alarm)(Code)(Java Doc)
public boolean init() throws Exception(Code)(Java Doc)
public boolean isAlwaysLoad()(Code)(Java Doc)
public boolean isAlwaysSave()(Code)(Java Doc)
protected boolean isPrimary(String id)(Code)(Java Doc)
abstract protected boolean load(ClusterObject clusterObject, Object obj) throws Exception(Code)(Java Doc)
public void remove(ClusterObject obj) throws Exception(Code)(Java Doc)
public void remove(Store store, String objectId) throws Exception(Code)(Java Doc)
ClusterObject removeClusterObject(String storeId, String id)(Code)(Java Doc)
public Store removeStore(String storeId)(Code)(Java Doc)
public void setAlwaysLoad(boolean alwaysLoad)(Code)(Java Doc)
public void setAlwaysSave(boolean alwaysSave)(Code)(Java Doc)
public void setCluster(Cluster cluster)(Code)(Java Doc)
public void setExpireInterval(String uniqueId, long expires) throws Exception(Code)(Java Doc)
public void setMaxIdleTime(Period maxIdleTime)(Code)(Java Doc)
public boolean start() throws Exception(Code)(Java Doc)
public void store(Store store, String id, Object obj) throws IOException(Code)(Java Doc)
abstract protected void store(ClusterObject clusterObject, TempStream tempStream, long crc) throws Exception(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void update(String storeId, String objectId) throws Exception(Code)(Java Doc)
public void updateIdleCheckInterval(long idleCheckInterval)(Code)(Java Doc)
public void updateOwner(String objectId, String uniqueId) throws Exception(Code)(Java Doc)

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.