|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.quartz.jobs.ee.jmx Class JMXInvokerJob
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 ([email protected]) -- Provident Solutions LLC
Constructor Summary JMXInvokerJob()
Method Summary void
execute(JobExecutionContext context)
Called by theScheduler
when aTrigger
fires that is associated with theJob
.protected org.slf4j.Logger
getLog()
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail JMXInvokerJob
public JMXInvokerJob()
Method Detail execute
public void execute(JobExecutionContext context) throws JobExecutionException
- Description copied from interface:
Job
Called by the
Scheduler
when aTrigger
fires that is associated with theJob
.The implementation may wish to set a
result
object on theJobExecutionContext
before this method exits. The result itself is meaningless to Quartz, but may be informative toJobListener
s orTriggerListener
s that are watching the job's execution.- Throws:
JobExecutionException
- if there is an exception while executing the job.
getLog
protected org.slf4j.Logger getLog()
PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
Copyright 2001-2011, Terracotta, Inc.