Package org.red5.server.scheduling
Class ApplicationSchedulingService
java.lang.Object
org.red5.server.scheduling.QuartzSchedulingService
org.red5.server.scheduling.ApplicationSchedulingService
- All Implemented Interfaces:
ISchedulingService
,IScopeService
,QuartzSchedulingServiceMXBean
,DisposableBean
,InitializingBean
@ManagedResource(objectName="org.red5.server:type=ApplicationSchedulingService,name=default")
public class ApplicationSchedulingService
extends QuartzSchedulingService
This class can be used to initialize Quartz for a Red5 application.
- Author:
- Paul Gregoire (mondain@gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.red5.server.scheduling.QuartzSchedulingService
QuartzSchedulingService.ScheduledJobKey
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private static org.slf4j.Logger
static final String
static final String
Fields inherited from class org.red5.server.scheduling.QuartzSchedulingService
configFile, factory, instanceId, jobDetailCounter, jobDetailfactory, keyMap, scheduler, threadCount, triggerfactory
Fields inherited from interface org.red5.server.api.scheduling.ISchedulingService
BEAN_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Constructs a new QuartzSchedulingService.Getter for job name.protected void
void
setApplicationName
(String applicationName) void
setServletAttribute
(jakarta.servlet.ServletContext servletContext) Sets the scheduler factory in the servlet context.protected void
Methods inherited from class org.red5.server.scheduling.QuartzSchedulingService
addScheduledJob, addScheduledJobAfterDelay, addScheduledOnceJob, addScheduledOnceJob, destroy, getConfigFile, getScheduledJobNames, getThreadCount, pauseScheduledJob, pauseScheduledTrigger, removeScheduledJob, resumeScheduledJob, resumeScheduledTrigger, setConfigFile, setFactory, setInstanceId, setThreadCount
-
Field Details
-
log
private static org.slf4j.Logger log -
QUARTZ_FACTORY_KEY
- See Also:
-
SCHEDULING_APPLICATION_NAME
- See Also:
-
applicationName
-
-
Constructor Details
-
ApplicationSchedulingService
public ApplicationSchedulingService()
-
-
Method Details
-
getApplicationName
-
setApplicationName
-
setServletAttribute
public void setServletAttribute(jakarta.servlet.ServletContext servletContext) Sets the scheduler factory in the servlet context.- Parameters:
servletContext
- sevlet context
-
getJobName
Getter for job name.- Specified by:
getJobName
in interfaceQuartzSchedulingServiceMXBean
- Overrides:
getJobName
in classQuartzSchedulingService
- Returns:
- Job name
-
afterPropertiesSet
Description copied from class:QuartzSchedulingService
Constructs a new QuartzSchedulingService.- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Overrides:
afterPropertiesSet
in classQuartzSchedulingService
- Throws:
Exception
-
registerJMX
protected void registerJMX() -
unregisterJMX
protected void unregisterJMX()
-