Example #1
0
  public void stop() throws Exception {
    System.out.println("STOPPING SERVER MANAGER:" + AppContext.getName());

    System.out.println("      Stopping TaskManager");
    TaskManager.getInstance().stop();

    System.out.println("      Unloading ScriptManager");
    ScriptManager.setInstance(null);

    System.out.println("      Unloading DataSources");
    DsLoader.getInstance().undeploy();

    System.out.println("      Unloading Schema Manager");
    SchemaManager.setInstance(null);

    System.out.println("      Unloading Template Provider");
    TemplateProvider.setInstance(null);
  }
Example #2
0
  public void start() throws Exception {
    System.out.println("      Initializing Properties");
    AppContext.load();

    System.out.println("STARTING SERVER MGMT:" + AppContext.getName());

    System.out.println("      Initializing Template Manager");
    TemplateProvider.setInstance(new TemplateProviderImpl());

    System.out.println("      Initializing Schema Manager");
    SchemaManager.setInstance(new SchemaManagerImpl());

    // load datasources
    System.out.println("      Loading Datasources");
    DsLoader.getInstance().deploy();

    // load scripts
    System.out.println("      Initializing ScriptManager");
    ScriptManager.setInstance(new ScriptManagerImpl());
    ScriptManager.getInstance().load();

    System.out.println("      Initializing TaskManager");
    TaskManager.getInstance().start();
  }
Example #3
0
 public void startTaskManager() {
   TaskManager.getInstance().start();
 }
Example #4
0
 public void stopTaskManager() {
   TaskManager.getInstance().stop();
 }