|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.varia.scheduler.AbstractScheduleProvider
org.jboss.varia.scheduler.SingleScheduleProvider
public class SingleScheduleProvider
This Provider adds a single Schedule to the Schedule Manager but you can create more than one of this MBeans and each will add a different Schedule even when the use the same Target. ATTENTION: This is the provider you used in the older Scheduler when you used a MBean as target.
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.varia.scheduler.SingleScheduleProviderMBean |
|---|
OBJECT_NAME |
| Fields inherited from interface org.jboss.system.ServiceMBean |
|---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
SingleScheduleProvider()
Default (no-args) Constructor |
|
| Method Summary | |
|---|---|
String |
getDateFormat()
|
javax.management.ObjectName |
getObjectName(javax.management.MBeanServer pServer,
javax.management.ObjectName pName)
|
long |
getPeriod()
|
long |
getRepetitions()
|
String |
getStartDate()
|
String |
getTargetMethod()
|
javax.management.ObjectName |
getTargetName()
|
void |
setDateFormat(String dateFormat)
Sets the date format used to parse date/times |
void |
setPeriod(long pPeriod)
Sets the Schedule Period between two scheduled call. |
void |
setRepetitions(long pNumberOfCalls)
Sets the initial number of scheduled calls. |
void |
setStartDate(String pStartDate)
Sets the first scheduled call. |
void |
setTargetMethod(String pTargetMethod)
Sets the method name to be called on the Schedulable MBean. |
void |
setTargetName(javax.management.ObjectName pTargetObjectName)
Sets the fully qualified JMX MBean Object Name of the Schedulable MBean to be called. |
void |
startProviding()
Add the Schedules to the Schedule Manager |
void |
stopProviding()
Stops the Provider from providing and causing him to remove all Schedules |
| Methods inherited from class org.jboss.varia.scheduler.AbstractScheduleProvider |
|---|
addSchedule, getScheduleManagerName, removeSchedule, setScheduleManagerName, startScheduleProviderService, startService, stopScheduleProviderService, stopService |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.varia.scheduler.AbstractScheduleProviderMBean |
|---|
getScheduleManagerName, setScheduleManagerName |
| Methods inherited from interface org.jboss.system.ServiceMBean |
|---|
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Constructor Detail |
|---|
public SingleScheduleProvider()
| Method Detail |
|---|
public void startProviding()
throws javax.management.JMException
AbstractScheduleProvider
startProviding in interface AbstractScheduleProviderMBeanstartProviding in class AbstractScheduleProviderjavax.management.JMExceptionpublic void stopProviding()
AbstractScheduleProvider
stopProviding in interface AbstractScheduleProviderMBeanstopProviding in class AbstractScheduleProviderpublic javax.management.ObjectName getTargetName()
getTargetName in interface SingleScheduleProviderMBeanpublic void setTargetName(javax.management.ObjectName pTargetObjectName)
setTargetName in interface SingleScheduleProviderMBeanpTargetObjectName - JMX MBean Object Name which should be called.
IllegalArgumentException - If the given value is an valid Object Name.public String getTargetMethod()
getTargetMethod in interface SingleScheduleProviderMBean
public void setTargetMethod(String pTargetMethod)
throws IllegalArgumentException
setTargetMethod in interface SingleScheduleProviderMBeanpTargetMethod - Name of the method to be called optional followed
by method arguments (see above).
IllegalArgumentException - If the given value is not of the right
formatpublic long getPeriod()
getPeriod in interface SingleScheduleProviderMBeanpublic void setPeriod(long pPeriod)
setPeriod in interface SingleScheduleProviderMBeanpPeriod - Time between to scheduled calls (after the initial call) in Milliseconds.
This value must be bigger than 0.
IllegalArgumentException - If the given value is less or equal than 0public String getDateFormat()
getDateFormat in interface SingleScheduleProviderMBeanpublic void setDateFormat(String dateFormat)
setDateFormat in interface SingleScheduleProviderMBeandateFormat - The date format when empty or null the locale is used to parse datespublic String getStartDate()
getStartDate in interface SingleScheduleProviderMBean#setInitialStartDate
method.public void setStartDate(String pStartDate)
setStartDate in interface SingleScheduleProviderMBeanpStartDate - Date when the initial call is scheduled. It can be either:
public long getRepetitions()
getRepetitions in interface SingleScheduleProviderMBeanpublic void setRepetitions(long pNumberOfCalls)
setRepetitions in interface SingleScheduleProviderMBeanpNumberOfCalls - Initial Number of scheduled calls. If -1 then the number
is unlimted.
IllegalArgumentException - If the given value is less or equal than 0
public javax.management.ObjectName getObjectName(javax.management.MBeanServer pServer,
javax.management.ObjectName pName)
throws javax.management.MalformedObjectNameException
getObjectName in class org.jboss.system.ServiceMBeanSupportjavax.management.MalformedObjectNameException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||