mirror of
https://gitee.com/BDWare/cm
synced 2025-01-10 01:44:04 +00:00
update logs
This commit is contained in:
parent
cdf94fc50d
commit
8efc164d99
@ -139,18 +139,15 @@ public class ContractClient {
|
||||
String strEvent = get.syncGet("", "getDeclaredEvents", "");
|
||||
LOGGER.debug("event: " + strEvent);
|
||||
contractMeta.declaredEvents = JsonUtil.fromJson(strEvent,
|
||||
new TypeToken<Map<String, REventSemantics>>() {
|
||||
}.getType());
|
||||
new TypeToken<Map<String, REventSemantics>>() {}.getType());
|
||||
LOGGER.info("initProps ---- position-----3");
|
||||
contractMeta.dependentContracts =
|
||||
JsonUtil.fromJson(get.syncGet("", "getDependentContracts", ""),
|
||||
new TypeToken<Set<String>>() {
|
||||
}.getType());
|
||||
new TypeToken<Set<String>>() {}.getType());
|
||||
LOGGER.info("initProps ---- position-----4");
|
||||
contractMeta.exportedFunctions =
|
||||
JsonUtil.fromJson(get.syncGet("", "getExportedFunctions", ""),
|
||||
new TypeToken<List<FunctionDesp>>() {
|
||||
}.getType());
|
||||
new TypeToken<List<FunctionDesp>>() {}.getType());
|
||||
contractMeta.logDetail = new HashMap<>();
|
||||
for (FunctionDesp func : contractMeta.exportedFunctions) {
|
||||
StringBuilder str = new StringBuilder();
|
||||
@ -180,8 +177,7 @@ public class ContractClient {
|
||||
|
||||
String anno = get.syncGet("", "getAnnotations", "");
|
||||
contractMeta.annotations =
|
||||
JsonUtil.fromJson(anno, new TypeToken<List<AnnotationNode>>() {
|
||||
}.getType());
|
||||
JsonUtil.fromJson(anno, new TypeToken<List<AnnotationNode>>() {}.getType());
|
||||
|
||||
} catch (Exception e) {
|
||||
// supoort contract process before version 0.70
|
||||
@ -265,7 +261,7 @@ public class ContractClient {
|
||||
pbParameters.toArray(result);
|
||||
Constructor<ProcessBuilder> pbc =
|
||||
ProcessBuilder.class.getDeclaredConstructor(String[].class);
|
||||
builder = pbc.newInstance(new Object[]{result});
|
||||
builder = pbc.newInstance(new Object[] {result});
|
||||
|
||||
File directory = new File("./");
|
||||
LOGGER.debug("[CMD] path: " + directory.getAbsolutePath());
|
||||
|
@ -104,7 +104,7 @@ public class ContractManager {
|
||||
}
|
||||
|
||||
private static String convertToBytes(long traffic) {
|
||||
String[] unit = new String[]{"B", "KB", "MB", "GB", "TB"};
|
||||
String[] unit = new String[] {"B", "KB", "MB", "GB", "TB"};
|
||||
double d = traffic;
|
||||
int i;
|
||||
for (i = 0; i < unit.length - 1; i++) {
|
||||
@ -1802,8 +1802,7 @@ public class ContractManager {
|
||||
logsDB.put(contractName, sb);
|
||||
}
|
||||
|
||||
public void changePermission(String contractFileName, String pmList) {
|
||||
}
|
||||
public void changePermission(String contractFileName, String pmList) {}
|
||||
|
||||
// public String getSyncType(String contractName) {
|
||||
// ContractClient client = getByName(contractName);
|
||||
|
Loading…
Reference in New Issue
Block a user