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


java.lang.Object
   org.apache.jk.server.JkMain

JkMain
public class JkMain implements MBeanRegistration(Code)
Main class used to startup and configure jk. It manages the conf/jk2.properties file and is the target of JMX proxy. It implements a policy of save-on-change - whenever a property is changed at runtime the jk2.properties file will be overriden. You can edit the config file when tomcat is stoped ( or if you don't use JMX or other admin tools ). The format of jk2.properties:
TYPE[.LOCALNAME].PROPERTY_NAME=VALUE
Set a property on the associated component. TYPE will be used to find the class name and instantiate the component. LOCALNAME allows multiple instances. In JMX mode, TYPE and LOCALNAME will form the JMX name ( eventually combined with a 'jk2' component )
NAME=VALUE
Define global properties to be used in ${} substitutions
class.COMPONENT_TYPE=JAVA_CLASS_NAME
Adds a new 'type' of component. We predefine all known types.
Instances are created the first time a component name is found. In addition, 'handler.list' property will override the list of 'default' components that are loaded automatically. Note that the properties file is just one (simplistic) way to configure jk. We hope to see configs based on registry, LDAP, db, etc. ( XML is not necesarily better )
author:
   Costin Manolache


Field Summary
static  StringdefaultHandlers
    
protected  Stringdomain
    
 Stringerr
    
 longinitTime
    
static  JkMainjkMain
    
static  org.apache.juli.logging.Loglog
    
 booleanmodified
    
 Propertiesmodules
    
protected  MBeanServermserver
    
protected  ObjectNameoname
    
 Stringout
    
 StringpropFile
    
 Propertiesprops
    
 FilepropsF
    
static  Hashtablereplacements
    
 booleansaveProperties
    
 longstartTime
    
 booleanstarted
    
 WorkerEnvwEnv
    

Constructor Summary
public  JkMain()
    

Method Summary
public  StringgetChannelClassName()
    
public  StringgetDomain()
    
public  StringgetErr()
    
public  longgetInitTime()
    
public  StringgetJkHome()
    
public static  JkMaingetJkMain()
    
public  ObjectNamegetObjectName()
    
public  StringgetOut()
    
public  StringgetPropertiesFile()
    
public  ObjectgetProperty(String name)
     Retrieve a property.
public  longgetStartTime()
    
public  StringgetWorkerClassName()
    
public  WorkerEnvgetWorkerEnv()
    
public  voidinit()
    
public static  voidmain(String args)
    
public  voidpause()
    
public  voidpostDeregister()
    
public  voidpostRegister(Boolean registrationDone)
    
public  voidpreDeregister()
    
public  ObjectNamepreRegister(MBeanServer server, ObjectName name)
    
public  voidresume()
    
public  voidsaveProperties()
    
public  voidsetBeanProperty(Object target, String name, String val)
    
public  voidsetChannelClassName(String name)
     Set the channelClassName that will used to connect to httpd.
public  voidsetErr(String s)
    
public  voidsetJkHome(String s)
     Set the base dir of jk2.
public  voidsetOut(String s)
    
public  voidsetPropertiesFile(String p)
     Load a .properties file into and set the values into jk2 configuration.
public  voidsetProperty(String n, String v)
    
public  voidsetPropertyString(String handlerN, String name, String val)
    
public  voidsetSaveProperties(boolean b)
    
public  voidsetWorkerClassName(String name)
     Set the workerClassName that will handle the request.
public  voidsetWorkerEnv(WorkerEnv wEnv)
    
public  voidstart()
    
public  voidstop()
    

Field Detail
defaultHandlers
static String defaultHandlers(Code)



domain
protected String domain(Code)



err
String err(Code)



initTime
long initTime(Code)



jkMain
static JkMain jkMain(Code)



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



modified
boolean modified(Code)



modules
Properties modules(Code)



mserver
protected MBeanServer mserver(Code)



oname
protected ObjectName oname(Code)



out
String out(Code)



propFile
String propFile(Code)



props
Properties props(Code)



propsF
File propsF(Code)



replacements
static Hashtable replacements(Code)



saveProperties
boolean saveProperties(Code)



startTime
long startTime(Code)



started
boolean started(Code)



wEnv
WorkerEnv wEnv(Code)




Constructor Detail
JkMain
public JkMain()(Code)




Method Detail
getChannelClassName
public String getChannelClassName()(Code)



getDomain
public String getDomain()(Code)



getErr
public String getErr()(Code)



getInitTime
public long getInitTime()(Code)
The time it took to initialize jk ( ms)



getJkHome
public String getJkHome()(Code)



getJkMain
public static JkMain getJkMain()(Code)



getObjectName
public ObjectName getObjectName()(Code)



getOut
public String getOut()(Code)



getPropertiesFile
public String getPropertiesFile()(Code)



getProperty
public Object getProperty(String name)(Code)
Retrieve a property.



getStartTime
public long getStartTime()(Code)
The time it took to start jk ( ms )



getWorkerClassName
public String getWorkerClassName()(Code)



getWorkerEnv
public WorkerEnv getWorkerEnv()(Code)



init
public void init() throws IOException(Code)



main
public static void main(String args)(Code)



pause
public void pause() throws Exception(Code)



postDeregister
public void postDeregister()(Code)



postRegister
public void postRegister(Boolean registrationDone)(Code)



preDeregister
public void preDeregister() throws Exception(Code)



preRegister
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)



resume
public void resume() throws Exception(Code)



saveProperties
public void saveProperties()(Code)



setBeanProperty
public void setBeanProperty(Object target, String name, String val)(Code)



setChannelClassName
public void setChannelClassName(String name)(Code)
Set the channelClassName that will used to connect to httpd.



setErr
public void setErr(String s)(Code)



setJkHome
public void setJkHome(String s)(Code)
Set the base dir of jk2. ( including WEB-INF if in a webapp ). We'll try to guess it from classpath if none is set ( for example on command line ), but if in a servlet environment you need to use Context.getRealPath or a system property or set it expliciltey.



setOut
public void setOut(String s)(Code)



setPropertiesFile
public void setPropertiesFile(String p)(Code)
Load a .properties file into and set the values into jk2 configuration.



setProperty
public void setProperty(String n, String v)(Code)
Set a name/value as a jk2 property



setPropertyString
public void setPropertyString(String handlerN, String name, String val)(Code)



setSaveProperties
public void setSaveProperties(boolean b)(Code)



setWorkerClassName
public void setWorkerClassName(String name)(Code)
Set the workerClassName that will handle the request. ( sort of 'pivot' in axis :-)



setWorkerEnv
public void setWorkerEnv(WorkerEnv wEnv)(Code)



start
public void start() throws IOException(Code)



stop
public void stop()(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.