MCPcopy Create free account
hub / github.com/akeranen/the-one / canStartTransfer

Method canStartTransfer

routing/ActiveRouter.java:207–216  ·  view source on GitHub ↗

Makes rudimentary checks (that we have at least one message and one connection) about can this router start transfer. @return True if router can start transfer, false if not

()

Source from the content-addressed store, hash-verified

205 * @return True if router can start transfer, false if not
206 */
207 protected boolean canStartTransfer() {
208 if (this.getNrofMessages() == 0) {
209 return false;
210 }
211 if (this.getConnections().size() == 0) {
212 return false;
213 }
214
215 return true;
216 }
217
218 /**
219 * Checks if router "wants" to start receiving message (i.e. router

Callers 11

updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls 2

getConnectionsMethod · 0.95
getNrofMessagesMethod · 0.45

Tested by

no test coverage detected