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

Method tryRollback

ZezeJava/ZezeJava/src/main/java/Zeze/Hot/HotAgent.java:149–157  ·  view source on GitHub ↗
(long id)

Source from the content-addressed store, hash-verified

147 }
148
149 public void tryRollback(long id) {
150 var hotManager = connector.TryGetReadySocket();
151 var r = new TryRollback();
152 r.Argument.setDistributeId(id);
153 r.SendForWait(hotManager).await();
154 if (r.getResultCode() != 0) {
155 throw new RuntimeException("tryRollback=" + IModule.getErrorCode(r.getResultCode()));
156 }
157 }
158
159 public void distribute(File distributeDir) throws Exception {
160 var files = distributeDir.listFiles();

Callers 1

packMethod · 0.80

Calls 6

getErrorCodeMethod · 0.95
awaitMethod · 0.65
TryGetReadySocketMethod · 0.45
setDistributeIdMethod · 0.45
SendForWaitMethod · 0.45
getResultCodeMethod · 0.45

Tested by

no test coverage detected