Source Code Cross Referenced for WorkerThreadCallback.java in  » Groupware » hipergate » com » knowgate » scheduler » 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 » Groupware » hipergate » com.knowgate.scheduler 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        package com.knowgate.scheduler;
02:
03:        /**
04:         * <p>Get information about what is happening inside each WorkerThread</p>
05:         * This an abstract base class than must be inherited in order to provide the
06:         * implementation for the call() method.
07:         * @author Sergio Montoro Ten
08:         * @version 1.0
09:         */
10:
11:        public abstract class WorkerThreadCallback {
12:            private String sName;
13:
14:            /**
15:             * @param sCallbackName Each callback instance must have a unique name
16:             */
17:            public WorkerThreadCallback(String sCallbackName) {
18:                sName = sCallbackName;
19:            }
20:
21:            /**
22:             * @return Callback instance name
23:             */
24:            public String name() {
25:                return sName;
26:            }
27:
28:            /**
29:             * <p>Provide information about thread execution milestones</p>
30:             * @param sThreadId String identifying the caller WorkerThread
31:             * @param iOpCode Operation code (see static constants)
32:             * @param sMessage Descriptive message
33:             * @param oXcpt Exception thrown by WorkerThread.<br>
34:             * This parameter is always null unless iOpCode is WT_EXCEPTION
35:             * @param oParam Object related to operation.<br>
36:             * Its class depends on the operation performed.<br>
37:             */
38:            public abstract void call(String sThreadId, int iOpCode,
39:                    String sMessage, Exception oXcpt, Object oParam);
40:
41:            /**
42:             * <p>Thread throwed and Exception</p>
43:             * <p>The throwed Exception will be in the 4th parameter of call() method</p>
44:             */
45:            public static final int WT_EXCEPTION = -1;
46:
47:            /**
48:             * <p>Thread instantiated a Job subclass</p>
49:             * <p>A reference to the instantiated Job will be in the 5th parameter of call() method</p>
50:             */
51:            public static final int WT_JOB_INSTANTIATE = 1;
52:
53:            /**
54:             * <p>Thread finished a Job execution</p>
55:             * <p>A reference to the finished Job will be in the 5th parameter of call() method</p>
56:             */
57:            public static final int WT_JOB_FINISH = 2;
58:
59:            /**
60:             * <p>AtomConsumer for thread found no more pending Atoms</p>
61:             * <p>A reference to the AtomConsumer will be in the 5th parameter of call() method</p>
62:             */
63:            public static final int WT_ATOMCONSUMER_NOMORE = 3;
64:
65:            /**
66:             * <p>Thread just got an Atom for its inmediate consumption.</p>
67:             * <p>Called before Atom is consumed.</p>
68:             * <p>A reference to the Atom will be in the 5th parameter of call() method</p>
69:             */
70:            public static final int WT_ATOM_GET = 4;
71:
72:            /**
73:             * <p>Thread consumed an Atom.</p>
74:             * <p>Called after Atom is consumed.</p>
75:             * <p>A reference to the Atom will be in the 5th parameter of call() method</p>
76:             */
77:            public static final int WT_ATOM_CONSUME = 5;
78:
79:        } // WorkerThreadCallback
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.