|
||||||||||
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.varia.scheduler.example.SchedulableMBeanExample
public class SchedulableMBeanExample
A sample SchedulableMBean that records when an event is received.
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 | |
---|---|
SchedulableMBeanExample()
|
Method Summary | |
---|---|
int |
getHitCount()
Returns the number of hits. |
Date |
getHitDate()
Returns the last hit date. |
Notification |
getHitNotification()
Returns the last hit notification. |
long |
getRemainingRepetitions()
Returns the last hit date. |
ObjectName |
getSchedulerName()
Returns the object name. |
String |
getTestString()
Returns the test string. |
void |
hit(Notification notification,
Date date,
long repetitions,
ObjectName name,
String test)
Called by ScheduleManager. |
String |
toString()
Returns a debug string. |
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, 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 SchedulableMBeanExample()
Method Detail |
---|
public void hit(Notification notification, Date date, long repetitions, ObjectName name, String test)
hit
in interface SchedulableMBeanExampleMBean
public int getHitCount()
getHitCount
in interface SchedulableMBeanExampleMBean
public Date getHitDate()
getHitDate
in interface SchedulableMBeanExampleMBean
public Notification getHitNotification()
getHitNotification
in interface SchedulableMBeanExampleMBean
public long getRemainingRepetitions()
getRemainingRepetitions
in interface SchedulableMBeanExampleMBean
public ObjectName getSchedulerName()
getSchedulerName
in interface SchedulableMBeanExampleMBean
public String getTestString()
getTestString
in interface SchedulableMBeanExampleMBean
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |