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

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

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

public class OSGiProviderRegistryHost
extends java.lang.Object
implements ProviderRegistry


Field Summary
 
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
OSGiProviderRegistryHost()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext ctx)
           
protected  void deactivate(org.osgi.service.component.ComponentContext ctxt)
           
 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 flow)
           
 java.util.Collection<DataSet> getDataSetsForSource(DataSource source)
           
 java.util.Collection<DataSet> getDataSetsForSource(java.lang.String source)
           
 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)
           
 boolean updateDataSet(DataSet ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiProviderRegistryHost

public OSGiProviderRegistryHost()
Method Detail

activate

protected void activate(org.osgi.service.component.ComponentContext ctx)

deactivate

protected void deactivate(org.osgi.service.component.ComponentContext ctxt)

getAllDataFlows

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

getAllDataSets

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

getAllDataSources

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

getDataFlow

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

getDataSet

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

getDataSetsForFlow

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

getDataSetsForFlow

public java.util.Collection<DataSet> getDataSetsForFlow(java.lang.String flow)
                                                 throws java.lang.Exception
Specified by:
getDataSetsForFlow in interface ProviderRegistry
Throws:
java.lang.Exception

getDataSetsForSource

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

getDataSetsForSource

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

getDataSource

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

getDataSourceType

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

getDimensionSet

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

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

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

updateDataSet

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

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