Java Doc for WrapperControlEvent.java in  » Collaboration » Java-Service-Wrapper » org » tanukisoftware » wrapper » event » 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 » Collaboration » Java Service Wrapper » org.tanukisoftware.wrapper.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.tanukisoftware.wrapper.event.WrapperEvent
   org.tanukisoftware.wrapper.event.WrapperControlEvent

The kill TERM signal was received (UNIX).
WRAPPER_CTRL_HUP_EVENT
The kill HUP signal was received (UNIX).

author:
   Leif Mortenson
WrapperControlEvent
public class WrapperControlEvent extends WrapperEvent (Code)
WrapperControlEvent are used to notify the listener whenever the native wrapper code traps a system control signal against the Java process. It is up to the listener to take any actions necessary.

The Wrapper will send this event to any registered listeners first, then it will pass the control code to the WrapperListener.controlEvent method. If the consume method is called, it will still be passed to other WrapperEventListeners, but will not be passed to the WrapperListener.controlEvent method. Other WrapperEventListeners should check the isConsumed method to decide whether or not the even has already been handled.

If the wrapper.ignore_signals property is set to true then the event will still be fired, but its isConsumed() method will return true initially.

Possible values are:

WrapperManager.WRAPPER_CTRL_C_EVENT
The user pressed CTRL-C in a command windown (Windows or UNIX). Or the kill INT signal was received (UNIX).
WRAPPER_CTRL_CLOSE_EVENT
The user is trying to close the console in which the Wrapper is running (Windows).
WRAPPER_CTRL_LOGOFF_EVENT
The user logged off (Windows).
WRAPPER_CTRL_SHUTDOWN_EVENT
The system is being shutdown (Windows).
WRAPPER_CTRL_TERM_EVENT



Constructor Summary
public  WrapperControlEvent(int controlEvent, String controlEventName)
     Creates a new WrapperControlEvent.

Method Summary
public  voidconsume()
     Mark the event as consumed.
public  intgetControlEvent()
     Returns the system control event.
public  StringgetControlEventName()
     Returns the name of the control event.
public  longgetFlags()
     Returns a set of event flags for which the event should be fired.
public  booleanisConsumed()
     Returns true if the event has been consumed.
public  StringtoString()
     Returns a string representation of the event.


Constructor Detail
WrapperControlEvent
public WrapperControlEvent(int controlEvent, String controlEventName)(Code)
Creates a new WrapperControlEvent.
Parameters:
  controlEvent - Service control event.
Parameters:
  controlEventName - The name of the event.




Method Detail
consume
public void consume()(Code)
Mark the event as consumed. This should be done if the event has been handled.

On Windows, some events are sent both to the JVM and Wrapper processes. Event if the CTRL-C event is ignored within the JVM, the Wrapper process may still initiate a shutdown.




getControlEvent
public int getControlEvent()(Code)
Returns the system control event.

Possible values are: WrapperManager.WRAPPER_CTRL_C_EVENT, WRAPPER_CTRL_CLOSE_EVENT, WRAPPER_CTRL_LOGOFF_EVENT, WRAPPER_CTRL_SHUTDOWN_EVENT, WRAPPER_CTRL_TERM_EVENT, or WRAPPER_CTRL_HUP_EVENT. The system control event.




getControlEventName
public String getControlEventName()(Code)
Returns the name of the control event. The name of the control event.



getFlags
public long getFlags()(Code)
Returns a set of event flags for which the event should be fired. This value is compared with the mask supplied when when a WrapperEventListener is registered to decide which listeners should receive the event.

If a subclassed, the return value of the super class should usually be ORed with any additional flags. a set of event flags.




isConsumed
public boolean isConsumed()(Code)
Returns true if the event has been consumed. True if the event has been consumed.



toString
public String toString()(Code)
Returns a string representation of the event. A string representation of the event.



Methods inherited from org.tanukisoftware.wrapper.event.WrapperEvent
public long getFlags()(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.