示例#1
0
  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);
      }
    }
  }
示例#2
0
 @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");
 }
示例#3
0
 @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");
 }