Ejemplo n.º 1
0
  /**
   * read in the directory settings and bind the file attributes.
   *
   * @throws SmartFrogException failure while starting
   * @throws RemoteException In case of network/rmi error
   */
  @Override
  public synchronized void sfDeploy() throws SmartFrogException, RemoteException {
    super.sfDeploy();

    String dir;

    File parentDir = null;
    String parent;
    parent = FileSystem.lookupAbsolutePath(this, ATTR_PARENT, null, null, false, null);
    if (parent != null) {
      parentDir = new File(parent);
    }

    dir = FileSystem.lookupAbsolutePath(this, Mkdir.ATTR_DIR, null, parentDir, true, null);
    File directory = new File(dir);
    bind(directory);
    // get the delete flag
    // this is only done if the directory does not yet exist.
    // delete is implicitly false.
    delete = sfResolve(ATTR_DELETE_ON_EXIT, false, false);
  }