org.jboss.varia.scheduler
Interface DBScheduleProviderMBean

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

public interface DBScheduleProviderMBean
extends AbstractScheduleProviderMBean

MBean interface.


Field Summary
static javax.management.ObjectName OBJECT_NAME
           
 
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 getDataSourceName()
           
 String getSQLStatement()
           
 void setDataSourceName(String pDataSourceName)
          Sets the JNDI name of the Data Source.
 void setSQLStatement(String pSQLStatement)
          Sets the SQL Statement used to retrieve the data from the Database
 void startProviding()
          Add the Schedule to the Schedule Manager
 void stopProviding()
          Stops the Provider from providing causing the provider to remove the Schedule
 
Methods inherited from interface org.jboss.varia.scheduler.AbstractScheduleProviderMBean
getScheduleManagerName, setScheduleManagerName
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

OBJECT_NAME

static final javax.management.ObjectName OBJECT_NAME
Method Detail

getDataSourceName

String getDataSourceName()

setDataSourceName

void setDataSourceName(String pDataSourceName)
Sets the JNDI name of the Data Source. You have to ensure that the DataSource is available when this service is started.


getSQLStatement

String getSQLStatement()

setSQLStatement

void setSQLStatement(String pSQLStatement)
Sets the SQL Statement used to retrieve the data from the Database


startProviding

void startProviding()
                    throws Exception
Add the Schedule to the Schedule Manager

Specified by:
startProviding in interface AbstractScheduleProviderMBean
Throws:
Exception

stopProviding

void stopProviding()
Stops the Provider from providing causing the provider to remove the Schedule

Specified by:
stopProviding in interface AbstractScheduleProviderMBean


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