|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBean interface.
Field Summary | |
static javax.management.ObjectName |
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 |
Method Summary | |
String |
getDateFormat()
|
long |
getPeriod()
|
long |
getRepetitions()
|
String |
getStartDate()
|
String |
getTargetMethod()
|
String |
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(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 interface org.jboss.varia.scheduler.AbstractScheduleProviderMBean |
getScheduleManagerName, isHASingleton, setHASingleton, setScheduleManagerName |
Methods inherited from interface org.jboss.ha.singleton.HASingletonMBean |
isMasterNode |
Methods inherited from interface org.jboss.ha.jmx.HAServiceMBean |
callMethodOnPartition, getDistributedState, getPartitionName, sendNotification, setDistributedState, setPartitionName |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Field Detail |
public static final javax.management.ObjectName OBJECT_NAME
Method Detail |
public void startProviding() throws javax.management.JMException
AbstractScheduleProviderMBean
startProviding
in interface AbstractScheduleProviderMBean
javax.management.JMException
public void stopProviding()
AbstractScheduleProviderMBean
stopProviding
in interface AbstractScheduleProviderMBean
public String getTargetName()
public void setTargetName(String pTargetObjectName) throws InvalidParameterException
pTargetObjectName
- JMX MBean Object Name which should be called.
InvalidParameterException
- If the given value is an valid Object Name.public String getTargetMethod()
public void setTargetMethod(String pTargetMethod) throws InvalidParameterException
pTargetMethod
- Name of the method to be called optional followed by method arguments (see above).
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.
InvalidParameterException
- If the given value is less or equal than 0public String getDateFormat()
public void setDateFormat(String dateFormat)
dateFormat
- The date format when empty or null the locale is used to parse datespublic String getStartDate()
public void setStartDate(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.
InvalidParameterException
- If the given value is less or equal than 0
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |