protected Status getStatus() throws Exception {
    Status status;

    if (new File(workingDirectory, statusFileName).exists()) {
      status = spinReadStatus();
    } else {
      status = createStatus(basename, SHUTDOWN, 0,
          String.format("%s is not running in the specified working directory: (%s).",
              basename, workingDirectory),
          null);
    }

    return status;
  }
Returns the <code>Status</code> of the GemFire JMX Agent in the <code>workingDirectory</code>.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java