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


java.lang.Object
   org.apache.catalina.startup.HostConfig

HostConfig
public class HostConfig implements LifecycleListener(Code)
Startup event listener for a Host that configures the properties of that Host, and the associated defined contexts.
author:
   Craig R. McClanahan
author:
   Remy Maucherat
version:
   $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Inner Class :protected class DeployedApplication

Field Summary
protected  FileappBase
     App base.
protected  FileconfigBase
     Config base.
protected  StringconfigClass
     The Java class name of the Context configuration class we should use.
protected  StringcontextClass
     The Java class name of the Context implementation we should use.
protected  booleandeployXML
    
protected  HashMapdeployed
     Map of deployed applications.
protected static  Digesterdigester
     The Digester instance used to parse context descriptors.
protected  Hosthost
     The Host we are associated with.
protected static  org.apache.juli.logging.Loglog
    
protected  ObjectNameoname
     The JMX ObjectName of this component.
protected  ArrayListserviced
     List of applications which are being serviced, and shouldn't be deployed/undeployed/redeployed at the moment.
final protected static  StringManagersm
     The string resources for this package.
protected  booleanunpackWARs
    
protected  booleanxmlNamespaceAware
     Attribute value used to turn on/off XML namespace awarenes.
protected  booleanxmlValidation
    


Method Summary
public synchronized  voidaddServiced(String name)
     Add a serviced application to the list.
protected  voidaddWatchedResources(DeployedApplication app, String docBase, Context context)
     Add watched resources to the specified Context.
protected  FileappBase()
     Return a File object representing the "application root" directory for our associated Host.
protected  voidcheck()
     Check status of all webapps.
public  voidcheck(String name)
     Check status of a specific webapp, for use with stuff like management webapps.
protected synchronized  voidcheckResources(DeployedApplication app)
     Check resources for redeployment and reloading.
protected  FileconfigBase()
     Return a File object representing the "configuration root" directory for our associated Host.
protected static  DigestercreateDigester()
     Create the digester which will be used to parse context config files.
protected  voiddeployApps()
     Deploy applications for any directories or WAR files that are found in our "application root" directory.
protected  voiddeployApps(String name)
     Deploy applications for any directories or WAR files that are found in our "application root" directory.
protected  voiddeployDescriptor(String contextPath, File contextXml, String file)
    
protected  voiddeployDescriptors(File configBase, String[] files)
     Deploy XML context descriptors.
protected  voiddeployDirectories(File appBase, String[] files)
     Deploy directories.
protected  voiddeployDirectory(String contextPath, File dir, String file)
    
protected  voiddeployWAR(String contextPath, File dir, String file)
    
protected  voiddeployWARs(File appBase, String[] files)
     Deploy WAR files.
protected  booleandeploymentExists(String contextPath)
     Check if a webapp is already deployed in this host.
public  StringgetConfigBaseName()
     Get the name of the configBase.
public  StringgetConfigClass()
     Return the Context configuration class name.
protected  StringgetConfigFile(String path)
     Given a context path, get the config file name.
public  StringgetContextClass()
     Return the Context implementation class name.
public  longgetDeploymentTime(String name)
     Get the instant where an application was deployed.
protected  StringgetDocBase(String path)
     Given a context path, get the config file name.
public  booleangetXmlNamespaceAware()
     Get the server.xml attribute's xmlNamespaceAware.
public  booleangetXmlValidation()
     Get the server.xml attribute's xmlValidation.
public  booleanisDeployXML()
     Return the deploy XML config file flag for this component.
public  booleanisDeployed(String name)
     Has the specified application been deployed? Note applications defined in server.xml will not have been deployed.
public synchronized  booleanisServiced(String name)
    
public  booleanisUnpackWARs()
     Return the unpack WARs flag.
public  voidlifecycleEvent(LifecycleEvent event)
     Process the START event for an associated Host.
public  voidmanageApp(Context context)
     Add a new Context to be managed by us.
public synchronized  voidremoveServiced(String name)
     Removed a serviced application from the list.
public  voidsetConfigClass(String configClass)
     Set the Context configuration class name.
public  voidsetContextClass(String contextClass)
     Set the Context implementation class name.
public  voidsetDeployXML(boolean deployXML)
     Set the deploy XML config file flag for this component.
public  voidsetUnpackWARs(boolean unpackWARs)
     Set the unpack WARs flag.
public  voidsetXmlNamespaceAware(boolean xmlNamespaceAware)
     Set the namespace aware feature of the XML parser used when parsing xml instances.
public  voidsetXmlValidation(boolean xmlValidation)
     Set the validation feature of the XML parser used when parsing xml instances.
public  voidstart()
     Process a "start" event for this Host.
public  voidstop()
     Process a "stop" event for this Host.
protected  voidundeployApps()
     Undeploy all deployed applications.
public  voidunmanageApp(String contextPath)
     Remove a webapp from our control.

Field Detail
appBase
protected File appBase(Code)
App base.



configBase
protected File configBase(Code)
Config base.



configClass
protected String configClass(Code)
The Java class name of the Context configuration class we should use.



contextClass
protected String contextClass(Code)
The Java class name of the Context implementation we should use.



deployXML
protected boolean deployXML(Code)
Should we deploy XML Context config files?



deployed
protected HashMap deployed(Code)
Map of deployed applications.



digester
protected static Digester digester(Code)
The Digester instance used to parse context descriptors.



host
protected Host host(Code)
The Host we are associated with.



log
protected static org.apache.juli.logging.Log log(Code)



oname
protected ObjectName oname(Code)
The JMX ObjectName of this component.



serviced
protected ArrayList serviced(Code)
List of applications which are being serviced, and shouldn't be deployed/undeployed/redeployed at the moment.



sm
final protected static StringManager sm(Code)
The string resources for this package.



unpackWARs
protected boolean unpackWARs(Code)
Should we unpack WAR files when auto-deploying applications in the appBase directory?



xmlNamespaceAware
protected boolean xmlNamespaceAware(Code)
Attribute value used to turn on/off XML namespace awarenes.



xmlValidation
protected boolean xmlValidation(Code)
Attribute value used to turn on/off XML validation





Method Detail
addServiced
public synchronized void addServiced(String name)(Code)
Add a serviced application to the list.



addWatchedResources
protected void addWatchedResources(DeployedApplication app, String docBase, Context context)(Code)
Add watched resources to the specified Context.
Parameters:
  app - HostConfig deployed app
Parameters:
  docBase - web app docBase
Parameters:
  context - web application context



appBase
protected File appBase()(Code)
Return a File object representing the "application root" directory for our associated Host.



check
protected void check()(Code)
Check status of all webapps.



check
public void check(String name)(Code)
Check status of a specific webapp, for use with stuff like management webapps.



checkResources
protected synchronized void checkResources(DeployedApplication app)(Code)
Check resources for redeployment and reloading.



configBase
protected File configBase()(Code)
Return a File object representing the "configuration root" directory for our associated Host.



createDigester
protected static Digester createDigester()(Code)
Create the digester which will be used to parse context config files.



deployApps
protected void deployApps()(Code)
Deploy applications for any directories or WAR files that are found in our "application root" directory.



deployApps
protected void deployApps(String name)(Code)
Deploy applications for any directories or WAR files that are found in our "application root" directory.



deployDescriptor
protected void deployDescriptor(String contextPath, File contextXml, String file)(Code)

Parameters:
  contextPath -
Parameters:
  contextXml -
Parameters:
  file -



deployDescriptors
protected void deployDescriptors(File configBase, String[] files)(Code)
Deploy XML context descriptors.



deployDirectories
protected void deployDirectories(File appBase, String[] files)(Code)
Deploy directories.



deployDirectory
protected void deployDirectory(String contextPath, File dir, String file)(Code)

Parameters:
  contextPath -
Parameters:
  dir -
Parameters:
  file -



deployWAR
protected void deployWAR(String contextPath, File dir, String file)(Code)

Parameters:
  contextPath -
Parameters:
  dir -
Parameters:
  file -



deployWARs
protected void deployWARs(File appBase, String[] files)(Code)
Deploy WAR files.



deploymentExists
protected boolean deploymentExists(String contextPath)(Code)
Check if a webapp is already deployed in this host.
Parameters:
  contextPath - of the context which will be checked



getConfigBaseName
public String getConfigBaseName()(Code)
Get the name of the configBase. For use with JMX management.



getConfigClass
public String getConfigClass()(Code)
Return the Context configuration class name.



getConfigFile
protected String getConfigFile(String path)(Code)
Given a context path, get the config file name.



getContextClass
public String getContextClass()(Code)
Return the Context implementation class name.



getDeploymentTime
public long getDeploymentTime(String name)(Code)
Get the instant where an application was deployed. 0L if no application with that name is deployed, or the instanton which the application was deployed



getDocBase
protected String getDocBase(String path)(Code)
Given a context path, get the config file name.



getXmlNamespaceAware
public boolean getXmlNamespaceAware()(Code)
Get the server.xml attribute's xmlNamespaceAware. true if namespace awarenes is enabled.



getXmlValidation
public boolean getXmlValidation()(Code)
Get the server.xml attribute's xmlValidation. true if validation is enabled.



isDeployXML
public boolean isDeployXML()(Code)
Return the deploy XML config file flag for this component.



isDeployed
public boolean isDeployed(String name)(Code)
Has the specified application been deployed? Note applications defined in server.xml will not have been deployed. true if the application has been deployed andfalse if the applciation has not been deployed or does notexist



isServiced
public synchronized boolean isServiced(String name)(Code)
Is application serviced ? state of the application



isUnpackWARs
public boolean isUnpackWARs()(Code)
Return the unpack WARs flag.



lifecycleEvent
public void lifecycleEvent(LifecycleEvent event)(Code)
Process the START event for an associated Host.
Parameters:
  event - The lifecycle event that has occurred



manageApp
public void manageApp(Context context)(Code)
Add a new Context to be managed by us. Entry point for the admin webapp, and other JMX Context controlers.



removeServiced
public synchronized void removeServiced(String name)(Code)
Removed a serviced application from the list.



setConfigClass
public void setConfigClass(String configClass)(Code)
Set the Context configuration class name.
Parameters:
  configClass - The new Context configuration class name.



setContextClass
public void setContextClass(String contextClass)(Code)
Set the Context implementation class name.
Parameters:
  contextClass - The new Context implementation class name.



setDeployXML
public void setDeployXML(boolean deployXML)(Code)
Set the deploy XML config file flag for this component.
Parameters:
  deployXML - The new deploy XML flag



setUnpackWARs
public void setUnpackWARs(boolean unpackWARs)(Code)
Set the unpack WARs flag.
Parameters:
  unpackWARs - The new unpack WARs flag



setXmlNamespaceAware
public void setXmlNamespaceAware(boolean xmlNamespaceAware)(Code)
Set the namespace aware feature of the XML parser used when parsing xml instances.
Parameters:
  xmlNamespaceAware - true to enable namespace awareness



setXmlValidation
public void setXmlValidation(boolean xmlValidation)(Code)
Set the validation feature of the XML parser used when parsing xml instances.
Parameters:
  xmlValidation - true to enable xml instance validation



start
public void start()(Code)
Process a "start" event for this Host.



stop
public void stop()(Code)
Process a "stop" event for this Host.



undeployApps
protected void undeployApps()(Code)
Undeploy all deployed applications.



unmanageApp
public void unmanageApp(String contextPath)(Code)
Remove a webapp from our control. Entry point for the admin webapp, and other JMX Context controlers.



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.