新增根据 指定时间范围的 recordInfo 查询, 预下载视频文件到本地指定路径
This commit is contained in:
parent
d6bd3e1f80
commit
67f48ad730
@ -37,6 +37,7 @@ chmod +x ./package-docker.sh
|
|||||||
docker run --name gb28181-mocking --rm \
|
docker run --name gb28181-mocking --rm \
|
||||||
--log-opt max-size=1g \
|
--log-opt max-size=1g \
|
||||||
--network host \
|
--network host \
|
||||||
|
-v `pwd`/record:/tmp/record \
|
||||||
-v `pwd`/application.yml:/opt/gb28181-docking-platform-mocking/application.yml \
|
-v `pwd`/application.yml:/opt/gb28181-docking-platform-mocking/application.yml \
|
||||||
skcks.cn/gb28181-docking-platform-mocking:0.1.0-SNAPSHOT
|
skcks.cn/gb28181-docking-platform-mocking:0.1.0-SNAPSHOT
|
||||||
```
|
```
|
||||||
|
@ -54,6 +54,7 @@ public class VideoCacheManager {
|
|||||||
return StringUtils.joinWith("-", deviceCode, dateFormat(startTime), dateFormat(endTime));
|
return StringUtils.joinWith("-", deviceCode, dateFormat(startTime), dateFormat(endTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Async(MockingExecutor.EXECUTOR_BEAN_NAME)
|
||||||
public void addTask(String deviceCode, Date startTime, Date endTime){
|
public void addTask(String deviceCode, Date startTime, Date endTime){
|
||||||
String name = fileName(deviceCode, startTime, endTime);
|
String name = fileName(deviceCode, startTime, endTime);
|
||||||
if(tasks.get(name) != null){
|
if(tasks.get(name) != null){
|
||||||
|
Loading…
Reference in New Issue
Block a user