Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-WIC-Cnf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-WIC-Cnf
Commits
d8be2e7c
Commit
d8be2e7c
authored
Sep 05, 2020
by
Elf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加注释,修改文件路径
parent
63dfbc47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
apps/cnf-distributed-business-computing/dbc-business-server/src/main/java/top/ninwoo/dbc/server/controller/ServerController.java
...va/top/ninwoo/dbc/server/controller/ServerController.java
+1
-0
apps/cnf-distributed-business-computing/dbc-business-server/src/main/java/top/ninwoo/dbc/server/serviceimpl/FileServiceImpl.java
...va/top/ninwoo/dbc/server/serviceimpl/FileServiceImpl.java
+2
-1
apps/cnf-distributed-file-transfer/dfs-transfer-server/src/main/java/top/ninwoo/app/dfs/controller/FileSliceTranferController.java
...ninwoo/app/dfs/controller/FileSliceTranferController.java
+1
-1
No files found.
apps/cnf-distributed-business-computing/dbc-business-server/src/main/java/top/ninwoo/dbc/server/controller/ServerController.java
View file @
d8be2e7c
...
@@ -42,6 +42,7 @@ public class ServerController {
...
@@ -42,6 +42,7 @@ public class ServerController {
//完成分散计算
//完成分散计算
fileService
.
fileComputing
(
fileSlice
);
fileService
.
fileComputing
(
fileSlice
);
System
.
out
.
println
(
"image gray sucess"
);
return
"success"
;
return
"success"
;
}
}
...
...
apps/cnf-distributed-business-computing/dbc-business-server/src/main/java/top/ninwoo/dbc/server/serviceimpl/FileServiceImpl.java
View file @
d8be2e7c
...
@@ -55,7 +55,8 @@ public class FileServiceImpl implements FileService {
...
@@ -55,7 +55,8 @@ public class FileServiceImpl implements FileService {
}
}
}
}
//这里需提供新的文件输出
//这里需提供新的文件输出
ImageIO
.
write
(
grayImage
,
"jpg"
,
new
File
(
"/out.jpg"
));
ImageIO
.
write
(
grayImage
,
"jpg"
,
new
File
(
"\\tmp\\statics\\out.jpg"
));
System
.
out
.
println
(
"download sucess"
);
return
true
;
return
true
;
}
}
}
}
...
...
apps/cnf-distributed-file-transfer/dfs-transfer-server/src/main/java/top/ninwoo/app/dfs/controller/FileSliceTranferController.java
View file @
d8be2e7c
...
@@ -28,7 +28,7 @@ public class FileSliceTranferController {
...
@@ -28,7 +28,7 @@ public class FileSliceTranferController {
}
}
Map
<
Integer
,
FileSlice
>
sliceMap
=
fileSliceMap
.
get
(
fileSlice
.
getFileId
());
Map
<
Integer
,
FileSlice
>
sliceMap
=
fileSliceMap
.
get
(
fileSlice
.
getFileId
());
sliceMap
.
put
(
fileSlice
.
getSliceId
(),
fileSlice
);
sliceMap
.
put
(
fileSlice
.
getSliceId
(),
fileSlice
);
//todo 增加保存的函数
return
"success"
;
return
"success"
;
}
}
...
...
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