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