protected Status readStatus() throws IOException {
  FileInputStream fileIn=null;
  ObjectInputStream objectIn=null;
  try {
    fileIn=new FileInputStream(new File(workingDirectory,statusFileName));
    objectIn=new ObjectInputStream(fileIn);
    this.status=(Status)objectIn.readObject();
    return this.status;
  }
 catch (  ClassNotFoundException e) {
    throw new RuntimeException(e);
  }
 finally {
    IOUtils.close(objectIn);
    IOUtils.close(fileIn);
  }
}

protected Status readStatus ( ) throws IOException { FileInputStream fileIn = null ; ObjectInputStream objectIn = null ; try { fileIn = new FileInputStream ( new File ( workingDirectory , statusFileName ) ) ; objectIn = new ObjectInputStream ( fileIn ) ; this . status = ( Status ) objectIn . readObject ( ) ; return this . status ; } catch ( ClassNotFoundException e ) { throw new RuntimeException ( e ) ; } finally { IOUtils . close ( objectIn ) ; IOUtils . close ( fileIn ) ; } }
reads the gemfire jmx agent ' s status from the status file ( . agent . ser ) in it ' s working directory . < p / >
