Java Doc for TimerMBean.java in  » JMX » mx4j » javax » management » timer » 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 » JMX » mx4j » javax.management.timer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.management.timer.TimerMBean

All known Subclasses:   javax.management.timer.Timer,
TimerMBean
public interface TimerMBean (Code)
Management interface for the Timer class.
version:
   $Revision: 1.6 $




Method Summary
public  IntegeraddNotification(String type, String message, Object userData, Date date)
    
public  IntegeraddNotification(String type, String message, Object userData, Date date, long period)
    
public  IntegeraddNotification(String type, String message, Object userData, Date date, long period, long occurences)
    
public  IntegeraddNotification(String type, String message, Object userData, Date date, long period, long occurences, boolean fixedRate)
     Adds a notification to this Timer.
public  VectorgetAllNotificationIDs()
    
public  DategetDate(Integer id)
    
public  BooleangetFixedRate(Integer id)
    
public  intgetNbNotifications()
    
public  LonggetNbOccurences(Integer id)
     Returns the number of times the notification with the given identifier is delivered.
public  VectorgetNotificationIDs(String type)
    
public  StringgetNotificationMessage(Integer id)
    
public  StringgetNotificationType(Integer id)
    
public  ObjectgetNotificationUserData(Integer id)
    
public  LonggetPeriod(Integer id)
    
public  booleangetSendPastNotifications()
    
public  booleanisActive()
     Returns whether this Timer delivers notifications or not.
public  booleanisEmpty()
     Returns whether this Timer has notifications to deliver.
public  voidremoveAllNotifications()
    
public  voidremoveNotification(Integer id)
    
public  voidremoveNotifications(String type)
    
public  voidsetSendPastNotifications(boolean value)
    
public  voidstart()
     Starts this Timer.
public  voidstop()
     Stops this Timer.



Method Detail
addNotification
public Integer addNotification(String type, String message, Object userData, Date date) throws IllegalArgumentException(Code)
Shortcut for TimerMBean.addNotification(String,String,Object,Date,long,long,boolean) addNotification(type, message, userData, date, 0L, 0L, false)



addNotification
public Integer addNotification(String type, String message, Object userData, Date date, long period) throws IllegalArgumentException(Code)
Shortcut for TimerMBean.addNotification(String,String,Object,Date,long,long,boolean) addNotification(type, message, userData, date, period, 0L, false)



addNotification
public Integer addNotification(String type, String message, Object userData, Date date, long period, long occurences) throws IllegalArgumentException(Code)
Shortcut for TimerMBean.addNotification(String,String,Object,Date,long,long,boolean) addNotification(type, message, userData, date, period, occurences, false)



addNotification
public Integer addNotification(String type, String message, Object userData, Date date, long period, long occurences, boolean fixedRate) throws IllegalArgumentException(Code)
Adds a notification to this Timer.
If the date is before the current date, and the notification is one-shot, it will be delivered immediately.
Parameters:
  type - The type of the notification
Parameters:
  message - The message of the notification
Parameters:
  userData - The custom user data of the notification
Parameters:
  date - The date at which the notification should be delivered the first time
Parameters:
  period - The period of time between notifications delivers
Parameters:
  occurences - The number of occurrences the notification should be delivered
Parameters:
  fixedRate - True if the periodic notification should be sent at fixed rate, false if should be sent at fixed delay The identifier for the notification
throws:
  IllegalArgumentException - If some of the parameters has illegal value



getAllNotificationIDs
public Vector getAllNotificationIDs()(Code)
Returns all identifiers for notifications added to this Timer



getDate
public Date getDate(Integer id)(Code)
Returns the date for the notification with the given identifier
Parameters:
  id - The notification identifier



getFixedRate
public Boolean getFixedRate(Integer id)(Code)
Returns whether the periodic notification with the given identifier is delivered at fixed rate or not
Parameters:
  id - The notification identifier



getNbNotifications
public int getNbNotifications()(Code)
Returns the number of notifications added to this Timer



getNbOccurences
public Long getNbOccurences(Integer id)(Code)
Returns the number of times the notification with the given identifier is delivered.
Parameters:
  id - The notification identifier



getNotificationIDs
public Vector getNotificationIDs(String type)(Code)
Returns the identifiers of the notifications with the given type
Parameters:
  type - The notification type



getNotificationMessage
public String getNotificationMessage(Integer id)(Code)
Returns the message of the notification with the given identifier
Parameters:
  id - The notification identifier



getNotificationType
public String getNotificationType(Integer id)(Code)
Returns the type of the notification with the given identifier
Parameters:
  id - The notification identifier



getNotificationUserData
public Object getNotificationUserData(Integer id)(Code)
Returns the user data of the notification with the given identifier
Parameters:
  id - The notification identifier



getPeriod
public Long getPeriod(Integer id)(Code)
Returns the period between the deliver of two notifications for the notification with the given identifier
Parameters:
  id - The notification identifier



getSendPastNotifications
public boolean getSendPastNotifications()(Code)
Returns whether this Timer delivers notifications that occurred while it has been stopped
See Also:   TimerMBean.setSendPastNotifications



isActive
public boolean isActive()(Code)
Returns whether this Timer delivers notifications or not.
See Also:   TimerMBean.start
See Also:   TimerMBean.stop



isEmpty
public boolean isEmpty()(Code)
Returns whether this Timer has notifications to deliver.



removeAllNotifications
public void removeAllNotifications()(Code)
Removes all notifications from this Timer



removeNotification
public void removeNotification(Integer id) throws InstanceNotFoundException(Code)
Removes the notification with the given identifier
Parameters:
  id - The identifier of the notification to be removed
throws:
  InstanceNotFoundException - If no notification with the given identifier is present



removeNotifications
public void removeNotifications(String type) throws InstanceNotFoundException(Code)
Removes all notifications with the given type
Parameters:
  type - The type of the notifications to be removed
throws:
  InstanceNotFoundException - If no notifications with the given type are present



setSendPastNotifications
public void setSendPastNotifications(boolean value)(Code)
Sets whether this Timer delivers notifications that occurred while it has been stopped
See Also:   TimerMBean.getSendPastNotifications



start
public void start()(Code)
Starts this Timer.
Only when a Timer is started it delivers notifications. If TimerMBean.getSendPastNotifications returns true, this Timer sends notifications that were waiting to be delivered, otherwise it updates the notification times to the next deliver.
See Also:   TimerMBean.stop



stop
public void stop()(Code)
Stops this Timer.

See Also:   TimerMBean.start



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.