时序图 添加

This commit is contained in:
huangsimin 2022-07-05 18:23:30 +08:00
parent f9b1ca95d8
commit 457e3334eb
3 changed files with 15 additions and 10 deletions

View File

@ -8,10 +8,15 @@ package "探针组" {
}
node "数据流" {
grpc1 --> [数据流1]
grpc2 --> [数据流2]
grpc3 --> [数据流3]
grpc4 --> [数据流4]
grpc1 --> [数据流master]
grpc2 --> [数据流master]
grpc3 --> [数据流master]
grpc4 --> [数据流master]
[数据流master] --> [数据流master]
[数据流master] --> [数据流slave1]
[数据流master] --> [数据流slave2]
[数据流master] --> [数据流slave3]
}
node "配置中心" {

5
design_main_1.puml Normal file
View File

@ -0,0 +1,5 @@
@startuml 细节图
@enduml

View File

@ -111,11 +111,6 @@ public class CollectPackets extends CollectPacketsServerImplBase {
});
// private final ManagedChannelBuilder<?> managedChannelBuilder;
// private final CollectPacketsServerStub blockingStub;
@ -131,7 +126,7 @@ public class CollectPackets extends CollectPacketsServerImplBase {
// MyThing.Response response = blockingStub.sayHi(request);
// System.out.println(response.getName());
// }
var managedChannelBuilder = ManagedChannelBuilder.forAddress("10.1.1.117", 60010);
var managedChannelBuilder = ManagedChannelBuilder.forAddress("10.1.1.117", 60017);
var channel = managedChannelBuilder.usePlaintext().build();
var stub = CollectPacketsServerGrpc.newBlockingStub(channel);
// stub.withCompression("snappy");