|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.monitor.services.TimerService
public class TimerService
A simple service used to configure the periodic emition of notifications by a standard JMX Timer.
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| 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 |
| Constructor Summary | |
|---|---|
TimerService()
CTOR |
|
| Method Summary | |
|---|---|
boolean |
getFixedRate()
|
String |
getNotificationMessage()
|
String |
getNotificationType()
|
long |
getRepeatitions()
|
javax.management.ObjectName |
getTimerMBean()
|
String |
getTimerPeriod()
|
void |
setFixedRate(boolean fixedRate)
The execution mode, true==fixed-rate, false==fixed-delay (default) |
void |
setNotificationMessage(String message)
The message carried by the emitted notifications |
void |
setNotificationType(String type)
The type of the emitted notifications |
void |
setRepeatitions(long repeatitions)
Number of occurences |
void |
setTimerMBean(javax.management.ObjectName timerMBean)
The utilized TimerMBean |
void |
setTimerPeriod(String timerPeriod)
Timer period in milliseconds; accepts suffix modifiers e.g. |
void |
startService()
Start |
void |
stopService()
Stop |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, 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 |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
|---|
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Constructor Detail |
|---|
public TimerService()
| Method Detail |
|---|
public void setNotificationType(String type)
TimerServiceMBean
setNotificationType in interface TimerServiceMBeanpublic String getNotificationType()
getNotificationType in interface TimerServiceMBeanpublic void setNotificationMessage(String message)
TimerServiceMBean
setNotificationMessage in interface TimerServiceMBeanpublic String getNotificationMessage()
getNotificationMessage in interface TimerServiceMBeanpublic void setTimerPeriod(String timerPeriod)
TimerServiceMBean
setTimerPeriod in interface TimerServiceMBeanpublic String getTimerPeriod()
getTimerPeriod in interface TimerServiceMBeanpublic void setRepeatitions(long repeatitions)
TimerServiceMBean
setRepeatitions in interface TimerServiceMBeanpublic long getRepeatitions()
getRepeatitions in interface TimerServiceMBeanpublic void setFixedRate(boolean fixedRate)
TimerServiceMBean
setFixedRate in interface TimerServiceMBeanpublic boolean getFixedRate()
getFixedRate in interface TimerServiceMBeanpublic void setTimerMBean(javax.management.ObjectName timerMBean)
TimerServiceMBean
setTimerMBean in interface TimerServiceMBeanpublic javax.management.ObjectName getTimerMBean()
getTimerMBean in interface TimerServiceMBean
public void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportExceptionpublic void stopService()
stopService in class org.jboss.system.ServiceMBeanSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||