Added SimpleTask.isAlive

This commit is contained in:
M66B
2022-04-24 10:37:47 +02:00
parent 491b3cec18
commit 842bf19dd2
3 changed files with 23 additions and 23 deletions

View File

@@ -71,6 +71,12 @@ public class CoalMine {
reporter.getLabels().add("started=" + label);
}
}
HeapField hfDestroyed = instance.get(className, "destroyed");
if (hfDestroyed != null) {
Boolean destroyed = hfDestroyed.getValue().getAsBoolean();
if (destroyed != null)
reporter.getLabels().add("destroyed=" + destroyed);
}
} else if (className.equals(TwoStateOwner.class.getName())) {
HeapField hfState = instance.get(className, "state");
if (hfState != null) {