MCPcopy Create free account
hub / github.com/crate/crate / TaskId

Method TaskId

server/src/main/java/org/elasticsearch/tasks/TaskId.java:42–48  ·  view source on GitHub ↗
(String nodeId, long id)

Source from the content-addressed store, hash-verified

40 private final long id;
41
42 public TaskId(String nodeId, long id) {
43 if (nodeId.isEmpty()) {
44 throw new IllegalArgumentException("0 length nodeIds are reserved for EMPTY_TASK_ID and are otherwise invalid.");
45 }
46 this.nodeId = nodeId;
47 this.id = id;
48 }
49
50 /**
51 * Builds {@link #EMPTY_TASK_ID}.

Callers

nothing calls this directly

Calls 5

hasLengthMethod · 0.95
splitMethod · 0.95
parseLongMethod · 0.80
equalsMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected