package org.cobbzilla.util.daemon;

import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
public enum TerminationRequestResult {

    alive (true),
    dead (false),
    interrupted_alive (true),
    interrupted_dead (false),
    terminated (false);

    @Getter private final boolean running;

    @JsonCreator public static TerminationRequestResult fromString (String val) { return valueOf(val.toLowerCase()); }

}

@@ -364,16 +364,113 @@
 nning;%0A%0A
+    public boolean alive () %7B return running; %7D%0A    public boolean dead () %7B return !running; %7D%0A%0A
     @Jso

add alive/dead methods to TerminationRequestResult