示例#1
0
  private BaseScratchSpaceConfiguration startProActiveProviderServer(
      BaseScratchSpaceConfiguration baseScratchConfiguration)
      throws FileSystemException, ConfigurationException {

    final String rootPath = baseScratchConfiguration.getPath();
    final File rootFile = new File(rootPath);

    try {
      if (!rootFile.isDirectory()) rootFile.mkdirs();
    } catch (SecurityException x) {
      throw new FileSystemException(x);
    }
    try {
      final String serviceId =
          Utils.getRuntimeId(node) + '/' + Utils.getNodeId(node) + "/fileSystemServer";
      providerServerDeployer = new FileSystemServerDeployer(serviceId, rootPath, true);
    } catch (IOException e) {
      throw new FileSystemException(e);
    }
    final String vfsRootURL = providerServerDeployer.getVFSRootURL();
    return baseScratchConfiguration.getWithRemoteAccess(vfsRootURL);
  }