Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Distributed Computing and Network Fusion System
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
WirelessInformationCollaborate
Distributed Computing and Network Fusion System
Commits
60aee3cd
Commit
60aee3cd
authored
Sep 05, 2020
by
ymwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中间结果存储
parent
ad5cb34d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
apps/cnf-distributed-business-computing/dbc-business-client/src/main/java/top/ninwoo/dbc/client/service/FileService.java
.../main/java/top/ninwoo/dbc/client/service/FileService.java
+3
-3
No files found.
apps/cnf-distributed-business-computing/dbc-business-client/src/main/java/top/ninwoo/dbc/client/service/FileService.java
View file @
60aee3cd
...
@@ -103,7 +103,7 @@ public class FileService{
...
@@ -103,7 +103,7 @@ public class FileService{
System
.
out
.
println
(
ipList
.
length
);
System
.
out
.
println
(
ipList
.
length
);
System
.
out
.
println
(
Arrays
.
toString
(
ipList
));
System
.
out
.
println
(
Arrays
.
toString
(
ipList
));
int
sliceNum
=
ipList
.
length
;
int
sliceNum
=
10
;
// todo 这里需要制定文件的fileId
// todo 这里需要制定文件的fileId
SplitResult
splitResult
=
distributedComService
.
fileSplit
(
bufferedImage
,
sliceNum
);
SplitResult
splitResult
=
distributedComService
.
fileSplit
(
bufferedImage
,
sliceNum
);
...
@@ -160,7 +160,7 @@ public class FileService{
...
@@ -160,7 +160,7 @@ public class FileService{
for
(
int
i
=
0
;
i
<
wxName_list
.
length
;
i
++){
for
(
int
i
=
0
;
i
<
wxName_list
.
length
;
i
++){
ipList
[
i
]
=
getIpByAppName
(
clusterId
,
wxName_list
[
i
]);
//通过卫星名字获取卫星ip
ipList
[
i
]
=
getIpByAppName
(
clusterId
,
wxName_list
[
i
]);
//通过卫星名字获取卫星ip
}
}
int
sliceNum
=
ipList
.
length
;
int
sliceNum
=
10
;
//int sliceNum = ipList.length;
//int sliceNum = ipList.length;
Set
<
FileSlice
>
result
=
new
HashSet
<>();
Set
<
FileSlice
>
result
=
new
HashSet
<>();
/* for (String ip : ipList) {
/* for (String ip : ipList) {
...
@@ -169,7 +169,7 @@ public class FileService{
...
@@ -169,7 +169,7 @@ public class FileService{
}*/
}*/
//异常处理
//异常处理
for
(
int
index
=
0
;
index
<
ipList
.
length
;
index
++)
{
for
(
int
index
=
0
;
index
<
10
;
index
++)
{
try
{
try
{
Set
<
FileSlice
>
fileSliceSet
=
getFileSlice
(
ipList
[
index
],
fileId
);
Set
<
FileSlice
>
fileSliceSet
=
getFileSlice
(
ipList
[
index
],
fileId
);
result
.
addAll
(
fileSliceSet
);
result
.
addAll
(
fileSliceSet
);
...
...
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