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


org.tanukisoftware.wrapper.jmx.WrapperManagerMBean

All known Subclasses:   org.tanukisoftware.wrapper.jmx.WrapperManager,
WrapperManagerMBean
public interface WrapperManagerMBean (Code)

author:
   Leif Mortenson




Method Summary
 StringgetBuildTime()
     Obtain the build time of Wrapper.
 booleangetHasShutdownHookBeenTriggered()
     Returns true if the ShutdownHook for the JVM has already been triggered.
 intgetJVMId()
     Returns the Id of the current JVM.
 intgetJavaPID()
     Returns the PID of the Java process.
 StringgetVersion()
     Obtain the current version of Wrapper.
 intgetWrapperPID()
     Returns the PID of the Wrapper process.
 booleanisControlledByNativeWrapper()
     Returns true if the JVM was launched by the Wrapper application.
 booleanisDebugEnabled()
     Returns true if the wrapper.debug property, or any of the logging channels are set to DEBUG in the wrapper configuration file.
 booleanisLaunchedAsService()
     Returns true if the Wrapper was launched as an NT service on Windows or as a daemon process on UNIX platforms.
 voidrequestThreadDump()
     Requests that the current JVM process request a thread dump.
 voidrestart()
     Tells the native wrapper that the JVM wants to restart, then informs all listeners that the JVM is about to shutdown before killing the JVM.
 voidsetConsoleTitle(String title)
     Sets the title of the console in which the Wrapper is running.
 voidstop(int exitCode)
     Tells the native wrapper that the JVM wants to shut down, then informs all listeners that the JVM is about to shutdown before killing the JVM.



Method Detail
getBuildTime
String getBuildTime()(Code)
Obtain the build time of Wrapper. The time that the Wrapper was built.



getHasShutdownHookBeenTriggered
boolean getHasShutdownHookBeenTriggered()(Code)
Returns true if the ShutdownHook for the JVM has already been triggered. Some code needs to know whether or not the system is shutting down. True if the ShutdownHook for the JVM has already been triggered.



getJVMId
int getJVMId()(Code)
Returns the Id of the current JVM. JVM Ids increment from 1 each time the wrapper restarts a new one. The Id of the current JVM.



getJavaPID
int getJavaPID()(Code)
Returns the PID of the Java process. A PID of 0 will be returned if the native library has not been initialized. This value can also be obtained using the 'wrapper.java.pid' system property. The PID of the Java process.



getVersion
String getVersion()(Code)
Obtain the current version of Wrapper. The version of the Wrapper.



getWrapperPID
int getWrapperPID()(Code)
Returns the PID of the Wrapper process. A PID of 0 will be returned if the JVM was launched standalone. This value can also be obtained using the 'wrapper.pid' system property. The PID of the Wrpper process.



isControlledByNativeWrapper
boolean isControlledByNativeWrapper()(Code)
Returns true if the JVM was launched by the Wrapper application. False if the JVM was launched manually without the Wrapper controlling it. True if the current JVM was launched by the Wrapper.



isDebugEnabled
boolean isDebugEnabled()(Code)
Returns true if the wrapper.debug property, or any of the logging channels are set to DEBUG in the wrapper configuration file. Useful for deciding whether or not to output certain information to the console. True if the Wrapper is logging any Debug level output.



isLaunchedAsService
boolean isLaunchedAsService()(Code)
Returns true if the Wrapper was launched as an NT service on Windows or as a daemon process on UNIX platforms. False if launched as a console. This can be useful if you wish to display a user interface when in Console mode. On UNIX platforms, this is not as useful because an X display may not be visible even if launched in a console. True if the Wrapper is running as an NT service or daemonprocess.



requestThreadDump
void requestThreadDump()(Code)
Requests that the current JVM process request a thread dump. This is the same as pressing CTRL-BREAK (under Windows) or CTRL-\ (under Unix) in the the console in which Java is running. This method does nothing if the native library is not loaded.



restart
void restart()(Code)
Tells the native wrapper that the JVM wants to restart, then informs all listeners that the JVM is about to shutdown before killing the JVM.

The restart is actually performed in a background thread allowing JMX a chance to respond to the client.




setConsoleTitle
void setConsoleTitle(String title)(Code)
Sets the title of the console in which the Wrapper is running. This is currently only supported on Windows platforms.

As an alternative, it is also possible to set the console title from within the wrapper.conf file using the wrapper.console.title property.
Parameters:
  title - The new title. The specified string will be encodedto a byte array using the default encoding for thecurrent platform.




stop
void stop(int exitCode)(Code)
Tells the native wrapper that the JVM wants to shut down, then informs all listeners that the JVM is about to shutdown before killing the JVM.

The stop is actually performed in a background thread allowing JMX a chance to respond to the client.
Parameters:
  exitCode - The exit code that the Wrapper will return when it exits.




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