protected static Status createStatus(final String basename, final int state, final int pid,
      final String msg, final Throwable t) {
    final Status status = new Status(basename);
    status.state = state;
    status.pid = pid;
    status.msg = msg;
    status.exception = t;
    return status;
  }
Sets the status of the GemFire JMX Agent by serializing a <code>Status</code> object to a
status file in the Agent's working directory.
<p>

@param status the Status object representing the state of the Agent process to persist to disk.
@return the written Status object.
@throws IOException if the Status could not be successfully persisted to disk.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java