MCPcopy Create free account
hub / github.com/e2wugui/zeze / call

Method call

ZezeJava/ZezeJavaTest/src/Infinite/Tasks.java:105–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 @Override
106 public long call() {
107 var name = getClass().getName();
108 var result = process();
109 if (result == 0) {
110 var txn = Transaction.getCurrent();
111 if (txn != null)
112 txn.runWhileCommit(() -> getSuccessCounter(name).increment());
113 else
114 getSuccessCounter(name).increment();
115 } else
116 Simulate.logger.error("{}.process() = {}", name, result);
117 return result;
118 }
119 }
120
121 static final class TaskFactory {

Callers 8

testMethod · 0.95
StartMethod · 0.95
StopMethod · 0.95
TriggerTimerLocalMethod · 0.95
LoadTimerLocalMethod · 0.95
StartLastMethod · 0.95
StopBeforeMethod · 0.95

Calls 6

processMethod · 0.95
getCurrentMethod · 0.95
getSuccessCounterMethod · 0.80
getNameMethod · 0.65
incrementMethod · 0.65
runWhileCommitMethod · 0.45

Tested by

no test coverage detected