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

org.eclipse.cosmos.dc.runtime
Class Runtime

java.lang.Object
  extended by org.eclipse.cosmos.dc.runtime.Runtime
All Implemented Interfaces:
RuntimeHost
Direct Known Subclasses:
OSGiRuntimeHost

public class Runtime
extends java.lang.Object
implements RuntimeHost


Field Summary
 
Fields inherited from interface org.eclipse.cosmos.dc.common.spi.RuntimeHost
NAMESPACE, RUNTIMEHOST_QNAME
 
Constructor Summary
Runtime()
           
Runtime(ServiceRegistry serviceRegistry, ContributionManager manager)
           
 
Method Summary
 void addContext(IDataCollectionContext context)
           
 int getActiveCollectorCount()
           
 BindingService getBindingServiceForNamespace(java.lang.String namespace)
           
 IDataCollectionContext getContextForName(java.lang.String name)
           
 java.util.Collection<IDataCollectionContext> getContexts()
           
 java.lang.String getIdentifier()
           
 ProviderRegistry getRegistry()
           
 IDataCollectionContext loadContext(java.lang.String contextPath)
           
 IDataCollectionContext loadContextFromStream(java.io.InputStream contextStream)
           
 void removeContext(IDataCollectionContext context)
           
 void setManager(ContributionManager manager)
           
 void setRegistry(ProviderRegistry registry)
           
 void setServiceRegistry(ServiceRegistry serviceRegistry)
           
 void start()
           
 void stop()
           
 void unloadContext(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Runtime

public Runtime()

Runtime

public Runtime(ServiceRegistry serviceRegistry,
               ContributionManager manager)
Method Detail

getIdentifier

public java.lang.String getIdentifier()

setServiceRegistry

public void setServiceRegistry(ServiceRegistry serviceRegistry)

setManager

public void setManager(ContributionManager manager)

addContext

public void addContext(IDataCollectionContext context)
Specified by:
addContext in interface RuntimeHost

removeContext

public void removeContext(IDataCollectionContext context)
Specified by:
removeContext in interface RuntimeHost

getContextForName

public IDataCollectionContext getContextForName(java.lang.String name)
Specified by:
getContextForName in interface RuntimeHost

start

public void start()
Specified by:
start in interface RuntimeHost

stop

public void stop()
Specified by:
stop in interface RuntimeHost

getActiveCollectorCount

public int getActiveCollectorCount()

loadContext

public IDataCollectionContext loadContext(java.lang.String contextPath)
Specified by:
loadContext in interface RuntimeHost

loadContextFromStream

public IDataCollectionContext loadContextFromStream(java.io.InputStream contextStream)
                                             throws java.lang.Exception
Specified by:
loadContextFromStream in interface RuntimeHost
Throws:
java.lang.Exception

unloadContext

public void unloadContext(java.lang.String name)
Specified by:
unloadContext in interface RuntimeHost

getBindingServiceForNamespace

public BindingService getBindingServiceForNamespace(java.lang.String namespace)

getContexts

public java.util.Collection<IDataCollectionContext> getContexts()
Specified by:
getContexts in interface RuntimeHost

getRegistry

public ProviderRegistry getRegistry()
Specified by:
getRegistry in interface RuntimeHost

setRegistry

public void setRegistry(ProviderRegistry registry)

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