COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.local.registry
Class InMemoryProviderRegistry

java.lang.Object
  extended by org.eclipse.cosmos.dc.local.registry.InMemoryProviderRegistry
All Implemented Interfaces:
ProviderRegistry

public class InMemoryProviderRegistry
extends java.lang.Object
implements ProviderRegistry


Field Summary
static java.util.Collection<DataSet> EMPTY_LIST
           
 
Fields inherited from interface org.eclipse.cosmos.dc.common.registry.ProviderRegistry
DATAFLOW_QNAME, DATASET_QNAME, DATASOURCE_QNAME, DATASOURCETYPE_QNAME, KEY_QNAME, KEYSET_QNAME, NAMESPACE
 
Constructor Summary
InMemoryProviderRegistry()
           
 
Method Summary
 java.util.Collection<DataFlow> getAllDataFlows()
           
 java.util.Collection<DataSet> getAllDataSets()
           
 java.util.Collection<DataSource> getAllDataSources()
           
 DataFlow getDataFlow(java.lang.String name)
           
 DataSet getDataSet(java.lang.String name)
           
 java.util.Collection<DataSet> getDataSetsForFlow(DataFlow flow)
           
 java.util.Collection<DataSet> getDataSetsForFlow(java.lang.String flowName)
           
 java.util.Collection<DataSet> getDataSetsForSource(DataSource source)
           
 java.util.Collection<DataSet> getDataSetsForSource(java.lang.String sourceName)
           
 java.util.Collection<DataSet> getDataSetsForSourceKeyset(java.lang.String source, java.lang.String keyset)
           
 DataSource getDataSource(java.lang.String name)
           
 DataSourceType getDataSourceType(java.lang.String name)
           
 DimensionSet getDimensionSet(java.lang.String name)
           
 DataSet getLatestDataSetForSourceKeyset(java.lang.String source, java.lang.String keyset)
           
 boolean registerDataFlow(DataFlow flow)
           
 boolean registerDataSet(DataSet ds)
           
 boolean registerDataSource(DataSource src)
           
 boolean registerDataSourceType(DataSourceType src)
           
 boolean registerDimensionSet(DimensionSet dims)
           
 void setDomain(Domain domain)
           
 void setManager(ContributionManager manager)
           
 boolean updateDataSet(DataSet ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_LIST

public static final java.util.Collection<DataSet> EMPTY_LIST
Constructor Detail

InMemoryProviderRegistry

public InMemoryProviderRegistry()
Method Detail

setManager

public void setManager(ContributionManager manager)

getDataSetsForFlow

public java.util.Collection<DataSet> getDataSetsForFlow(DataFlow flow)
Specified by:
getDataSetsForFlow in interface ProviderRegistry

getDataSetsForSource

public java.util.Collection<DataSet> getDataSetsForSource(DataSource source)
Specified by:
getDataSetsForSource in interface ProviderRegistry

registerDataFlow

public boolean registerDataFlow(DataFlow flow)
                         throws java.lang.Exception
Specified by:
registerDataFlow in interface ProviderRegistry
Throws:
java.lang.Exception

registerDataSet

public boolean registerDataSet(DataSet ds)
                        throws java.lang.Exception
Specified by:
registerDataSet in interface ProviderRegistry
Throws:
java.lang.Exception

updateDataSet

public boolean updateDataSet(DataSet ds)
                      throws java.lang.Exception
Specified by:
updateDataSet in interface ProviderRegistry
Throws:
java.lang.Exception

registerDataSource

public boolean registerDataSource(DataSource src)
                           throws java.lang.Exception
Specified by:
registerDataSource in interface ProviderRegistry
Throws:
java.lang.Exception

registerDataSourceType

public boolean registerDataSourceType(DataSourceType src)
                               throws java.lang.Exception
Specified by:
registerDataSourceType in interface ProviderRegistry
Throws:
java.lang.Exception

registerDimensionSet

public boolean registerDimensionSet(DimensionSet dims)
                             throws java.lang.Exception
Specified by:
registerDimensionSet in interface ProviderRegistry
Throws:
java.lang.Exception

getDataFlow

public DataFlow getDataFlow(java.lang.String name)
Specified by:
getDataFlow in interface ProviderRegistry

getDataSet

public DataSet getDataSet(java.lang.String name)
Specified by:
getDataSet in interface ProviderRegistry

getDataSource

public DataSource getDataSource(java.lang.String name)
Specified by:
getDataSource in interface ProviderRegistry

getDataSourceType

public DataSourceType getDataSourceType(java.lang.String name)
Specified by:
getDataSourceType in interface ProviderRegistry

getDimensionSet

public DimensionSet getDimensionSet(java.lang.String name)
Specified by:
getDimensionSet in interface ProviderRegistry

getAllDataSets

public java.util.Collection<DataSet> getAllDataSets()
Specified by:
getAllDataSets in interface ProviderRegistry

getAllDataFlows

public java.util.Collection<DataFlow> getAllDataFlows()
Specified by:
getAllDataFlows in interface ProviderRegistry

getAllDataSources

public java.util.Collection<DataSource> getAllDataSources()
Specified by:
getAllDataSources in interface ProviderRegistry

getDataSetsForFlow

public java.util.Collection<DataSet> getDataSetsForFlow(java.lang.String flowName)
Specified by:
getDataSetsForFlow in interface ProviderRegistry

getDataSetsForSource

public java.util.Collection<DataSet> getDataSetsForSource(java.lang.String sourceName)
Specified by:
getDataSetsForSource in interface ProviderRegistry

setDomain

public void setDomain(Domain domain)

getDataSetsForSourceKeyset

public java.util.Collection<DataSet> getDataSetsForSourceKeyset(java.lang.String source,
                                                                java.lang.String keyset)
                                                         throws java.lang.Exception
Specified by:
getDataSetsForSourceKeyset in interface ProviderRegistry
Throws:
java.lang.Exception

getLatestDataSetForSourceKeyset

public DataSet getLatestDataSetForSourceKeyset(java.lang.String source,
                                               java.lang.String keyset)
                                        throws java.lang.Exception
Specified by:
getLatestDataSetForSourceKeyset in interface ProviderRegistry
Throws:
java.lang.Exception

COSMOS ${releaseVersion} data-collection Project
Public API Specification