Java Doc for JTimerService.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas_ejb » container » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas_ejb.container 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas_ejb.container.JTimerService

JTimerService
public class JTimerService implements TimerService(Code)
JOnAS Implementation of the TimerService interface (from EJB 2.1) One such object is created the first time a bean calls getTimerService. Basically manages the list of the Timers for that bean.
author:
   Philippe Durieux



Constructor Summary
public  JTimerService(JFactory bf)
    
public  JTimerService(JEntitySwitch es)
    

Method Summary
public  voidcancelAllTimers()
    
public  TimercreateTimer(Date initialExpiration, long intervalDuration, Serializable info)
     Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.
Parameters:
  initialExpiration - The point in time at which the first timerexpiration must occur.
Parameters:
  intervalDuration - The number of milliseconds that must elapsebetween timer expiration notifications.
Parameters:
  info - Application information to be delivered along with the timerexpiration.
public  TimercreateTimer(Date expiration, Serializable info)
     Create a single-action timer that expires at a given point in time.
Parameters:
  expiration - The point in time at which the timer expiration mustoccur.
Parameters:
  info - Application information to be delivered along with the timerexpiration.
public  TimercreateTimer(long initialDuration, long intervalDuration, Serializable info)
     Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.
Parameters:
  initialDuration - The number of milliseconds that must elapse beforethe first timer expiration notification.
Parameters:
  intervalDuration - The number of milliseconds that must elapsebetween timer expiration notifications.
Parameters:
  info - Application information to be delivered along with the timerexpiration.
public  TimercreateTimer(long duration, Serializable info)
     Create a single-action timer that expires after a specified duration.
Parameters:
  duration - The number of milliseconds that must elapse before thetimer expires.
Parameters:
  info - Application information to be delivered along with the timerexpiration.
public  StringgetContainer()
    
public  StringgetEjbName()
    
public  SerializablegetPK()
    
public  TimergetTimerByTime(long initialDuration, long intervalDuration, Serializable info)
    
public  CollectiongetTimers()
     Get all the active timers associated with this bean.
public  TransactionManagergetTransactionManager()
    
public  voidnotify(Timer timer)
    
public  voidremove(Timer timer)
    


Constructor Detail
JTimerService
public JTimerService(JFactory bf)(Code)
constructor used for MDB or Session beans



JTimerService
public JTimerService(JEntitySwitch es)(Code)
constructor used for Entity beans




Method Detail
cancelAllTimers
public void cancelAllTimers()(Code)
cancel all timers (when entity bean is removed)



createTimer
public Timer createTimer(Date initialExpiration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException(Code)
Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.
Parameters:
  initialExpiration - The point in time at which the first timerexpiration must occur.
Parameters:
  intervalDuration - The number of milliseconds that must elapsebetween timer expiration notifications.
Parameters:
  info - Application information to be delivered along with the timerexpiration. This can be null. the newly created Timer.
throws:
  IllegalArgumentException - initialExpiration = 0, orintervalDuration < 0 or initialExpiration.getTime() < 0.
throws:
  IllegalStateException - the instance is in a state that does notallow access to this method.
throws:
  EJBException - If this method could not complete due to asystem-level failure.



createTimer
public Timer createTimer(Date expiration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException(Code)
Create a single-action timer that expires at a given point in time.
Parameters:
  expiration - The point in time at which the timer expiration mustoccur.
Parameters:
  info - Application information to be delivered along with the timerexpiration. This can be null. the newly created Timer.
throws:
  IllegalArgumentException - expiration = 0, or expiration.getTime() <0.
throws:
  IllegalStateException - the instance is in a state that does notallow access to this method.
throws:
  EJBException - If this method could not complete due to asystem-level failure.



createTimer
public Timer createTimer(long initialDuration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException(Code)
Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.
Parameters:
  initialDuration - The number of milliseconds that must elapse beforethe first timer expiration notification.
Parameters:
  intervalDuration - The number of milliseconds that must elapsebetween timer expiration notifications.
Parameters:
  info - Application information to be delivered along with the timerexpiration. This can be null. the newly created Timer.
throws:
  IllegalArgumentException - initialExpiration = 0, orintervalDuration < 0.
throws:
  IllegalStateException - the instance is in a state that does notallow access to this method.
throws:
  EJBException - If this method could not complete due to asystem-level failure.



createTimer
public Timer createTimer(long duration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException(Code)
Create a single-action timer that expires after a specified duration.
Parameters:
  duration - The number of milliseconds that must elapse before thetimer expires.
Parameters:
  info - Application information to be delivered along with the timerexpiration. This can be null. the newly created Timer.
throws:
  IllegalArgumentException - initialExpiration = 0, orintervalDuration < 0.
throws:
  IllegalStateException - the instance is in a state that does notallow access to this method.
throws:
  EJBException - If this method could not complete due to asystem-level failure.



getContainer
public String getContainer()(Code)
the Container File Name



getEjbName
public String getEjbName()(Code)
the EjbName used to retrieve the bean factory



getPK
public Serializable getPK()(Code)
the encoded PK for entity bean timers



getTimerByTime
public Timer getTimerByTime(long initialDuration, long intervalDuration, Serializable info)(Code)
get a Timer from the list



getTimers
public Collection getTimers() throws IllegalStateException, EJBException(Code)
Get all the active timers associated with this bean. A collection of javax.ejb.Timer objects.
throws:
  IllegalStateException - the instance is in a state that does notallow access to this method.
throws:
  EJBException - If this method could not complete due to asystem-level failure.



getTransactionManager
public TransactionManager getTransactionManager()(Code)
the Transaction Manager



notify
public void notify(Timer timer)(Code)
Notify the timer to the listener
Parameters:
  timer - The Timer object that will be notified



remove
public void remove(Timer timer)(Code)
Remove the Timer
Parameters:
  timer - The Timer object that will be removed



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.