-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5.20 格式的修订 异常类的处理 crazy 遇到个就是之前不会注意的 就是日志显示级别
- Loading branch information
1 parent
a9a9d1a
commit 2c4f01d
Showing
28 changed files
with
229 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
zyt-rpc-common/src/main/java/annotation/CompressSelector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package annotation; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* @Author ףӢ̨ըÓÍÌõ | ||
* @Time : 2022/5/20 20:55 | ||
**/ | ||
|
||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface CompressSelector { | ||
String CompressTool(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
zyt-rpc-common/src/main/java/configuration/GlobalConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package configuration; | ||
|
||
import annotation.*; | ||
import loadbalance.RandomLoadBalance; | ||
|
||
/** | ||
* @Author 祝英台炸油条 | ||
* @Time : 2022/5/20 20:42 | ||
* 全局配置 将所有的配置都配置在它上面 | ||
* 解压缩器 序列化器 注册中心 负载均衡 心跳机制等 | ||
**/ | ||
/* | ||
@RegistryChosen | ||
zookeeper zk注册中心 | ||
nacos nacos实现注册中心 | ||
zkCurator Curator协助操作注册中心 | ||
*/ | ||
|
||
/* | ||
@CodecSelector | ||
ObjectCodec | ||
protoc | ||
kryo | ||
protostuff | ||
hessian | ||
fst | ||
avro | ||
jackson | ||
fastjson | ||
gson | ||
*/ | ||
|
||
/* | ||
@LoadBalanceMethodImpl | ||
RandomLoadBalance.class | ||
AccessLoadBalance.class | ||
ConsistentLoadBalance.class | ||
*/ | ||
|
||
/* | ||
@CompressSelector | ||
BZipUtils | ||
DeflaterUtils | ||
GZipUtils | ||
Lz4Utils | ||
ZipUtils | ||
*/ | ||
|
||
|
||
@CompressFunction(isOpenFunction = true) | ||
@CompressSelector(CompressTool = "DeflaterUtils") | ||
@HeartBeatTool(isOpenFunction = true, | ||
readerIdleTimeSeconds = 4, | ||
writerIdleTimeSeconds = 4, | ||
allIdleTimeSeconds = 2) | ||
@LoadBalanceMethodImpl(chosenMethod = RandomLoadBalance.class) | ||
@RegistryChosen(registryName = "zookeeper") | ||
@RpcSerializationSelector(RpcSerialization = "fastjson") | ||
public class GlobalConfiguration { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.