public interface

StorageService

com.atlassian.bitbucket.server.StorageService

Class Overview

Allows apps to interact with selected parts of the product's home directory.

Summary

Public Methods
@Nonnull Path getCacheDir()
@Nonnull Path getConfigDir()
@Nonnull Path getDataDir()
@Nonnull Path getHomeDir()
@Nonnull Path getSharedHomeDir()
@Nonnull Path getTempDir()

Public Methods

@Nonnull public Path getCacheDir ()

Returns
  • the home subdirectory where cache data should be stored

@Nonnull public Path getConfigDir ()

Returns
  • the shared home subdirectory where configuration data should be stored

@Nonnull public Path getDataDir ()

Returns
  • the shared home subdirectory where app data should be stored

@Nonnull public Path getHomeDir ()

Returns
  • the product's home directory, which is node local in Data Center installations

@Nonnull public Path getSharedHomeDir ()

Returns
  • the product's shared home directory, which is available to all nodes in a Data Center installation

@Nonnull public Path getTempDir ()

Returns
  • the home subdirectory where short-lived temporary data should be stored