public class NetworkManagerImpl extends Object implements INetworkManager
Network manager allowing to list and configure all communication networks available on the platform.
Modifier and Type | Field and Description |
---|---|
protected ModuleRegistry |
moduleRegistry |
Constructor and Description |
---|
NetworkManagerImpl(ModuleRegistry moduleRegistry) |
Modifier and Type | Method and Description |
---|---|
Collection<ModuleConfig> |
getAvailableModules()
Gets the list of all modules handled by this manager
that are configured but not yet loaded (i.e.
|
Collection<ICommNetwork<?>> |
getLoadedModules()
Gets the list of all modules handled by this manager
that are already loaded (i.e.
|
Collection<ICommNetwork<?>> |
getLoadedModules(ICommNetwork.NetworkType netType) |
ICommNetwork<?> |
getModuleById(String moduleID)
Retrieves a module instance by its local ID
|
boolean |
isModuleLoaded(String moduleID) |
protected ModuleRegistry moduleRegistry
public NetworkManagerImpl(ModuleRegistry moduleRegistry)
public Collection<ICommNetwork<?>> getLoadedModules()
IModuleManager
getLoadedModules
in interface IModuleManager<ICommNetwork<?>>
public Collection<ICommNetwork<?>> getLoadedModules(ICommNetwork.NetworkType netType)
getLoadedModules
in interface INetworkManager
public boolean isModuleLoaded(String moduleID)
isModuleLoaded
in interface IModuleManager<ICommNetwork<?>>
moduleID
- local ID of modulepublic Collection<ModuleConfig> getAvailableModules()
IModuleManager
getAvailableModules
in interface IModuleManager<ICommNetwork<?>>
public ICommNetwork<?> getModuleById(String moduleID) throws SensorHubException
IModuleManager
getModuleById
in interface IModuleManager<ICommNetwork<?>>
moduleID
- Id of module to retrieveSensorHubException
- if no module with given ID can be foundCopyright © 2016 Sensia Software LLC. All rights reserved.