提交 plantuml 图, 对细节修改都要修改内容 有绩可循

This commit is contained in:
huangsimin
2022-07-05 13:59:07 +08:00
parent 790554d773
commit f9b1ca95d8
5 changed files with 75 additions and 7 deletions

View File

@@ -49,14 +49,14 @@ public class CollectPackets extends CollectPacketsServerImplBase {
Config.UseConfig( (cnf) -> {
var tid = cnf.get("test_id");
log.info("{}",tid);
log.info("config {}",tid);
return null;
});
Map<String, Function<Any, Object>> domap = new HashMap();
System.out.println( Any.pack(ApmBaseDataFlow.newBuilder().build()).getTypeUrl() );
System.out.println( AppFlow.class.hashCode() );
log.info("{}", Any.pack(ApmBaseDataFlow.newBuilder().build()).getTypeUrl() );
log.info("{}", AppFlow.class.hashCode() );
domap.put(Any.pack(ApmBaseDataFlow.newBuilder().build()).getTypeUrl(), (p)->{
try {
@@ -131,7 +131,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", 50051);
var managedChannelBuilder = ManagedChannelBuilder.forAddress("10.1.1.117", 60010);
var channel = managedChannelBuilder.usePlaintext().build();
var stub = CollectPacketsServerGrpc.newBlockingStub(channel);
// stub.withCompression("snappy");

View File

@@ -3,7 +3,7 @@
class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>
%d{yyyyMMdd HH:mm:ss.SSS} %-5level%thread(%file:%line): %msg%n
%d{yyyyMMdd HH:mm:ss.SSS} %-5level%thread\(%file:%line\): %msg%n
</pattern>
</encoder>
</appender>