org.jboss.varia.scheduler
Interface DBScheduleProviderMBean
- All Superinterfaces:
- AbstractScheduleProviderMBean, Service, ServiceMBean
- All Known Implementing Classes:
- DBScheduleProvider
public interface DBScheduleProviderMBean
- extends AbstractScheduleProviderMBean
MBean interface.
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 |
OBJECT_NAME
static final ObjectName OBJECT_NAME
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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.