org.apache.jk.common
Class JkMX

java.lang.Object
  extended byorg.apache.jk.core.JkHandler
      extended byorg.apache.jk.common.JkMX
All Implemented Interfaces:
java.util.EventListener, javax.management.MBeanRegistration, javax.management.NotificationListener

public class JkMX
extends JkHandler

Load the HTTP or RMI adapters for MX4J and JMXRI. Add "mx.port=PORT" in jk2.properties to enable it.


Field Summary
 
Fields inherited from class org.apache.jk.core.JkHandler
domain, ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, id, LAST, name, next, nextName, OK, oname, properties, wEnv
 
Constructor Summary
JkMX()
           
 
Method Summary
 void addHandlerCallback(JkHandler w)
          Experimental, will be replaced.
 void destroy()
          Clean up and stop the handler
 java.lang.String getHost()
           
 int getPort()
           
 void init()
          Should register the request types it can handle, same style as apache2.
 void loadAdapter()
          Initialize the worker.
 void setHost(java.lang.String host)
           
 void setPort(int i)
          Enable the MX4J internal adapter
 
Methods inherited from class org.apache.jk.core.JkHandler
createMsgContext, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, invoke, postDeregister, postRegister, preDeregister, preRegister, setId, setName, setNext, setNext, setProperty, setWorkerEnv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JkMX

public JkMX()
Method Detail

setPort

public void setPort(int i)
Enable the MX4J internal adapter


getPort

public int getPort()

setHost

public void setHost(java.lang.String host)

getHost

public java.lang.String getHost()

loadAdapter

public void loadAdapter()
                 throws java.io.IOException
Initialize the worker. After this call the worker will be ready to accept new requests.

Throws:
java.io.IOException

destroy

public void destroy()
Description copied from class: JkHandler
Clean up and stop the handler

Overrides:
destroy in class JkHandler

init

public void init()
          throws java.io.IOException
Description copied from class: JkHandler
Should register the request types it can handle, same style as apache2.

Overrides:
init in class JkHandler
Throws:
java.io.IOException

addHandlerCallback

public void addHandlerCallback(JkHandler w)
Description copied from class: JkHandler
Experimental, will be replaced. This allows handlers to be notified when other handlers are added.

Overrides:
addHandlerCallback in class JkHandler


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.