|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScheduleManagerMBean
ScheduleManagerMBean 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 | |
|---|---|
int |
addSchedule(javax.management.ObjectName provider,
javax.management.ObjectName target,
String methodName,
String[] methodSignature,
Date startDate,
long period,
int repetitions)
Adds a new Schedule to the Scheduler |
String |
getTimerName()
|
boolean |
isStartAtStartup()
|
void |
registerProvider(String providerObjectName)
Register a Schedule Provider to make him available. |
void |
removeSchedule(int identification)
Removes a Schedule so that no notification is sent anymore |
void |
restartSchedule()
Stops and restarts the service |
void |
setStartAtStartup(boolean startAtStartup)
Whether the scheduler should be started upon MBean start or not |
void |
setTimerName(String timerObjectName)
The JMX timer to use for the actual scheduling |
void |
startSchedules()
Starts all the registered Schedules |
void |
stopSchedules(boolean doItNow)
Stops all the registered Schedules |
void |
unregisterProvider(String providerObjectName)
Unregister a Schedule Provider which in turn calls back stopProviding() to indicate to the Provider that it should remove all the Schedules. |
| 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 setStartAtStartup(boolean startAtStartup)
boolean isStartAtStartup()
void setTimerName(String timerObjectName)
String getTimerName()
void startSchedules()
void stopSchedules(boolean doItNow)
doItNow - currently ignoredvoid restartSchedule()
void registerProvider(String providerObjectName)
providerObjectName - Object Name of the Providervoid unregisterProvider(String providerObjectName)
providerObjectName - Object Name of the Provider
int addSchedule(javax.management.ObjectName provider,
javax.management.ObjectName target,
String methodName,
String[] methodSignature,
Date startDate,
long period,
int repetitions)
target - Object Name of the Target MBeanmethodName - Name of the method to be calledmethodSignature - List of Attributes of the method to be called where ...startDate - Date when the schedule is startedrepetitions - Initial Number of repetitions
void removeSchedule(int identification)
identification - id returned by addSchedule().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||