public void scripts(String[] args) { context.println("Log Scripts"); context.println("--------------"); for (String workspace : scriptRegistry.getWorkspaceNames()) { context.println("Workspace: " + workspace); for (String name : scriptRegistry.getScriptFactoryNames(workspace)) { QueryScriptFactory factory = scriptRegistry.getScriptFactory(workspace, name); context.println(" " + name + " - " + factory); } } }
@ScriptUsage( description = "remove query script workspace", arguments = { @ScriptArgument( name = "workspace name", type = "string", description = "query script workspace name") }) public void dropScriptWorkspace(String[] args) { scriptRegistry.dropWorkspace(args[0]); context.println("dropped"); }
@ScriptUsage( description = "create new query script workspace", arguments = { @ScriptArgument( name = "workspace name", type = "string", description = "query script workspace name") }) public void createScriptWorkspace(String[] args) { scriptRegistry.createWorkspace(args[0]); context.println("created"); }