|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.ha.jmx.HAServiceMBeanSupport (src)
org.jboss.ha.singleton.HASingletonSupport (src)
org.jboss.varia.scheduler.AbstractScheduleProvider (src)
org.jboss.varia.scheduler.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 (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
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 | |
java.lang.String |
getDateFormat()
|
ObjectName (src) |
getObjectName(MBeanServer (src) pServer,
ObjectName (src) pName)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration. |
long |
getPeriod()
|
long |
getRepetitions()
|
java.lang.String |
getStartDate()
|
java.lang.String |
getTargetMethod()
|
java.lang.String |
getTargetName()
|
void |
setDateFormat(java.lang.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(java.lang.String pStartDate)
Sets the first scheduled call. |
void |
setTargetMethod(java.lang.String pTargetMethod)
Sets the method name to be called on the Schedulable MBean. |
void |
setTargetName(java.lang.String 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 (src) |
addSchedule, getScheduleManagerName, isHASingleton, removeSchedule, setHASingleton, setScheduleManagerName, startScheduleProviderService, startService, startSingleton, stopScheduleProviderService, stopService, stopSingleton |
Methods inherited from class org.jboss.ha.singleton.HASingletonSupport (src) |
_stopOldMaster, isMasterNode, makeThisNodeMaster, partitionTopologyChanged |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, 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 (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.ha.jmx.HAServiceMBean (src) |
callMethodOnPartition, getDistributedState, getPartitionName, sendNotification, setDistributedState, setPartitionName |
Methods inherited from interface org.jboss.system.ServiceMBean (src) |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Methods inherited from interface javax.management.NotificationBroadcaster (src) |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Constructor Detail |
public SingleScheduleProvider()
Method Detail |
public void startProviding() throws JMException (src)
AbstractScheduleProvider (src)
startProviding
in class AbstractScheduleProvider (src)
JMException (src)
public void stopProviding()
AbstractScheduleProvider (src)
stopProviding
in class AbstractScheduleProvider (src)
public java.lang.String getTargetName()
public void setTargetName(java.lang.String pTargetObjectName) throws java.security.InvalidParameterException
pTargetObjectName
- JMX MBean Object Name which should be called.
java.security.InvalidParameterException
- If the given value is an valid Object Name.public java.lang.String getTargetMethod()
public void setTargetMethod(java.lang.String pTargetMethod) throws java.security.InvalidParameterException
pTargetMethod
- Name of the method to be called optional followed
by method arguments (see above).
java.security.InvalidParameterException
- If the given value is not of the right
formatpublic long getPeriod()
public void setPeriod(long pPeriod)
pPeriod
- Time between to scheduled calls (after the initial call) in Milliseconds.
This value must be bigger than 0.
java.security.InvalidParameterException
- If the given value is less or equal than 0public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String dateFormat)
dateFormat
- The date format when empty or null the locale is used to parse datespublic java.lang.String getStartDate()
#setInitialStartDate
method.public void setStartDate(java.lang.String pStartDate)
pStartDate
- Date when the initial call is scheduled. It can be either:
public long getRepetitions()
public void setRepetitions(long pNumberOfCalls)
pNumberOfCalls
- Initial Number of scheduled calls. If -1 then the number
is unlimted.
java.security.InvalidParameterException
- If the given value is less or equal than 0public ObjectName (src) getObjectName(MBeanServer (src) pServer, ObjectName (src) pName) throws MalformedObjectNameException (src)
ServiceMBeanSupport (src)
getObjectName
in class ServiceMBeanSupport (src)
MalformedObjectNameException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |