Java Doc for ServerLifecycleListener.java in  » Sevlet-Container » tomcat-catalina » org » apache » catalina » mbeans » 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 » Sevlet Container » tomcat catalina » org.apache.catalina.mbeans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.mbeans.ServerLifecycleListener

ServerLifecycleListener
public class ServerLifecycleListener implements ContainerListener,LifecycleListener,PropertyChangeListener(Code)
Implementation of LifecycleListener that instantiates the set of MBeans associated with the components of a running instance of Catalina.
author:
   Craig R. McClanahan
author:
   Amy Roh
version:
   $Revision: 1.13 $ $Date: 2004/02/27 14:58:45 $


Field Summary
protected  Stringadaptor
     MX4J adaptor name.
protected  StringadaptorHost
    
protected  intadaptorPort
    
protected  intdebug
     The debugging detail level for this component.
protected  Stringdescriptors
     Semicolon separated list of paths containing MBean desciptor resources.


Method Summary
public  voidcontainerEvent(ContainerEvent event)
     Handle a ContainerEvent from one of the Containers we are interested in.
protected  voidcreateMBeans()
     Create the MBeans that correspond to every existing node of our tree.
protected  voidcreateMBeans(Connector connector)
     Create the MBeans for the specified Connector and its nested components.
protected  voidcreateMBeans(Context context)
     Create the MBeans for the specified Context and its nested components.
protected  voidcreateMBeans(ContextEnvironment environment)
     Create the MBeans for the specified ContextEnvironment entry.
protected  voidcreateMBeans(ContextResource resource)
     Create the MBeans for the specified ContextResource entry.
protected  voidcreateMBeans(ContextResourceLink resourceLink)
     Create the MBeans for the specified ContextResourceLink entry.
protected  voidcreateMBeans(DefaultContext dcontext)
     Create the MBeans for the specified DefaultContext and its nested components.
protected  voidcreateMBeans(Engine engine)
     Create the MBeans for the specified Engine and its nested components.
protected  voidcreateMBeans(Host host)
     Create the MBeans for the specified Host and its nested components.
protected  voidcreateMBeans(MBeanFactory factory)
     Create the MBeans for MBeanFactory.
protected  voidcreateMBeans(NamingResources resources)
     Create the MBeans for the specified NamingResources and its nested components.
protected  voidcreateMBeans(Server server)
     Create the MBeans for the specified Server and its nested components.
protected  voidcreateMBeans(Service service)
     Create the MBeans for the specified Service and its nested components.
protected  voiddestroyMBeans(Connector connector, Service service)
     Deregister the MBeans for the specified Connector and its nested components.
protected  voiddestroyMBeans(Context context)
     Deregister the MBeans for the specified Context and its nested components.
protected  voiddestroyMBeans(ContextEnvironment environment)
     Deregister the MBeans for the specified ContextEnvironment entry.
protected  voiddestroyMBeans(ContextResource resource)
     Deregister the MBeans for the specified ContextResource entry.
protected  voiddestroyMBeans(ContextResourceLink resourceLink)
     Deregister the MBeans for the specified ContextResourceLink entry.
protected  voiddestroyMBeans(DefaultContext dcontext)
     Deregister the MBeans for the specified DefaultContext and its nested components.
protected  voiddestroyMBeans(Engine engine)
     Deregister the MBeans for the specified Engine and its nested components.
protected  voiddestroyMBeans(Host host)
     Deregister the MBeans for the specified Host and its nested components.
protected  voiddestroyMBeans(NamingResources resources)
     Deregister the MBeans for the specified NamingResources and its nested components.
protected  voiddestroyMBeans(Server server)
     Deregister the MBeans for the specified Server and its related components.
protected  voiddestroyMBeans(Service service)
     Deregister the MBeans for the specified Service and its nested components.
public  StringgetAdaptor()
    
public  StringgetAdaptorHost()
    
public  intgetAdaptorPort()
    
public  intgetDebug()
    
public  StringgetDescriptors()
    
public  voidlifecycleEvent(LifecycleEvent event)
     Primary entry point for startup and shutdown events.
protected  voidloadMBeanDescriptors()
     Load additional MBean descriptor resources.
protected  voidlog(String message)
     Log a message.
protected  voidlog(String message, Throwable throwable)
     Log a message and associated exception.
protected  voidprocessContainerAddChild(Container parent, Container child)
     Process the addition of a new child Container to a parent Container.
protected  voidprocessContainerPropertyChange(Container container, String propertyName, Object oldValue, Object newValue)
     Process a property change event on a Container.
protected  voidprocessContainerRemoveChild(Container parent, Container child)
     Process the removal of a child Container from a parent Container.
protected  voidprocessDefaultContextPropertyChange(DefaultContext defaultContext, String propertyName, Object oldValue, Object newValue)
     Process a property change event on a DefaultContext.
protected  voidprocessNamingResourcesPropertyChange(NamingResources resources, String propertyName, Object oldValue, Object newValue)
     Process a property change event on a NamingResources.
protected  voidprocessServerPropertyChange(Server server, String propertyName, Object oldValue, Object newValue)
     Process a property change event on a Server.
protected  voidprocessServicePropertyChange(Service service, String propertyName, Object oldValue, Object newValue)
     Process a property change event on a Service.
public  voidpropertyChange(PropertyChangeEvent event)
     Handle a PropertyChangeEvent from one of the Containers we are interested in.
public  voidsetAdaptor(String adaptor)
    
public  voidsetAdaptorHost(String adaptorHost)
    
public  voidsetAdaptorPort(int adaptorPort)
    
public  voidsetDebug(int debug)
    
public  voidsetDescriptors(String descriptors)
    

Field Detail
adaptor
protected String adaptor(Code)
MX4J adaptor name.



adaptorHost
protected String adaptorHost(Code)
MX4J jrmp/iiop listen host



adaptorPort
protected int adaptorPort(Code)
MX4J jrmp/iiop listen port



debug
protected int debug(Code)
The debugging detail level for this component.



descriptors
protected String descriptors(Code)
Semicolon separated list of paths containing MBean desciptor resources.





Method Detail
containerEvent
public void containerEvent(ContainerEvent event)(Code)
Handle a ContainerEvent from one of the Containers we are interested in.
Parameters:
  event - The event that has occurred



createMBeans
protected void createMBeans()(Code)
Create the MBeans that correspond to every existing node of our tree.



createMBeans
protected void createMBeans(Connector connector) throws Exception(Code)
Create the MBeans for the specified Connector and its nested components.
Parameters:
  connector - Connector for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(Context context) throws Exception(Code)
Create the MBeans for the specified Context and its nested components.
Parameters:
  context - Context for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(ContextEnvironment environment) throws Exception(Code)
Create the MBeans for the specified ContextEnvironment entry.
Parameters:
  environment - ContextEnvironment for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(ContextResource resource) throws Exception(Code)
Create the MBeans for the specified ContextResource entry.
Parameters:
  resource - ContextResource for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(ContextResourceLink resourceLink) throws Exception(Code)
Create the MBeans for the specified ContextResourceLink entry.
Parameters:
  resourceLink - ContextResourceLink for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(DefaultContext dcontext) throws Exception(Code)
Create the MBeans for the specified DefaultContext and its nested components.
Parameters:
  dcontext - DefaultContext for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(Engine engine) throws Exception(Code)
Create the MBeans for the specified Engine and its nested components.
Parameters:
  engine - Engine for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(Host host) throws Exception(Code)
Create the MBeans for the specified Host and its nested components.
Parameters:
  host - Host for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(MBeanFactory factory) throws Exception(Code)
Create the MBeans for MBeanFactory.
Parameters:
  factory - MBeanFactory for which to create MBean
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(NamingResources resources) throws Exception(Code)
Create the MBeans for the specified NamingResources and its nested components.
Parameters:
  resources - NamingResources for which to create MBeans



createMBeans
protected void createMBeans(Server server) throws Exception(Code)
Create the MBeans for the specified Server and its nested components.
Parameters:
  server - Server for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



createMBeans
protected void createMBeans(Service service) throws Exception(Code)
Create the MBeans for the specified Service and its nested components.
Parameters:
  service - Service for which to create MBeans
exception:
  Exception - if an exception is thrown during MBean creation



destroyMBeans
protected void destroyMBeans(Connector connector, Service service) throws Exception(Code)
Deregister the MBeans for the specified Connector and its nested components.
Parameters:
  connector - Connector for which to deregister MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(Context context) throws Exception(Code)
Deregister the MBeans for the specified Context and its nested components.
Parameters:
  context - Context for which to deregister MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(ContextEnvironment environment) throws Exception(Code)
Deregister the MBeans for the specified ContextEnvironment entry.
Parameters:
  environment - ContextEnvironment for which to destroy MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(ContextResource resource) throws Exception(Code)
Deregister the MBeans for the specified ContextResource entry.
Parameters:
  resource - ContextResource for which to destroy MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(ContextResourceLink resourceLink) throws Exception(Code)
Deregister the MBeans for the specified ContextResourceLink entry.
Parameters:
  resourceLink - ContextResourceLink for which to destroy MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(DefaultContext dcontext) throws Exception(Code)
Deregister the MBeans for the specified DefaultContext and its nested components.
Parameters:
  dcontext - DefaultContext for which to deregister MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(Engine engine) throws Exception(Code)
Deregister the MBeans for the specified Engine and its nested components.
Parameters:
  engine - Engine for which to destroy MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(Host host) throws Exception(Code)
Deregister the MBeans for the specified Host and its nested components.
Parameters:
  host - Host for which to destroy MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(NamingResources resources) throws Exception(Code)
Deregister the MBeans for the specified NamingResources and its nested components.
Parameters:
  resources - NamingResources for which to destroy MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(Server server) throws Exception(Code)
Deregister the MBeans for the specified Server and its related components.
Parameters:
  server - Server for which to destroy MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



destroyMBeans
protected void destroyMBeans(Service service) throws Exception(Code)
Deregister the MBeans for the specified Service and its nested components.
Parameters:
  service - Service for which to destroy MBeans
exception:
  Exception - if an exception is thrown during MBean destruction



getAdaptor
public String getAdaptor()(Code)



getAdaptorHost
public String getAdaptorHost()(Code)



getAdaptorPort
public int getAdaptorPort()(Code)



getDebug
public int getDebug()(Code)



getDescriptors
public String getDescriptors()(Code)



lifecycleEvent
public void lifecycleEvent(LifecycleEvent event)(Code)
Primary entry point for startup and shutdown events.
Parameters:
  event - The event that has occurred



loadMBeanDescriptors
protected void loadMBeanDescriptors()(Code)
Load additional MBean descriptor resources.



log
protected void log(String message)(Code)
Log a message.
Parameters:
  message - The message to be logged



log
protected void log(String message, Throwable throwable)(Code)
Log a message and associated exception.
Parameters:
  message - The message to be logged
Parameters:
  throwable - The exception to be logged



processContainerAddChild
protected void processContainerAddChild(Container parent, Container child)(Code)
Process the addition of a new child Container to a parent Container.
Parameters:
  parent - Parent container
Parameters:
  child - Child container



processContainerPropertyChange
protected void processContainerPropertyChange(Container container, String propertyName, Object oldValue, Object newValue) throws Exception(Code)
Process a property change event on a Container.
Parameters:
  container - The container on which this event occurred
Parameters:
  propertyName - The name of the property that changed
Parameters:
  oldValue - The previous value (may be null)
Parameters:
  newValue - The new value (may be null)
exception:
  Exception - if an exception is thrown



processContainerRemoveChild
protected void processContainerRemoveChild(Container parent, Container child)(Code)
Process the removal of a child Container from a parent Container.
Parameters:
  parent - Parent container
Parameters:
  child - Child container



processDefaultContextPropertyChange
protected void processDefaultContextPropertyChange(DefaultContext defaultContext, String propertyName, Object oldValue, Object newValue) throws Exception(Code)
Process a property change event on a DefaultContext.
Parameters:
  defaultContext - The DefaultContext on which this event occurred
Parameters:
  propertyName - The name of the property that changed
Parameters:
  oldValue - The previous value (may be null)
Parameters:
  newValue - The new value (may be null)
exception:
  Exception - if an exception is thrown



processNamingResourcesPropertyChange
protected void processNamingResourcesPropertyChange(NamingResources resources, String propertyName, Object oldValue, Object newValue) throws Exception(Code)
Process a property change event on a NamingResources.
Parameters:
  resources - The global naming resources on which thisevent occurred
Parameters:
  propertyName - The name of the property that changed
Parameters:
  oldValue - The previous value (may be null)
Parameters:
  newValue - The new value (may be null)
exception:
  Exception - if an exception is thrown



processServerPropertyChange
protected void processServerPropertyChange(Server server, String propertyName, Object oldValue, Object newValue) throws Exception(Code)
Process a property change event on a Server.
Parameters:
  server - The server on which this event occurred
Parameters:
  propertyName - The name of the property that changed
Parameters:
  oldValue - The previous value (may be null)
Parameters:
  newValue - The new value (may be null)
exception:
  Exception - if an exception is thrown



processServicePropertyChange
protected void processServicePropertyChange(Service service, String propertyName, Object oldValue, Object newValue) throws Exception(Code)
Process a property change event on a Service.
Parameters:
  service - The service on which this event occurred
Parameters:
  propertyName - The name of the property that changed
Parameters:
  oldValue - The previous value (may be null)
Parameters:
  newValue - The new value (may be null)
exception:
  Exception - if an exception is thrown



propertyChange
public void propertyChange(PropertyChangeEvent event)(Code)
Handle a PropertyChangeEvent from one of the Containers we are interested in.
Parameters:
  event - The event that has occurred



setAdaptor
public void setAdaptor(String adaptor)(Code)



setAdaptorHost
public void setAdaptorHost(String adaptorHost)(Code)



setAdaptorPort
public void setAdaptorPort(int adaptorPort)(Code)



setDebug
public void setDebug(int debug)(Code)



setDescriptors
public void setDescriptors(String descriptors)(Code)



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.