|
|||||||||||
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 | |
int |
addSchedule(javax.management.ObjectName pProvider,
javax.management.ObjectName pTarget,
String pMethodName,
String[] pMethodSignature,
Date pStartDate,
long pPeriod,
int pRepetitions)
Adds a new Schedule to the Scheduler |
String |
getTimerName()
|
boolean |
isStartAtStartup()
|
void |
registerProvider(String pProviderObjectName)
Register a Provider to make him available. |
void |
removeSchedule(int pIdentification)
Removes a Schedule so that no notification is sent anymore |
void |
restartSchedule()
Stops the server right now and starts it right now. |
void |
setStartAtStartup(boolean pStartAtStartup)
Set the scheduler to start when MBean started or not. |
void |
setTimerName(String pTimerName)
|
void |
startSchedules()
Starts all the containing Schedules |
void |
stopSchedules(boolean pDoItNow)
Stops all the sontaining Schedules |
void |
unregisterProvider(String pProviderObjectName)
Unregister a Provider which in turn calls "stopProviding()" indicating to the Provider to 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 |
public static final javax.management.ObjectName OBJECT_NAME
Method Detail |
public void startSchedules()
public void stopSchedules(boolean pDoItNow)
pDoItNow
- If true all the schedules are stopped immeditaly otherwise it waits until the next notification is sentpublic void restartSchedule()
public void registerProvider(String pProviderObjectName)
pProviderObjectName
- Object Name of the Providerpublic void unregisterProvider(String pProviderObjectName)
pProviderObjectName
- Object Name of the Providerpublic int addSchedule(javax.management.ObjectName pProvider, javax.management.ObjectName pTarget, String pMethodName, String[] pMethodSignature, Date pStartDate, long pPeriod, int pRepetitions)
pTarget
- Object Name of the Target MBeanpMethodName
- Name of the method to be calledpMethodSignature
- List of Attributes of the method to be called where ...pStartDate
- Date when the schedule is startedpRepetitions
- Initial Number of repetitions
public void removeSchedule(int pIdentification)
pIdentification
- Identification returned by addSchedule()
or getSchedules()
.public boolean isStartAtStartup()
public void setStartAtStartup(boolean pStartAtStartup)
startService()
gets called (normally at startup time.
pStartAtStartup
- True if Schedule has to be started at startup timepublic String getTimerName()
public void setTimerName(String pTimerName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |