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

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

    super.shutDown();
  }
Ejemplo 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);
  }