public class CliBasedArtifactRepository extends Object implements ArtifactRepository
Constructor and Description |
---|
CliBasedArtifactRepository(String artifactBaseDir,
String runId,
MlflowHostCredsProvider hostCredsProvider) |
Modifier and Type | Method and Description |
---|---|
File |
downloadArtifacts()
Returns a local directory containing *all* artifacts within the run's artifact directory.
|
File |
downloadArtifacts(String artifactPath)
Returns a local file or directory containing all artifacts within the given artifactPath
within the run's root artifactDirectory.
|
List<Service.FileInfo> |
listArtifacts()
Lists the artifacts immediately under the run's root artifact directory.
|
List<Service.FileInfo> |
listArtifacts(String artifactPath)
Lists the artifacts immediately under the given artifactPath within the run's root artifact
irectory.
|
void |
logArtifact(File localFile)
Uploads the given local file to the run's root artifact directory.
|
void |
logArtifact(File localFile,
String artifactPath)
Uploads the given local file to an artifactPath within the run's root directory.
|
void |
logArtifacts(File localDir)
Uploads all files within the given local director the run's root artifact directory.
|
void |
logArtifacts(File localDir,
String artifactPath)
Uploads all files within the given local director an artifactPath within the run's root
artifact directory.
|
public CliBasedArtifactRepository(String artifactBaseDir, String runId, MlflowHostCredsProvider hostCredsProvider)
public void logArtifact(File localFile, String artifactPath)
ArtifactRepository
logArtifact
in interface ArtifactRepository
localFile
- File to upload. Must exist, and must be a simple file (not a directory).artifactPath
- Artifact path relative to the run's root directory. Should NOT
start with a /.public void logArtifact(File localFile)
ArtifactRepository
logArtifact
in interface ArtifactRepository
localFile
- File to upload. Must exist, and must be a simple file (not a directory).public void logArtifacts(File localDir, String artifactPath)
ArtifactRepository
logArtifacts
in interface ArtifactRepository
localDir
- Directory to upload. Must exist, and must be a directory (not a simple file).artifactPath
- Artifact path relative to the run's root directory. Should NOT
start with a /.public void logArtifacts(File localDir)
ArtifactRepository
logArtifacts
in interface ArtifactRepository
localDir
- Directory to upload. Must exist, and must be a directory (not a simple file).public File downloadArtifacts(String artifactPath)
ArtifactRepository
downloadArtifacts
in interface ArtifactRepository
artifactPath
- Artifact path relative to the run's root directory. Should NOT
start with a /.public File downloadArtifacts()
ArtifactRepository
downloadArtifacts
in interface ArtifactRepository
public List<Service.FileInfo> listArtifacts(String artifactPath)
ArtifactRepository
listArtifacts
in interface ArtifactRepository
artifactPath
- Artifact path relative to the run's root directory. Should NOT
start with a /.public List<Service.FileInfo> listArtifacts()
ArtifactRepository
listArtifacts
in interface ArtifactRepository
Copyright © 2018. All rights reserved.