public void server(final String[] args) throws Exception {
  final Map<String,Object> options=getStartOptions(args);
  workingDirectory=IOUtils.tryGetCanonicalFileElseGetAbsoluteFile((File)options.get(DIR));
  writeStatus(createStatus(this.basename,STARTING,OSProcess.getId()));
  final Agent agent=createAgent((Properties)options.get(AGENT_PROPS));
  final Thread thread=createAgentProcessThread(createAgentProcessThreadGroup(),agent);
  thread.setDaemon(true);
  thread.start();
  pollAgentForPendingShutdown(agent);
}

public void server ( final String [ ] args ) throws Exception { final Map < String , Object > options = getStartOptions ( args ) ; workingDirectory = IOUtils . tryGetCanonicalFileElseGetAbsoluteFile ( ( File ) options . get ( DIR ) ) ; writeStatus ( createStatus ( this . basename , STARTING , OSProcess . getId ( ) ) ) ; final Agent agent = createAgent ( ( Properties ) options . get ( AGENT_PROPS ) ) ; final Thread thread = createAgentProcessThread ( createAgentProcessThreadGroup ( ) , agent ) ; thread . setDaemon ( true ) ; thread . start ( ) ; pollAgentForPendingShutdown ( agent ) ; }
starts the gemfire jmx agent " server " process with the given command line arguments .
