org.universAAL.ri.gateway.communicator.service.impl
Class CommunicatorStarter
java.lang.Object
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter
public class CommunicatorStarter
- extends Object
Objects of this class are responsible for starting and stopping running
GatewayCommunicatorImpl workers.
- Author:
- skallz
Constructor Summary |
CommunicatorStarter(org.osgi.framework.BundleContext context)
Starts the worker with default ID: "". |
CommunicatorStarter(org.osgi.framework.BundleContext context,
String id)
Starts the worker with given ImportExportManager and ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
public static Properties properties
CommunicatorStarter
public CommunicatorStarter(org.osgi.framework.BundleContext context,
String id)
throws Exception
- Starts the worker with given ImportExportManager and ID.
- Parameters:
id
- ID
- Throws:
Exception
RuntimeException
CommunicatorStarter
public CommunicatorStarter(org.osgi.framework.BundleContext context)
throws Exception
- Starts the worker with default ID: "".
- Parameters:
manager
- a ImportExportManager reference
- Throws:
Exception
getCommunicator
public GatewayCommunicator getCommunicator()
setManagers
public void setManagers(ImportManager importManager,
ExportManager exportManager)
throws Exception
- Sets import and export managers for the communicator
- Parameters:
importManager
- import managerexportManager
- export manager
- Throws:
Exception
stop
public void stop()
Copyright © 2014 universAAL Consortium. All Rights Reserved.