org.jboss.monitor.services
Interface TimerServiceMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
TimerService

public interface TimerServiceMBean
extends org.jboss.system.ServiceMBean

MBean interface for a simple service used to configure the periodic emition of notifications by a standard JMX Timer.

Version:
$Revision: 57210 $
Author:
Dimitris Andreadis
See Also:
Timer

Field Summary
 
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
 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.
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

setNotificationType

void setNotificationType(String type)
The type of the emitted notifications


getNotificationType

String getNotificationType()

setNotificationMessage

void setNotificationMessage(String message)
The message carried by the emitted notifications


getNotificationMessage

String getNotificationMessage()

setTimerPeriod

void setTimerPeriod(String timerPeriod)
Timer period in milliseconds; accepts suffix modifiers e.g. "1000", "500msec", "10sec", "5min", "1h"


getTimerPeriod

String getTimerPeriod()

setRepeatitions

void setRepeatitions(long repeatitions)
Number of occurences


getRepeatitions

long getRepeatitions()

setFixedRate

void setFixedRate(boolean fixedRate)
The execution mode, true==fixed-rate, false==fixed-delay (default)


getFixedRate

boolean getFixedRate()

setTimerMBean

void setTimerMBean(javax.management.ObjectName timerMBean)
The utilized TimerMBean


getTimerMBean

javax.management.ObjectName getTimerMBean()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.