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); }
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(); }
public void startTaskManager() { TaskManager.getInstance().start(); }
public void stopTaskManager() { TaskManager.getInstance().stop(); }