Commit 97223089 authored by 李丛阳's avatar 李丛阳

lxc 容器配置

parent 84612a5d
......@@ -79,7 +79,9 @@
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!--spring boot security starter-->
<!--spring boot security starter
thymeleaf-extras-springsecurity
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
......
package org.rcisoft.business.bcode.entity;
package org.rcisoft.business.bcode.model;
import lombok.AllArgsConstructor;
import lombok.Data;
......
package org.rcisoft.business.bcode.model;
import lombok.Data;
import java.util.Date;
/**
* Created by lcy on 18/1/9.
*/
@Data
public class BCodeLxc {
/*容器id*/
private String containerId;
/*已开启时间*/
private String totalMin;
/*开始时间*/
private Date startDate;
/*结束时间*/
private Date shutdownDate;
/*开课id*/
private String sl;
/*编程code java_project: '0002' html_project: '1002'*/
private String code;
}
package org.rcisoft.business.bcode.entity;
package org.rcisoft.business.bcode.model;
/**
* Created by lcy on 18/1/4.
......
package org.rcisoft.business.bcode.service;
import org.rcisoft.business.bcode.model.BCodeLxc;
/**
* Created by lcy on 18/1/9.
*/
public interface BCodeLxcService {
/**
* 打开code 容器
* @param lxc
*/
public void startBCodeLxc(BCodeLxc lxc);
/**
* 关闭code 容器
* @param lxc
*/
public void stopBCodeLxc(BCodeLxc lxc);
/**
* 清理 code 容器
* @param lxc
*/
public void clearCodeLxc(BCodeLxc lxc);
}
package org.rcisoft.business.bcode.service;
import org.rcisoft.business.bcode.entity.BCodeFile;
import org.rcisoft.business.bcode.model.BCodeFile;
/**
* Created by lcy on 18/1/3.
......
package org.rcisoft.business.bcode.service.impl;
import lombok.extern.slf4j.Slf4j;
import org.rcisoft.business.bcode.model.BCodeLxc;
import org.rcisoft.business.bcode.service.BCodeLxcService;
import org.rcisoft.common.component.Global;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Created by lcy on 18/1/9.
*/
@Service
@Slf4j
public class BCodeLxcServiceImpl implements BCodeLxcService {
@Autowired
private Global global;
@Override
public void startBCodeLxc(BCodeLxc lxc) {
}
@Override
public void stopBCodeLxc(BCodeLxc lxc) {
}
@Override
public void clearCodeLxc(BCodeLxc lxc) {
}
}
......@@ -2,10 +2,11 @@ package org.rcisoft.business.bcode.service.impl;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import org.rcisoft.business.bcode.entity.BCodeFile;
import org.rcisoft.business.bcode.entity.CodeType;
import org.rcisoft.business.bcode.model.BCodeFile;
import org.rcisoft.business.bcode.model.CodeType;
import org.rcisoft.business.bcode.service.BCodeService;
import org.rcisoft.common.component.Global;
import org.rcisoft.core.service.RcRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
......@@ -28,6 +29,9 @@ public class BCodeServiceImpl implements BCodeService {
@Autowired
private Global global;
@Autowired
private RcRedisService rcRedisServiceImpl;
/**
* 读文件
* @param slId
......
......@@ -7,12 +7,29 @@ import redis.clients.jedis.Jedis;
*/
public interface RcRedisService {
/**
* 获取jedis
* @return
*/
public Jedis getResource();
/**
* 归还jedis
* @param jedis
*/
public void returnResource(Jedis jedis);
/**
* 赋值
* @param key
* @param value
*/
public void set(String key, String value);
/**
* 取值
* @param key
* @return
*/
public String get(String key);
}
......@@ -77,7 +77,7 @@ mysql
lessonLxc:{
userid:{
"containerId":"",
"expiredMin":23,
"totalMin":23,
"startDate":"2017-02-11 12:23:11",
"shutdownDate":"2017-02-11 12:53:11",
"sl":"",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment