mirror of
https://gitee.com/BDWare/common
synced 2025-01-26 01:34:14 +00:00
Merge branch 'master' of https://gitee.com/BDWare/common
This commit is contained in:
commit
8d15c15192
@ -25,15 +25,14 @@ sourceCompatibility = 1.8
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api project(":gmhelper")
|
api project(":gmhelper")
|
||||||
|
|
||||||
api 'berkeleydb:je:3.2.76'
|
api 'berkeleydb:je:3.2.76'
|
||||||
// api 'com.fifesoft:rsyntaxtextarea:3.1.3'
|
// api 'com.fifesoft:rsyntaxtextarea:3.1.3'
|
||||||
api 'commons-io:commons-io:2.11.0'
|
api 'commons-io:commons-io:2.11.0'
|
||||||
api 'io.netty:netty-all:4.1.63.Final'
|
api 'io.netty:netty-all:4.1.63.Final'
|
||||||
api 'org.antlr:antlr4:4.9.2'
|
api 'org.antlr:antlr4:4.9.2'
|
||||||
api 'commons-codec:commons-codec:1.5'
|
api 'commons-codec:commons-codec:1.5'
|
||||||
api 'org.apache.logging.log4j:log4j-core:2.17.0'
|
api 'org.apache.logging.log4j:log4j-core:2.17.2'
|
||||||
api 'org.apache.logging.log4j:log4j-api:2.17.0'
|
api 'org.apache.logging.log4j:log4j-api:2.17.2'
|
||||||
//api 'org.apache.velocity:velocity-engine-core:2.3'
|
//api 'org.apache.velocity:velocity-engine-core:2.3'
|
||||||
api 'org.rocksdb:rocksdbjni:6.22.1'
|
api 'org.rocksdb:rocksdbjni:6.22.1'
|
||||||
|
|
||||||
|
@ -21,4 +21,5 @@ public abstract class JSEngine implements ScriptEngine {
|
|||||||
*/
|
*/
|
||||||
public abstract ContractResult loadContract(
|
public abstract ContractResult loadContract(
|
||||||
Contract contract, ContractNode contractNode, boolean isInsnLim);
|
Contract contract, ContractNode contractNode, boolean isInsnLim);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,10 @@ public class ServiceServer extends Thread {
|
|||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
|
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
|
||||||
EventLoopGroup workerGroup = new NioEventLoopGroup();
|
|
||||||
|
|
||||||
ServerBootstrap b = new ServerBootstrap();
|
ServerBootstrap b = new ServerBootstrap();
|
||||||
b.option(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT);
|
b.option(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT);
|
||||||
b.group(bossGroup, workerGroup)
|
b.group(bossGroup)
|
||||||
.channel(NioServerSocketChannel.class)
|
.channel(NioServerSocketChannel.class)
|
||||||
.option(ChannelOption.SO_BACKLOG, 100)
|
.option(ChannelOption.SO_BACKLOG, 100)
|
||||||
.option(ChannelOption.SO_REUSEADDR, false)
|
.option(ChannelOption.SO_REUSEADDR, false)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.bdware.sc.node;
|
package org.bdware.sc.node;
|
||||||
|
|
||||||
|
import com.google.gson.JsonElement;
|
||||||
import org.bdware.sc.bean.ContractExecType;
|
import org.bdware.sc.bean.ContractExecType;
|
||||||
import org.bdware.sc.py.bean.PYPackage;
|
import org.bdware.sc.py.bean.PYPackage;
|
||||||
|
|
||||||
@ -18,6 +19,7 @@ public class ContractManifest {
|
|||||||
private List<Permission> permissions;
|
private List<Permission> permissions;
|
||||||
public boolean startAtUnpack;
|
public boolean startAtUnpack;
|
||||||
public String sourcePath;
|
public String sourcePath;
|
||||||
|
public JsonElement createParam;
|
||||||
|
|
||||||
public List<PYPackage> getPyDependences() {
|
public List<PYPackage> getPyDependences() {
|
||||||
return pyDependences;
|
return pyDependences;
|
||||||
|
@ -3,5 +3,6 @@ package org.bdware.sc.bean;
|
|||||||
public enum DefaultRouteRule {
|
public enum DefaultRouteRule {
|
||||||
byRequester,
|
byRequester,
|
||||||
byArgHash,
|
byArgHash,
|
||||||
byTarget;
|
byTarget,
|
||||||
|
byFunc;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,8 @@ import java.io.Serializable;
|
|||||||
public class RouteInfo implements Serializable {
|
public class RouteInfo implements Serializable {
|
||||||
public DefaultRouteRule useDefault;
|
public DefaultRouteRule useDefault;
|
||||||
|
|
||||||
|
public String funcName;
|
||||||
|
|
||||||
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
||||||
RouteInfo info = new RouteInfo();
|
RouteInfo info = new RouteInfo();
|
||||||
info.useDefault = null;
|
info.useDefault = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user