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

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