Package org.impalaframework.module.operation

Examples of org.impalaframework.module.operation.ModuleOperation


      ModuleStateHolder moduleStateHolder = factory.getModuleStateHolder();
      RootModuleDefinition rootDefinition = moduleStateHolder.cloneRootModuleDefinition();
      ModuleDefinition newDefinition = newModuleDefinition(moduleName, rootDefinition);

      ModuleOperation operation = factory.getModuleOperationRegistry().getOperation(
          ModuleOperationConstants.AddModuleOperation);
      operation.execute(new ModuleOperationInput(null, newDefinition, null));
    }

    ApplicationContext context = factory.getModuleStateHolder().getModuleContexts().get(moduleName);

    if (!initialized) {
View Full Code Here


    public Application getApplication(String id) {
        return application;
    }
   
    public boolean close() {
        ModuleOperation operation = moduleManagementFacade.getModuleOperationRegistry().getOperation(ModuleOperationConstants.CloseRootModuleOperation);
        ModuleOperationResult execute = operation.execute(application, null);
        return execute.isErrorFree();
    }
View Full Code Here

  @ManagedOperation(description = "Operation to reload a module")
  @ManagedOperationParameters( { @ManagedOperationParameter(name = "Module name", description = "Name of module to reload") })
  public String reloadModule(String moduleName) {

    ModuleOperation operation = moduleOperationRegistry.getOperation(ModuleOperationConstants.ReloadModuleNamedLikeOperation);
   
    try {
      ModuleOperationResult execute = operation.execute(new ModuleOperationInput(null, null, moduleName));
      if (execute.isSuccess()) {
        return "Successfully reloaded " + execute.getOutputParameters().get("moduleName");
      } else {
        return "Could not find module " + moduleName;
      }
View Full Code Here

      for (String moduleName : modified) {

        logger.info("Processing modified module " + moduleName);

        ModuleOperation operation = factory.getModuleOperationRegistry().getOperation(ModuleOperationConstants.ReloadNamedModuleOperation);
        ModuleOperationInput moduleOperationInput = new ModuleOperationInput(null, null, moduleName);
        operation.execute(moduleOperationInput);
      }
    }
  }
View Full Code Here

    }

    ModuleOperationInput moduleOperationInput = new ModuleOperationInput(source, null, null);
   
    ModuleOperation operation = factory.getModuleOperationRegistry().getOperation(ModuleOperationConstants.ReloadRootModuleOperation);
    operation.execute(moduleOperationInput);
  }
View Full Code Here

    }

    ModuleOperationInput moduleOperationInput = new ModuleOperationInput(source, null, null);
   
    ModuleOperation operation = factory.getModuleOperationRegistry().getOperation(ModuleOperationConstants.ReloadRootModuleOperation);
    operation.execute(moduleOperationInput);
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.module.operation.ModuleOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.