org.eclipse.cosmos.dc.runtime
Class Runtime
java.lang.Object
org.eclipse.cosmos.dc.runtime.Runtime
- All Implemented Interfaces:
- RuntimeHost
- Direct Known Subclasses:
- OSGiRuntimeHost
public class Runtime
- extends java.lang.Object
- implements RuntimeHost
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Runtime
public Runtime()
Runtime
public Runtime(ServiceRegistry serviceRegistry,
ContributionManager manager)
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)