mirror of
https://gitee.com/BDWare/common
synced 2025-01-26 09:44:12 +00:00
add raft
This commit is contained in:
parent
34cedb8a13
commit
f74c4f040f
@ -66,6 +66,7 @@ public class ServiceServer extends Thread {
|
|||||||
new ChannelInitializer<SocketChannel>() {
|
new ChannelInitializer<SocketChannel>() {
|
||||||
@Override
|
@Override
|
||||||
protected void initChannel(SocketChannel arg0) {
|
protected void initChannel(SocketChannel arg0) {
|
||||||
|
LOGGER.info("Connected:" + arg0.remoteAddress() + " " + arg0.localAddress());
|
||||||
arg0.pipeline()
|
arg0.pipeline()
|
||||||
.addLast(new LengthFieldBasedFrameCodec())
|
.addLast(new LengthFieldBasedFrameCodec())
|
||||||
.addLast(new AsyncInboundHandler(ServiceServer.this));
|
.addLast(new AsyncInboundHandler(ServiceServer.this));
|
||||||
|
@ -11,7 +11,8 @@ public enum ContractExecType implements Serializable {
|
|||||||
RequestAllResponseAll,
|
RequestAllResponseAll,
|
||||||
Sharding,//分片执行模式
|
Sharding,//分片执行模式
|
||||||
SelfAdaptiveSharding,// self-adaptive sharding
|
SelfAdaptiveSharding,// self-adaptive sharding
|
||||||
PBFT; //PBFT
|
PBFT, //PBFT
|
||||||
|
RAFT;
|
||||||
|
|
||||||
|
|
||||||
public static ContractExecType getContractTypeByInt(int i) {
|
public static ContractExecType getContractTypeByInt(int i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user