Java Doc for JDBCClusterIndexStore.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » search » index » impl » 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 » ERP CRM Financial » sakai » org.sakaiproject.search.index.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.search.index.impl.JDBCClusterIndexStore

JDBCClusterIndexStore
public class JDBCClusterIndexStore implements ClusterFilesystem(Code)
This is a JDBC implementation of the ClusterFilesystem. It syncronizes the local search index segments with the database, by sipping each segment and pushing it to the database. Each Segment has an extra file that contains an MD5 of the segment and a time stamp of the last update. If any segments are missing in the local segment store (including no segments at all, as with a new cluster node) the missing segments are downloaded from the JDBC store. If any of the segments on the local store are found to be dammaged they are reloaded from the database.
author:
   ieb




Method Summary
public  booleancentralIndexExists()
    
public  voiddolog(String message)
    
public  DataSourcegetDataSource()
    
public  longgetLastUpdate()
    
public  List<SegmentInfo>getLocalSegments()
    
public  List<SegmentInfo>getLocalSegments(File searchDir, List<SegmentInfo> l)
    
public  voidgetLock()
    
public  SearchServicegetSearchService()
    
public  ListgetSegmentInfoList()
    
public  longgetSegmentInfoList(File searchDir, List seginfo)
    
public  StringgetSegmentName(String segmentPath)
    
public  StringgetSharedSegments()
    
public  FilegetTemporarySegment(boolean delete)
    
public  voidinit()
    
public  booleanisLocalSegmentsOnly()
    
public  booleanisLocalStructuredStorage()
    
public  booleanisMultipleIndexers()
    
public  booleanisParallelIndex()
    
public  booleanisSharedStructuredStorage()
    
public  booleanisValidate()
    
public  SegmentInfonewSegment()
    
public  voidrecoverSegment(SegmentInfo recoverSegInfo)
    
public  voidreleaseLock()
    
public  voidremoveLocalSegment(SegmentInfo rmsi)
    
public  voidremoveTemporarySegment()
    
public  List<SegmentInfo>saveAllSegments()
    
public  List<SegmentInfo>saveSegments()
    
public  SegmentInfosaveTemporarySegment()
    
public  voidsetAutoDdl(boolean autoDdl)
    
public  voidsetDataSource(DataSource dataSource)
    
public  voidsetLocalSegmentsOnly(boolean localSegmentsOnly)
    
public  voidsetLocalStructuredStorage(boolean localStructuredStorage)
    
public  voidsetLocation(String location)
    
public  voidsetParallelIndex(boolean parallelIndex)
    
public  voidsetSearchService(SearchService searchService)
    
public  voidsetSharedSegments(String sharedSegments)
    
public  voidsetSharedStructuredStorage(boolean sharedStructuredStorage)
    
public  voidsetValidate(boolean validate)
    
protected  voidupdateDBPatch(Connection connection)
    
protected  voidupdateDBPatchBLOB(Connection connection)
    
protected  voidupdateDBPatchFilesystem(Connection connection)
    
protected  voidupdateDBSegment(Connection connection, SegmentInfo addsi)
    
protected  voidupdateDBSegmentBLOB(Connection connection, SegmentInfo addsi)
    
protected  voidupdateDBSegmentFilesystem(Connection connection, SegmentInfo addsi)
    
protected  voidupdateLocalPatch(Connection connection)
    
protected  voidupdateLocalPatchFilesystem(Connection connection)
    
protected  voidupdateLocalSegment(Connection connection, SegmentInfo addsi)
    
protected  voidupdateLocalSegmentBLOB(Connection connection, SegmentInfo addsi)
    
protected  voidupdateLocalSegmentFilesystem(Connection connection, SegmentInfo addsi)
    
public  List<SegmentInfo>updateSegments()
    



Method Detail
centralIndexExists
public boolean centralIndexExists()(Code)



dolog
public void dolog(String message)(Code)



getDataSource
public DataSource getDataSource()(Code)
Returns the dataSource.



getLastUpdate
public long getLastUpdate()(Code)



getLocalSegments
public List<SegmentInfo> getLocalSegments() throws IOException(Code)
get a list of local segments
throws:
  IOException -



getLocalSegments
public List<SegmentInfo> getLocalSegments(File searchDir, List<SegmentInfo> l) throws IOException(Code)
recurse into a list of segments
Parameters:
  searchDir -
Parameters:
  l -
throws:
  IOException -



getLock
public void getLock()(Code)



getSearchService
public SearchService getSearchService()(Code)
the searchService



getSegmentInfoList
public List getSegmentInfoList()(Code)



getSegmentInfoList
public long getSegmentInfoList(File searchDir, List seginfo)(Code)



getSegmentName
public String getSegmentName(String segmentPath)(Code)



getSharedSegments
public String getSharedSegments()(Code)



getTemporarySegment
public File getTemporarySegment(boolean delete)(Code)
create a temporary index for indexing operations



init
public void init()(Code)



isLocalSegmentsOnly
public boolean isLocalSegmentsOnly()(Code)
the localSegmentsOnly



isLocalStructuredStorage
public boolean isLocalStructuredStorage()(Code)
Returns the localStructuredStorage.



isMultipleIndexers
public boolean isMultipleIndexers()(Code)



isParallelIndex
public boolean isParallelIndex()(Code)



isSharedStructuredStorage
public boolean isSharedStructuredStorage()(Code)
Returns the sharedStructuredStorage.



isValidate
public boolean isValidate()(Code)
Returns the validate.



newSegment
public SegmentInfo newSegment() throws IOException(Code)
create a new local segment and mark its tiestamp



recoverSegment
public void recoverSegment(SegmentInfo recoverSegInfo)(Code)



releaseLock
public void releaseLock()(Code)



removeLocalSegment
public void removeLocalSegment(SegmentInfo rmsi)(Code)
remove a local segment
Parameters:
  rmsi -



removeTemporarySegment
public void removeTemporarySegment()(Code)



saveAllSegments
public List<SegmentInfo> saveAllSegments()(Code)



saveSegments
public List<SegmentInfo> saveSegments()(Code)
save the local segments to the DB



saveTemporarySegment
public SegmentInfo saveTemporarySegment() throws IOException(Code)



setAutoDdl
public void setAutoDdl(boolean autoDdl)(Code)

Parameters:
  autoDdl - The autoDdl to set.



setDataSource
public void setDataSource(DataSource dataSource)(Code)

Parameters:
  dataSource - The dataSource to set.



setLocalSegmentsOnly
public void setLocalSegmentsOnly(boolean localSegmentsOnly)(Code)

Parameters:
  localSegmentsOnly - the localSegmentsOnly to set



setLocalStructuredStorage
public void setLocalStructuredStorage(boolean localStructuredStorage)(Code)

Parameters:
  localStructuredStorage - The localStructuredStorage to set.



setLocation
public void setLocation(String location)(Code)



setParallelIndex
public void setParallelIndex(boolean parallelIndex)(Code)



setSearchService
public void setSearchService(SearchService searchService)(Code)

Parameters:
  searchService - the searchService to set



setSharedSegments
public void setSharedSegments(String sharedSegments)(Code)



setSharedStructuredStorage
public void setSharedStructuredStorage(boolean sharedStructuredStorage)(Code)

Parameters:
  sharedStructuredStorage - The sharedStructuredStorage to set.



setValidate
public void setValidate(boolean validate)(Code)

Parameters:
  validate - The validate to set.



updateDBPatch
protected void updateDBPatch(Connection connection) throws SQLException, IOException(Code)



updateDBPatchBLOB
protected void updateDBPatchBLOB(Connection connection) throws SQLException, IOException(Code)
updat this save this local segment into the db
Parameters:
  connection -
Parameters:
  addsi -



updateDBPatchFilesystem
protected void updateDBPatchFilesystem(Connection connection) throws SQLException, IOException(Code)
updat this save this local segment into the db
Parameters:
  connection -
Parameters:
  addsi -



updateDBSegment
protected void updateDBSegment(Connection connection, SegmentInfo addsi) throws SQLException, IOException(Code)



updateDBSegmentBLOB
protected void updateDBSegmentBLOB(Connection connection, SegmentInfo addsi) throws SQLException, IOException(Code)
updat this save this local segment into the db
Parameters:
  connection -
Parameters:
  addsi -



updateDBSegmentFilesystem
protected void updateDBSegmentFilesystem(Connection connection, SegmentInfo addsi) throws SQLException, IOException(Code)
updat this save this local segment into the db
Parameters:
  connection -
Parameters:
  addsi -



updateLocalPatch
protected void updateLocalPatch(Connection connection) throws SQLException, IOException(Code)



updateLocalPatchFilesystem
protected void updateLocalPatchFilesystem(Connection connection) throws SQLException, IOException(Code)



updateLocalSegment
protected void updateLocalSegment(Connection connection, SegmentInfo addsi) throws SQLException, IOException(Code)



updateLocalSegmentBLOB
protected void updateLocalSegmentBLOB(Connection connection, SegmentInfo addsi) throws SQLException, IOException(Code)
updte a segment from the database
Parameters:
  connection -
Parameters:
  addsi -



updateLocalSegmentFilesystem
protected void updateLocalSegmentFilesystem(Connection connection, SegmentInfo addsi) throws SQLException, IOException(Code)
updte a segment from the database
Parameters:
  connection -
Parameters:
  addsi -



updateSegments
public List<SegmentInfo> updateSegments()(Code)
update the local Segmetns from the DB



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.