|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jk.server.JkMain
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:
Field Summary | |
protected java.lang.String |
domain
|
protected javax.management.MBeanServer |
mserver
|
protected javax.management.ObjectName |
oname
|
Constructor Summary | |
JkMain()
|
Method Summary | |
java.lang.String |
getChannelClassName()
|
java.lang.String |
getDomain()
|
java.lang.String |
getErr()
|
long |
getInitTime()
The time it took to initialize jk ( ms) |
java.lang.String |
getJkHome()
|
static JkMain |
getJkMain()
|
javax.management.ObjectName |
getObjectName()
|
java.lang.String |
getOut()
|
java.lang.String |
getPropertiesFile()
|
java.lang.Object |
getProperty(java.lang.String name)
Retrieve a property. |
long |
getStartTime()
The time it took to start jk ( ms ) |
java.lang.String |
getWorkerClassName()
|
WorkerEnv |
getWorkerEnv()
|
void |
init()
|
static void |
main(java.lang.String[] args)
|
void |
pause()
|
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
void |
resume()
|
void |
saveProperties()
|
void |
setBeanProperty(java.lang.Object target,
java.lang.String name,
java.lang.String val)
|
void |
setChannelClassName(java.lang.String name)
Set the channelClassName that will used to connect to
httpd. |
void |
setErr(java.lang.String s)
|
void |
setJkHome(java.lang.String s)
Set the base dir of jk2. ( including WEB-INF if in a webapp ). |
void |
setOut(java.lang.String s)
|
void |
setPropertiesFile(java.lang.String p)
Load a .properties file into and set the values into jk2 configuration. |
void |
setProperty(java.lang.String n,
java.lang.String v)
Set a name/value as a jk2 property |
void |
setPropertyString(java.lang.String handlerN,
java.lang.String name,
java.lang.String val)
|
void |
setSaveProperties(boolean b)
|
void |
setWorkerClassName(java.lang.String name)
Set the workerClassName that will handle the request |
void |
setWorkerEnv(WorkerEnv wEnv)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String domain
protected javax.management.ObjectName oname
protected javax.management.MBeanServer mserver
Constructor Detail |
public JkMain()
Method Detail |
public static JkMain getJkMain()
public void setPropertiesFile(java.lang.String p)
public java.lang.String getPropertiesFile()
public void setSaveProperties(boolean b)
public void setProperty(java.lang.String n, java.lang.String v)
public java.lang.Object getProperty(java.lang.String name)
public void setChannelClassName(java.lang.String name)
channelClassName
that will used to connect to
httpd.
public java.lang.String getChannelClassName()
public void setWorkerClassName(java.lang.String name)
workerClassName
that will handle the request.
( sort of 'pivot' in axis :-)
public java.lang.String getWorkerClassName()
public void setJkHome(java.lang.String s)
public java.lang.String getJkHome()
public void setOut(java.lang.String s)
public java.lang.String getOut()
public void setErr(java.lang.String s)
public java.lang.String getErr()
public void init() throws java.io.IOException
java.io.IOException
public void stop()
public void start() throws java.io.IOException
java.io.IOException
public WorkerEnv getWorkerEnv()
public void setWorkerEnv(WorkerEnv wEnv)
public void setBeanProperty(java.lang.Object target, java.lang.String name, java.lang.String val)
public void setPropertyString(java.lang.String handlerN, java.lang.String name, java.lang.String val)
public long getInitTime()
public long getStartTime()
public static void main(java.lang.String[] args)
public void saveProperties()
public javax.management.ObjectName getObjectName()
public java.lang.String getDomain()
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
java.lang.Exception
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister() throws java.lang.Exception
preDeregister
in interface javax.management.MBeanRegistration
java.lang.Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public void pause() throws java.lang.Exception
java.lang.Exception
public void resume() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |