public class StorageLocationServiceImpl extends Object implements StorageLocationService
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_LOGS_DIRECTORY |
Constructor and Description |
---|
StorageLocationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ArtifactDirectoryBuilder |
getArtifactDirectoryBuilder(File rootStorageDirectory)
Returns an ArtifactDirectoryBuilder which can be used to build
File objects
pointing to artifacts stored on the local filesystem. |
ArtifactPathBuilder |
getArtifactPathBuilder(char separatorChar)
Returns an ArtifactPathBuilder which can be used to construct paths to stored artifacts.
|
ArtifactPathBuilder |
getArtifactPathBuilder(String rootStoragePath,
char separatorChar)
Returns an ArtifactPathBuilder which can be used to construct paths to stored artifacts.
|
File |
getBuildDataDirectory(Key key)
Returns the top level build data directory for a plan or deployment project.
|
File |
getBuildDownloadDataDirectory(Key key)
Returns the "download data" directory for a plan or deployment project.
|
File |
getBuildLogsDirectory(Key key)
Eg.
|
File |
getBuildResultsDirectory(Key buildKey)
Eg.
|
ArtifactDirectoryBuilder |
getDefaultArtifactDirectoryBuilder()
This method will only work on the server, not on remote agents.
|
ArtifactStorage |
getDefaultArtifactStorage()
This method will only work on the server, not on remote agents.
|
File |
getLogFile(Key entityKey,
int resultNumber)
Returns the location of the log file for the specified build or deployment.
|
File |
getLogFile(ResultKey resultKey)
Returns the location of the log file for the specified build or deployment.
|
String |
getLogFileName(Key entityKey,
int resultNumber)
Returns the standard name of the log file for the specified build or deployment.
|
String |
getLogFileName(ResultKey resultKey)
Returns the standard name of the log file for the specified build or deployment.
|
File |
getRootBuildDataDirectory()
Returns the root build data directory for all plans and deployment projects.
|
public static final String BUILD_LOGS_DIRECTORY
public File getRootBuildDataDirectory()
StorageLocationService
getRootBuildDataDirectory
in interface StorageLocationService
public File getBuildDataDirectory(Key key)
StorageLocationService
getBuildDataDirectory
in interface StorageLocationService
public File getBuildResultsDirectory(Key buildKey)
StorageLocationService
getBuildResultsDirectory
in interface StorageLocationService
public File getBuildDownloadDataDirectory(Key key)
StorageLocationService
getBuildDownloadDataDirectory
in interface StorageLocationService
public File getBuildLogsDirectory(Key key)
StorageLocationService
getBuildLogsDirectory
in interface StorageLocationService
public String getLogFileName(@NotNull Key entityKey, int resultNumber)
StorageLocationService
getLogFileName
in interface StorageLocationService
public String getLogFileName(ResultKey resultKey)
StorageLocationService
getLogFileName
in interface StorageLocationService
public File getLogFile(Key entityKey, int resultNumber)
StorageLocationService
getLogFile
in interface StorageLocationService
public File getLogFile(ResultKey resultKey)
StorageLocationService
getLogFile
in interface StorageLocationService
@NotNull public ArtifactDirectoryBuilder getDefaultArtifactDirectoryBuilder()
getDefaultArtifactDirectoryBuilder
in interface StorageLocationService
public ArtifactStorage getDefaultArtifactStorage()
getDefaultArtifactStorage
in interface StorageLocationService
public ArtifactPathBuilder getArtifactPathBuilder(String rootStoragePath, char separatorChar)
StorageLocationService
getArtifactPathBuilder
in interface StorageLocationService
public ArtifactPathBuilder getArtifactPathBuilder(char separatorChar)
StorageLocationService
getArtifactPathBuilder
in interface StorageLocationService
public ArtifactDirectoryBuilder getArtifactDirectoryBuilder(File rootStorageDirectory)
StorageLocationService
File
objects
pointing to artifacts stored on the local filesystem. This version of the method takes a
rootArtifactDirectory parameter.getArtifactDirectoryBuilder
in interface StorageLocationService
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.