Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
97223089
Commit
97223089
authored
Jan 09, 2018
by
李丛阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc 容器配置
parent
84612a5d
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
130 additions
and
8 deletions
+130
-8
pom.xml
pom.xml
+3
-1
BCodeFile.java
...main/java/org/rcisoft/business/bcode/model/BCodeFile.java
+1
-1
BCodeLxc.java
src/main/java/org/rcisoft/business/bcode/model/BCodeLxc.java
+30
-0
CodeType.java
src/main/java/org/rcisoft/business/bcode/model/CodeType.java
+1
-1
BCodeLxcService.java
...a/org/rcisoft/business/bcode/service/BCodeLxcService.java
+29
-0
BCodeService.java
...java/org/rcisoft/business/bcode/service/BCodeService.java
+1
-1
BCodeLxcServiceImpl.java
...soft/business/bcode/service/impl/BCodeLxcServiceImpl.java
+40
-0
BCodeServiceImpl.java
...rcisoft/business/bcode/service/impl/BCodeServiceImpl.java
+6
-2
RcRedisService.java
src/main/java/org/rcisoft/core/service/RcRedisService.java
+18
-1
architecture.md
src/main/resources/architecture.md
+1
-1
No files found.
pom.xml
View file @
97223089
...
...
@@ -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>
...
...
src/main/java/org/rcisoft/business/bcode/
entity
/BCodeFile.java
→
src/main/java/org/rcisoft/business/bcode/
model
/BCodeFile.java
View file @
97223089
package
org
.
rcisoft
.
business
.
bcode
.
entity
;
package
org
.
rcisoft
.
business
.
bcode
.
model
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
...
...
src/main/java/org/rcisoft/business/bcode/model/BCodeLxc.java
0 → 100644
View file @
97223089
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
;
}
src/main/java/org/rcisoft/business/bcode/
entity
/CodeType.java
→
src/main/java/org/rcisoft/business/bcode/
model
/CodeType.java
View file @
97223089
package
org
.
rcisoft
.
business
.
bcode
.
entity
;
package
org
.
rcisoft
.
business
.
bcode
.
model
;
/**
* Created by lcy on 18/1/4.
...
...
src/main/java/org/rcisoft/business/bcode/service/BCodeLxcService.java
0 → 100644
View file @
97223089
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
);
}
src/main/java/org/rcisoft/business/bcode/service/BCodeService.java
View file @
97223089
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.
...
...
src/main/java/org/rcisoft/business/bcode/service/impl/BCodeLxcServiceImpl.java
0 → 100644
View file @
97223089
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
)
{
}
}
src/main/java/org/rcisoft/business/bcode/service/impl/BCodeServiceImpl.java
View file @
97223089
...
...
@@ -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
...
...
src/main/java/org/rcisoft/core/service/RcRedisService.java
View file @
97223089
...
...
@@ -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
);
}
src/main/resources/architecture.md
View file @
97223089
...
...
@@ -77,7 +77,7 @@ mysql
lessonLxc:{
userid:{
"containerId":"",
"
expired
Min":23,
"
total
Min":23,
"startDate":"2017-02-11 12:23:11",
"shutdownDate":"2017-02-11 12:53:11",
"sl":"",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment