Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.varia » scheduler » [javadoc | source]
org.jboss.varia.scheduler
public class: XMLScheduleProvider [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.varia.scheduler.AbstractScheduleProvider
            org.jboss.varia.scheduler.XMLScheduleProvider

All Implemented Interfaces:
    XMLScheduleProviderMBean, AbstractScheduleProviderMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

This Provider get its Scheduler from a XML configuration string allowing the administrator to add several Schedules with one provider. The "Schedules" properties has to look like:
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public XMLScheduleProvider() 
Method from org.jboss.varia.scheduler.XMLScheduleProvider Summary:
getNode,   getObjectName,   getSchedules,   getSignature,   getStartDate,   setSchedules,   startProviding,   stopProviding
Methods from org.jboss.varia.scheduler.AbstractScheduleProvider:
addSchedule,   getScheduleManagerName,   removeSchedule,   setScheduleManagerName,   startProviding,   startScheduleProviderService,   startService,   stopProviding,   stopScheduleProviderService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.varia.scheduler.XMLScheduleProvider Detail:
 protected Text getNode(NodeList pList,
    String pName) 
    Loops of the given Node List and looks for the Element with the given Node Name
 public ObjectName getObjectName(MBeanServer pServer,
    ObjectName pName) throws MalformedObjectNameException 
 public Element getSchedules() 
 protected String[] getSignature(String pMethodSignature) 
    Converts a string of method arguments (separated by colons) into an array of string
 protected Date getStartDate(String pStartDate,
    String dateFormat) 
    Converts the given Data string to a date where not value means 1/1/1970, "NOW" means now (plus a second), an long value means time in milliseconds since 1/1/1970 and a String is a Date string which is intepreted by a Simple Data Formatter.
 public  void setSchedules(Element pSchedules) 
    Sets the XML configuration attribute
 public  void startProviding() throws Exception 
    Add the Schedule to the Schedule Manager
 public  void stopProviding() 
    Stops the Provider from providing causing the provider to remove the Schedule