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: 1.1.2.2 $
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
 String getNotificationMessage()
           
 String getNotificationType()
           
 long getRepeatitions()
           
 javax.management.ObjectName getTimerMBean()
           
 String getTimerPeriod()
           
 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

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


getNotificationType

public String getNotificationType()

setNotificationMessage

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


getNotificationMessage

public String getNotificationMessage()

setTimerPeriod

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


getTimerPeriod

public String getTimerPeriod()

setRepeatitions

public void setRepeatitions(long repeatitions)
Number of occurences


getRepeatitions

public long getRepeatitions()

setTimerMBean

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


getTimerMBean

public javax.management.ObjectName getTimerMBean()


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