Save This Page
Home » quartz-1.6.0 » org.quartz.jobs.ee » jmx » [javadoc | source]
org.quartz.jobs.ee.jmx
public class: JMXInvokerJob [javadoc | source]
java.lang.Object
   org.quartz.jobs.ee.jmx.JMXInvokerJob

All Implemented Interfaces:
    Job

Generic JMX invoker Job. It supports any number or type of parameters to the JMX bean.

The required parameters are as follows (case doesn't matter):

JMX_OBJECTNAME
This is the fully qualifed name of the object (ie in JBoss to lookup the log4j jmx bean you would specify "jboss.system:type=Log4jService,service=Logging"
JMX_METHOD
This is the method to invoke on the specified JMX Bean. (ie in JBoss to change the log level you would specify "setLoggerLevel"
JMX_PARAMDEFS
This is a definition of the parameters to be passed to the specified method and their corresponding java types. Each parameter definition is comma seperated and has the following parts: :. Type is the java type for the parameter. The following types are supported:

i - is for int

l - is for long

f - is for float

d - is for double

s - is for String

b - is for boolean

For ilfdb use lower for native type and upper for object wrapper. The name portion of the definition is the name of the parameter holding the string value. (ie s:fname,s:lname would require 2 parameters of the name fname and lname and would be passed in that order to the method.

    author: James - Nelson (jmn@provident-solutions.com) -- Provident Solutions LLC
Method from org.quartz.jobs.ee.jmx.JMXInvokerJob Summary:
execute,   getLog
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.quartz.jobs.ee.jmx.JMXInvokerJob Detail:
 public  void execute(JobExecutionContext context) throws JobExecutionException 
 protected Log getLog()