protected void shutDown() throws Exception { AgentManager am = AgentManager.getInstance(); am.stopAllThreads(); if (httpServer != null) { stopHttpServer(httpServer); } super.shutDown(); }
protected void startUp() throws Exception { super.startUp(); httpServer = createHttpServer(); configureHttpServer(httpServer); configurePartHandlers(); configureLanguageModels(); PhotoFactory.initialize(); AgentManager am = AgentManager.getInstance(); am.startAllThreads(); startHttpServer(httpServer); }