public class JIPipeArtifactsRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JIPipeArtifactsRegistry.UpdatedEvent |
static class |
JIPipeArtifactsRegistry.UpdatedEventEmitter |
static interface |
JIPipeArtifactsRegistry.UpdatedEventListener |
Constructor and Description |
---|
JIPipeArtifactsRegistry(JIPipe jiPipe) |
Modifier and Type | Method and Description |
---|---|
void |
enqueueUpdateCachedArtifacts() |
JIPipeArtifact |
findClosestCompatibleArtifact(String fullArtifactId)
Finds the closest compatible artifact to the provided full artifact ID.
|
Map<String,JIPipeArtifact> |
getCachedArtifacts() |
Map<String,JIPipeLocalArtifact> |
getCachedLocalArtifacts() |
Map<String,JIPipeRemoteArtifact> |
getCachedRemoteArtifacts() |
JIPipe |
getJiPipe() |
Path |
getLocalSystemRepositoryPath()
JIPipe's system repository path, which is usually located in IMAGEJ_DIR/jipipe/artifacts
This repository is intended for distributors of JIPipe to provide artifacts with JIPipe
Can be overwritten by setting the JIPIPE_SYSTEM_REPOSITORY_PATH
|
Path |
getLocalUserRepositoryPath()
The path to the local repository that is owned by the user.
|
JIPipeArtifactsRegistry.UpdatedEventEmitter |
getUpdatedEventEmitter() |
JIPipeArtifact |
queryCachedArtifact(String filter) |
List<JIPipeArtifact> |
queryCachedArtifacts(String... filters)
Queries all cached artifacts (local and remote)
|
List<JIPipeLocalArtifact> |
queryLocalRepositories(String groupId,
String artifactId,
String version,
JIPipeProgressInfo progressInfo) |
List<JIPipeRemoteArtifact> |
queryRemoteRepositories(String groupId,
String artifactId,
String version,
JIPipeProgressInfo progressInfo) |
JIPipeArtifact |
searchClosestCompatibleArtifactFromQuery(String query)
Given a glob-like query, looks for the closest, newest artifact that matches it
|
static JIPipeArtifact |
selectPreferredArtifactByClassifier(List<JIPipeArtifact> candidates)
Selects a preferred artifact by class
|
void |
updateCachedArtifacts(JIPipeProgressInfo progressInfo) |
public JIPipeArtifactsRegistry(JIPipe jiPipe)
public static JIPipeArtifact selectPreferredArtifactByClassifier(List<JIPipeArtifact> candidates)
candidates
- the candidatespublic JIPipe getJiPipe()
public Map<String,JIPipeArtifact> getCachedArtifacts()
public Map<String,JIPipeRemoteArtifact> getCachedRemoteArtifacts()
public Map<String,JIPipeLocalArtifact> getCachedLocalArtifacts()
public JIPipeArtifactsRegistry.UpdatedEventEmitter getUpdatedEventEmitter()
public JIPipeArtifact searchClosestCompatibleArtifactFromQuery(String query)
query
- the querypublic JIPipeArtifact findClosestCompatibleArtifact(String fullArtifactId)
fullArtifactId
- full artifact IDpublic List<JIPipeArtifact> queryCachedArtifacts(String... filters)
filters
- list of filters (connected with OR), using glob syntaxpublic void updateCachedArtifacts(JIPipeProgressInfo progressInfo)
public List<JIPipeLocalArtifact> queryLocalRepositories(String groupId, String artifactId, String version, JIPipeProgressInfo progressInfo)
public List<JIPipeRemoteArtifact> queryRemoteRepositories(String groupId, String artifactId, String version, JIPipeProgressInfo progressInfo)
public Path getLocalSystemRepositoryPath()
public Path getLocalUserRepositoryPath()
public void enqueueUpdateCachedArtifacts()
public JIPipeArtifact queryCachedArtifact(String filter)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.