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

Method closeFile

ZezeJava/ZezeJava/src/main/java/Zeze/Hot/HotAgent.java:104–112  ·  view source on GitHub ↗
(String fileName, Binary md5)

Source from the content-addressed store, hash-verified

102 }
103
104 public void closeFile(String fileName, Binary md5) {
105 var hotManager = connector.TryGetReadySocket();
106 var r = new CloseFile();
107 r.Argument.setFileName(fileName);
108 r.Argument.setMd5(md5);
109 r.SendForWait(hotManager).await();
110 if (r.getResultCode() != 0)
111 throw new RuntimeException("close file error. " + IModule.getErrorCode(r.getResultCode()));
112 }
113
114 public void prepareDistribute(long id) {
115 var hotManager = connector.TryGetReadySocket();

Callers 1

distributeMethod · 0.95

Calls 7

getErrorCodeMethod · 0.95
awaitMethod · 0.65
TryGetReadySocketMethod · 0.45
setFileNameMethod · 0.45
setMd5Method · 0.45
SendForWaitMethod · 0.45
getResultCodeMethod · 0.45

Tested by

no test coverage detected