From: <tk...@hy...> - 2008-05-23 01:24:10
|
Author: tkeeney Date: 2008-05-22 18:24:09 -0700 (Thu, 22 May 2008) New Revision: 9647 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=9647 Modified: trunk/src/org/hyperic/hq/agent/server/AgentCommandsService.java Log: Delegate agent restart to AgentUpgradeManager. Modified: trunk/src/org/hyperic/hq/agent/server/AgentCommandsService.java =================================================================== --- trunk/src/org/hyperic/hq/agent/server/AgentCommandsService.java 2008-05-23 01:23:34 UTC (rev 9646) +++ trunk/src/org/hyperic/hq/agent/server/AgentCommandsService.java 2008-05-23 01:24:09 UTC (rev 9647) @@ -239,11 +239,7 @@ * @see org.hyperic.hq.agent.client.AgentCommandsClient#restart() */ public void restart() throws AgentRemoteException { - Timer t = new Timer(); - t.schedule(new TimerTask() { - public void run() { - WrapperManager.restart(); - }} , 0); + AgentUpgradeManager.restartJVM(); } /** |