Skip to content

Commit 39ae737

Browse files
committed
Updates for 1.1.0
1 parent d7c800d commit 39ae737

File tree

12 files changed

+131
-642
lines changed

12 files changed

+131
-642
lines changed

pom.xml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.red5</groupId>
55
<artifactId>red5-parent</artifactId>
6-
<version>1.0.14</version>
6+
<version>1.1.0</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>red5-server-common</artifactId>
@@ -177,21 +177,6 @@
177177
<groupId>commons-codec</groupId>
178178
<version>${commons-codec.version}</version>
179179
</dependency>
180-
<dependency>
181-
<groupId>org.quartz-scheduler</groupId>
182-
<artifactId>quartz</artifactId>
183-
<version>${quartz.version}</version>
184-
<exclusions>
185-
<exclusion>
186-
<artifactId>c3p0</artifactId>
187-
<groupId>com.mchange</groupId>
188-
</exclusion>
189-
<exclusion>
190-
<artifactId>HikariCP-java6</artifactId>
191-
<groupId>com.zaxxer</groupId>
192-
</exclusion>
193-
</exclusions>
194-
</dependency>
195180
<dependency>
196181
<groupId>org.springframework</groupId>
197182
<artifactId>spring-context-support</artifactId>

src/main/java/org/red5/server/Server.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.red5.server.api.scheduling.ISchedulingService;
3434
import org.red5.server.api.scope.IGlobalScope;
3535
import org.red5.server.api.scope.IScope;
36-
import org.red5.server.scheduling.QuartzSchedulingService;
3736
import org.slf4j.Logger;
3837
import org.slf4j.LoggerFactory;
3938
import org.springframework.beans.factory.DisposableBean;
@@ -52,7 +51,7 @@ public class Server implements IServer, ApplicationContextAware, InitializingBea
5251
/**
5352
* Service used to provide notifications.
5453
*/
55-
private static QuartzSchedulingService schedulingService;
54+
private static ISchedulingService schedulingService;
5655

5756
/**
5857
* List of global scopes
@@ -98,7 +97,7 @@ public void setApplicationContext(ApplicationContext applicationContext) {
9897
* Initialization section.
9998
*/
10099
public void afterPropertiesSet() throws Exception {
101-
Server.schedulingService = (QuartzSchedulingService) applicationContext.getBean("schedulingService");
100+
Server.schedulingService = (ISchedulingService) applicationContext.getBean(ISchedulingService.BEAN_NAME);
102101
}
103102

104103
/**

src/main/java/org/red5/server/api/Red5.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ public final class Red5 {
6666
/**
6767
* Server version with revision
6868
*/
69-
public static final String VERSION = "Red5 Server 1.0.10";
69+
public static final String VERSION = "Red5 Server 1.1.0";
7070

7171
/**
7272
* Server version for fmsVer requests
7373
*/
74-
public static final String FMS_VERSION = "RED5/1,0,10,0";
74+
public static final String FMS_VERSION = "RED5/1,1,0,0";
7575

7676
/**
7777
* Server capabilities

src/main/java/org/red5/server/api/scheduling/ISchedulingService.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ public interface ISchedulingService extends IScopeService {
3434

3535
public static String BEAN_NAME = "schedulingService";
3636

37+
/**
38+
* Scheduling service constant
39+
*/
40+
public static final String SCHEDULING_SERVICE = "scheduling_service";
41+
42+
/**
43+
* Scheduled job constant
44+
*/
45+
public static final String SCHEDULED_JOB = "scheduled_job";
46+
3747
/**
3848
* Schedule a job for periodic execution.
3949
*
@@ -68,7 +78,7 @@ public interface ISchedulingService extends IScopeService {
6878
public String addScheduledOnceJob(Date date, IScheduledJob job);
6979

7080
/**
71-
* Schedule a job for periodic execution which will start after the specifed delay.
81+
* Schedule a job for periodic execution which will start after the specified delay.
7282
*
7383
* @param interval
7484
* time in milliseconds between two notifications of the job

src/main/java/org/red5/server/jmx/mxbeans/QuartzSchedulingServiceMXBean.java renamed to src/main/java/org/red5/server/jmx/mxbeans/JDKSchedulingServiceMXBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
import javax.management.MXBean;
2424

2525
/**
26-
* Scheduling service that uses Quartz as backend.
26+
* Scheduling service that uses JDK as backend.
2727
*
2828
* @author The Red5 Project
2929
* @author Paul Gregoire (mondain@gmail.com)
3030
*/
3131
@MXBean
32-
public interface QuartzSchedulingServiceMXBean {
32+
public interface JDKSchedulingServiceMXBean {
3333

3434
/**
3535
* Getter for job name.

0 commit comments

Comments
 (0)