org.commonjava.tensor.data
Interface TensorDataManager


public interface TensorDataManager


Field Summary
static String ERROR_SEPARATOR
           
static String GRAPH_CACHE
           
static String MODEL_ERRORS
           
static String PROJECT_RELATIONSHIPS_CACHE
           
 
Method Summary
 void addError(org.apache.maven.graph.common.ref.ProjectVersionRef ref, Throwable error)
           
 void addMetadata(org.apache.maven.graph.effective.ref.EProjectKey key, Map<String,String> metadata)
           
 void addMetadata(org.apache.maven.graph.effective.ref.EProjectKey key, String name, String value)
           
 boolean contains(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
           
 Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> getAllDirectRelationshipsWithExactSource(org.apache.maven.graph.common.ref.ProjectVersionRef source, org.apache.maven.graph.effective.filter.ProjectRelationshipFilter filter)
           
 Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> getAllDirectRelationshipsWithExactTarget(org.apache.maven.graph.common.ref.ProjectVersionRef target, org.apache.maven.graph.effective.filter.ProjectRelationshipFilter filter)
           
 Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> getAllDirectRelationshipsWithGATarget(org.apache.maven.graph.common.ref.ProjectRef target, org.apache.maven.graph.effective.filter.ProjectRelationshipFilter filter)
           
 Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getAllIncompleteSubgraphs()
           
 Map<org.apache.maven.graph.common.ref.ProjectVersionRef,Set<String>> getAllProjectErrors()
           
 Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getAllStoredProjectRefs()
           
 Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getAllVariableSubgraphs()
           
 List<org.apache.maven.graph.common.ref.ProjectVersionRef> getAncestry(org.apache.maven.graph.common.ref.ProjectVersionRef source)
           
 Set<String> getErrors(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
           
 Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getIncompleteSubgraphsFor(org.apache.maven.graph.effective.ref.EProjectKey key)
           
 Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getIncompleteSubgraphsFor(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
           
 Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getKnownChildren(org.apache.maven.graph.common.ref.ProjectVersionRef parent)
           
 Map<String,String> getMetadata(org.apache.maven.graph.effective.ref.EProjectKey key)
           
 org.apache.maven.graph.common.ref.ProjectVersionRef getParent(org.apache.maven.graph.common.ref.ProjectVersionRef source)
           
 Map<org.apache.maven.graph.common.ref.ProjectVersionRef,Set<String>> getProjectErrorsInGraph(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
           
 org.apache.maven.graph.effective.EProjectGraph getProjectGraph(org.apache.maven.graph.effective.ref.EProjectKey key)
           
 org.apache.maven.graph.effective.EProjectGraph getProjectGraph(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
           
 Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getVariableSubgraphsFor(org.apache.maven.graph.effective.ref.EProjectKey key)
           
 Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getVariableSubgraphsFor(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
           
 boolean hasErrors(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
           
 void reindex(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
           
 void reindexAll()
           
 Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> storeGraph(org.apache.maven.graph.effective.EProjectGraph graph)
           
 Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> storeRelationships(Collection<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> relationships)
           
 Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> storeRelationships(org.apache.maven.graph.effective.EProjectRelationships relationships)
           
 Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> storeRelationships(org.apache.maven.graph.effective.rel.ProjectRelationship<?>... relationships)
           
 

Field Detail

MODEL_ERRORS

static final String MODEL_ERRORS
See Also:
Constant Field Values

ERROR_SEPARATOR

static final String ERROR_SEPARATOR

PROJECT_RELATIONSHIPS_CACHE

static final String PROJECT_RELATIONSHIPS_CACHE
See Also:
Constant Field Values

GRAPH_CACHE

static final String GRAPH_CACHE
See Also:
Constant Field Values
Method Detail

storeGraph

Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> storeGraph(org.apache.maven.graph.effective.EProjectGraph graph)
                                                                            throws TensorDataException
Throws:
TensorDataException

storeRelationships

Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> storeRelationships(org.apache.maven.graph.effective.EProjectRelationships relationships)
                                                                                    throws TensorDataException
Throws:
TensorDataException

storeRelationships

Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> storeRelationships(org.apache.maven.graph.effective.rel.ProjectRelationship<?>... relationships)
                                                                                    throws TensorDataException
Throws:
TensorDataException

storeRelationships

Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> storeRelationships(Collection<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> relationships)
                                                                                    throws TensorDataException
Throws:
TensorDataException

getProjectGraph

org.apache.maven.graph.effective.EProjectGraph getProjectGraph(org.apache.maven.graph.effective.ref.EProjectKey key)
                                                               throws TensorDataException
Throws:
TensorDataException

getProjectGraph

org.apache.maven.graph.effective.EProjectGraph getProjectGraph(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
                                                               throws TensorDataException
Throws:
TensorDataException

getAncestry

List<org.apache.maven.graph.common.ref.ProjectVersionRef> getAncestry(org.apache.maven.graph.common.ref.ProjectVersionRef source)
                                                                      throws TensorDataException
Throws:
TensorDataException

getParent

org.apache.maven.graph.common.ref.ProjectVersionRef getParent(org.apache.maven.graph.common.ref.ProjectVersionRef source)
                                                              throws TensorDataException
Throws:
TensorDataException

getKnownChildren

Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getKnownChildren(org.apache.maven.graph.common.ref.ProjectVersionRef parent)
                                                                          throws TensorDataException
Throws:
TensorDataException

getAllDirectRelationshipsWithExactSource

Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> getAllDirectRelationshipsWithExactSource(org.apache.maven.graph.common.ref.ProjectVersionRef source,
                                                                                                          org.apache.maven.graph.effective.filter.ProjectRelationshipFilter filter)
                                                                                                          throws TensorDataException
Throws:
TensorDataException

getAllDirectRelationshipsWithExactTarget

Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> getAllDirectRelationshipsWithExactTarget(org.apache.maven.graph.common.ref.ProjectVersionRef target,
                                                                                                          org.apache.maven.graph.effective.filter.ProjectRelationshipFilter filter)
                                                                                                          throws TensorDataException
Throws:
TensorDataException

getAllDirectRelationshipsWithGATarget

Set<org.apache.maven.graph.effective.rel.ProjectRelationship<?>> getAllDirectRelationshipsWithGATarget(org.apache.maven.graph.common.ref.ProjectRef target,
                                                                                                       org.apache.maven.graph.effective.filter.ProjectRelationshipFilter filter)
                                                                                                       throws TensorDataException
Throws:
TensorDataException

contains

boolean contains(org.apache.maven.graph.common.ref.ProjectVersionRef ref)

getAllStoredProjectRefs

Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getAllStoredProjectRefs()
                                                                                 throws TensorDataException
Throws:
TensorDataException

getMetadata

Map<String,String> getMetadata(org.apache.maven.graph.effective.ref.EProjectKey key)

addMetadata

void addMetadata(org.apache.maven.graph.effective.ref.EProjectKey key,
                 String name,
                 String value)

addMetadata

void addMetadata(org.apache.maven.graph.effective.ref.EProjectKey key,
                 Map<String,String> metadata)

getIncompleteSubgraphsFor

Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getIncompleteSubgraphsFor(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
                                                                                   throws TensorDataException
Throws:
TensorDataException

getVariableSubgraphsFor

Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getVariableSubgraphsFor(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
                                                                                 throws TensorDataException
Throws:
TensorDataException

getIncompleteSubgraphsFor

Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getIncompleteSubgraphsFor(org.apache.maven.graph.effective.ref.EProjectKey key)
                                                                                   throws TensorDataException
Throws:
TensorDataException

getVariableSubgraphsFor

Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getVariableSubgraphsFor(org.apache.maven.graph.effective.ref.EProjectKey key)
                                                                                 throws TensorDataException
Throws:
TensorDataException

getAllIncompleteSubgraphs

Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getAllIncompleteSubgraphs()
                                                                                   throws TensorDataException
Throws:
TensorDataException

getAllVariableSubgraphs

Set<org.apache.maven.graph.common.ref.ProjectVersionRef> getAllVariableSubgraphs()
                                                                                 throws TensorDataException
Throws:
TensorDataException

addError

void addError(org.apache.maven.graph.common.ref.ProjectVersionRef ref,
              Throwable error)
              throws TensorDataException
Throws:
TensorDataException

getErrors

Set<String> getErrors(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
                      throws TensorDataException
Throws:
TensorDataException

hasErrors

boolean hasErrors(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
                  throws TensorDataException
Throws:
TensorDataException

getAllProjectErrors

Map<org.apache.maven.graph.common.ref.ProjectVersionRef,Set<String>> getAllProjectErrors()
                                                                                         throws TensorDataException
Throws:
TensorDataException

getProjectErrorsInGraph

Map<org.apache.maven.graph.common.ref.ProjectVersionRef,Set<String>> getProjectErrorsInGraph(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
                                                                                             throws TensorDataException
Throws:
TensorDataException

reindex

void reindex(org.apache.maven.graph.common.ref.ProjectVersionRef ref)
             throws TensorDataException
Throws:
TensorDataException

reindexAll

void reindexAll()
                throws TensorDataException
Throws:
TensorDataException


Copyright © 2013. All Rights Reserved.