|
||||||||||
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 TimerServiceMBean
public String getNotificationType()
getNotificationType
in interface TimerServiceMBean
public void setNotificationMessage(String message)
TimerServiceMBean
setNotificationMessage
in interface TimerServiceMBean
public String getNotificationMessage()
getNotificationMessage
in interface TimerServiceMBean
public void setTimerPeriod(String timerPeriod)
TimerServiceMBean
setTimerPeriod
in interface TimerServiceMBean
public String getTimerPeriod()
getTimerPeriod
in interface TimerServiceMBean
public void setRepeatitions(long repeatitions)
TimerServiceMBean
setRepeatitions
in interface TimerServiceMBean
public long getRepeatitions()
getRepeatitions
in interface TimerServiceMBean
public void setFixedRate(boolean fixedRate)
TimerServiceMBean
setFixedRate
in interface TimerServiceMBean
public boolean getFixedRate()
getFixedRate
in interface TimerServiceMBean
public void setTimerMBean(javax.management.ObjectName timerMBean)
TimerServiceMBean
setTimerMBean
in interface TimerServiceMBean
public javax.management.ObjectName getTimerMBean()
getTimerMBean
in interface TimerServiceMBean
public void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
public 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 |