Package org.quartz.jobs.ee.jmx
Class JMXInvokerJob
- java.lang.Object
-
- org.quartz.jobs.ee.jmx.JMXInvokerJob
-
- All Implemented Interfaces:
org.quartz.Job
public class JMXInvokerJob extends java.lang.Object implements org.quartz.JobGeneric 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 qualified 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 separated
and has the following parts: <type>:<name>. 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.
-
-
Constructor Summary
Constructors Constructor Description JMXInvokerJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.quartz.JobExecutionContext context)protected org.slf4j.LoggergetLog()
-