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


java.lang.Object
   org.sakaiproject.event.impl.BaseEventTrackingService
      org.sakaiproject.event.impl.ClusterEventTracking

All known Subclasses:   org.sakaiproject.event.impl.EventTrackingTest,
ClusterEventTracking
abstract public class ClusterEventTracking extends BaseEventTrackingService implements Runnable(Code)

ClusterEventTracking is the implmentation for the EventTracking service for use in a clustered multi-app server configuration.
Events are backed in the cluster database, and this database is polled to read and process locally events posted by the other cluster members.



Field Summary
protected  booleanm_autoDdl
     Configuration: to run the ddl on init or not.
protected  booleanm_batchWrite
     If true, batch events for bulk write.
protected  booleanm_checkDb
     Unless false, check the db for events from the other cluster servers.
protected  Collectionm_eventQueue
     Queue of events to write if we are batching.
protected  longm_lastEventSeq
    
protected static  Stringm_logId
    
protected  longm_period
     How long to wait between checks for new events from the db.
protected  Threadm_thread
     The db event checker thread.
protected  booleanm_threadStop
     The thread quit flag.


Method Summary
protected  voidbindValues(Event event, Object[] fields)
     Bind the event values into an array of fields for inserting.
public  voiddestroy()
     Final cleanup.
public  voidinit()
     Final initialization, once all dependencies are set.
protected  voidinitLastEvent()
     Check the db for the largest event seq number, and set this as the one after which we will next get event.
protected  StringinsertStatement()
     Form the proper event insert statement for the database technology.
protected  voidpostEvent(Event event)
     Cause this new event to get to wherever it has to go for persistence, etc.
public  voidrun()
     Run the event checking thread.
abstract protected  ServerConfigurationServiceserverConfigurationService()
    
public  voidsetAutoDdl(String value)
     Configuration: to run the ddl on init or not.
public  voidsetBatchWrite(String value)
     Configuration: set the batch writing flag.
public  voidsetCheckDb(String value)
     Configuration: set the check-db.
public  voidsetPeriod(String time)
     Set the # seconds to wait between db checks for new events.
abstract protected  SqlServicesqlService()
    
protected  voidstart()
     Start the clean and report thread.
protected  voidstop()
     Stop the clean and report thread.
abstract protected  TimeServicetimeService()
    
protected  voidwriteBatchEvents(Collection events)
    
protected  voidwriteEvent(Event event, Connection conn)
    

Field Detail
m_autoDdl
protected boolean m_autoDdl(Code)
Configuration: to run the ddl on init or not.



m_batchWrite
protected boolean m_batchWrite(Code)
If true, batch events for bulk write.



m_checkDb
protected boolean m_checkDb(Code)
Unless false, check the db for events from the other cluster servers.



m_eventQueue
protected Collection m_eventQueue(Code)
Queue of events to write if we are batching.



m_lastEventSeq
protected long m_lastEventSeq(Code)
Last event code read from the db



m_logId
protected static String m_logId(Code)
String used to identify this service in the logs



m_period
protected long m_period(Code)
How long to wait between checks for new events from the db.



m_thread
protected Thread m_thread(Code)
The db event checker thread.



m_threadStop
protected boolean m_threadStop(Code)
The thread quit flag.





Method Detail
bindValues
protected void bindValues(Event event, Object[] fields)(Code)
Bind the event values into an array of fields for inserting.
Parameters:
  event - The event to write.
Parameters:
  fields - The object[] to hold bind variables.



destroy
public void destroy()(Code)
Final cleanup.



init
public void init()(Code)
Final initialization, once all dependencies are set.



initLastEvent
protected void initLastEvent()(Code)
Check the db for the largest event seq number, and set this as the one after which we will next get event.



insertStatement
protected String insertStatement()(Code)
Form the proper event insert statement for the database technology. The SQL insert statement for writing an event.



postEvent
protected void postEvent(Event event)(Code)
Cause this new event to get to wherever it has to go for persistence, etc.
Parameters:
  event - The new event to post.



run
public void run()(Code)
Run the event checking thread.



serverConfigurationService
abstract protected ServerConfigurationService serverConfigurationService()(Code)
the ServerConfigurationService collaborator.



setAutoDdl
public void setAutoDdl(String value)(Code)
Configuration: to run the ddl on init or not.
Parameters:
  value - the auto ddl value.



setBatchWrite
public void setBatchWrite(String value)(Code)
Configuration: set the batch writing flag.
Parameters:
  value - The batch writing value.



setCheckDb
public void setCheckDb(String value)(Code)
Configuration: set the check-db.
Parameters:
  value - The check-db value.



setPeriod
public void setPeriod(String time)(Code)
Set the # seconds to wait between db checks for new events.
Parameters:
  time - The # seconds to wait between db checks for new events.



sqlService
abstract protected SqlService sqlService()(Code)
the MemoryService collaborator.



start
protected void start()(Code)
Start the clean and report thread.



stop
protected void stop()(Code)
Stop the clean and report thread.



timeService
abstract protected TimeService timeService()(Code)
the TimeService collaborator.



writeBatchEvents
protected void writeBatchEvents(Collection events)(Code)
Write a batch of events to the db
Parameters:
  events - The collection of event to write.



writeEvent
protected void writeEvent(Event event, Connection conn)(Code)
Write a single event to the db
Parameters:
  event - The event to write.



Fields inherited from org.sakaiproject.event.impl.BaseEventTrackingService
protected MyObservable m_localObservableHelper(Code)(Java Doc)
protected MyObservable m_observableHelper(Code)(Java Doc)
protected MyObservable m_priorityObservableHelper(Code)(Java Doc)

Methods inherited from org.sakaiproject.event.impl.BaseEventTrackingService
public void addLocalObserver(Observer observer)(Code)(Java Doc)
public void addObserver(Observer observer)(Code)(Java Doc)
public void addPriorityObserver(Observer observer)(Code)(Java Doc)
public void deleteObserver(Observer observer)(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public void init()(Code)(Java Doc)
public Event newEvent(String event, String resource, boolean modify)(Code)(Java Doc)
public Event newEvent(String event, String resource, boolean modify, int priority)(Code)(Java Doc)
protected void notifyObservers(Event event, boolean local)(Code)(Java Doc)
public void post(Event event)(Code)(Java Doc)
public void post(Event event, UsageSession session)(Code)(Java Doc)
public void post(Event event, User user)(Code)(Java Doc)
abstract protected void postEvent(Event event)(Code)(Java Doc)
abstract protected SessionManager sessionManager()(Code)(Java Doc)
abstract protected UsageSessionService usageSessionService()(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.