|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SingleScheduleProviderMBean
SingleScheduleProvider MBean interface.
Field Summary | |
---|---|
static javax.management.ObjectName |
OBJECT_NAME
The default ObjectName |
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()
|
javax.management.ObjectName |
getTargetName()
|
void |
setDateFormat(String dateFormat)
The date format used to parse date/times |
void |
setPeriod(long period)
The Schedule Period between two scheduled call. |
void |
setRepetitions(long numberOfCalls)
Sets the initial number of scheduled calls. |
void |
setStartDate(String startDate)
The date/time of the first scheduled call. |
void |
setTargetMethod(String method)
The method name to call on the Schedulable MBean. |
void |
setTargetName(javax.management.ObjectName objectName)
The ObjectName of the Schedulable MBean to call |
Methods inherited from interface org.jboss.varia.scheduler.AbstractScheduleProviderMBean |
---|
getScheduleManagerName, setScheduleManagerName, startProviding, stopProviding |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Field Detail |
---|
static final javax.management.ObjectName OBJECT_NAME
Method Detail |
---|
void setTargetName(javax.management.ObjectName objectName)
javax.management.ObjectName getTargetName()
void setTargetMethod(String method) throws IllegalArgumentException
method
- Name of the method to be called optional followed by method arguments (see above).
IllegalArgumentException
- If the given value is not of the right formatString getTargetMethod()
void setPeriod(long period)
period
- 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 0long getPeriod()
void setDateFormat(String dateFormat)
dateFormat
- The date format when empty or null the locale is used to parse datesString getDateFormat()
void setStartDate(String startDate)
startDate
- Date when the initial call is scheduled. It can be either:
String getStartDate()
void setRepetitions(long numberOfCalls)
numberOfCalls
- Initial Number of scheduled calls. If -1 then the number is unlimited.
IllegalArgumentException
- If the given value is less or equal than 0long getRepetitions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |