Esempio n. 1
0
  protected void shutDown() throws Exception {
    AgentManager am = AgentManager.getInstance();
    am.stopAllThreads();

    if (httpServer != null) {
      stopHttpServer(httpServer);
    }

    super.shutDown();
  }
Esempio n. 2
0
  protected void startUp() throws Exception {
    super.startUp();

    httpServer = createHttpServer();
    configureHttpServer(httpServer);

    configurePartHandlers();
    configureLanguageModels();

    PhotoFactory.initialize();

    AgentManager am = AgentManager.getInstance();
    am.startAllThreads();

    startHttpServer(httpServer);
  }