public String getStackDirName() {
    return getDirectory().getParentFile().getName();
  }
Obtain the stack directory name.

@return stack directory name
ambari-server/src/main/java/org/apache/ambari/server/stack/StackDirectory.java