public class Consumer extends Object implements org.openbase.jul.iface.Manageable<rst.domotic.service.ServiceConfigType.ServiceConfig>
| Constructor and Description |
|---|
Consumer(UnitController<?,?> unitController) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
void |
init(rst.domotic.service.ServiceConfigType.ServiceConfig providerServiceConfig)
Initializes this consumer service and bounds those to the given provider service referred by the given provider service configuration.
|
boolean |
isActive() |
void |
validateInitialization() |
public Consumer(UnitController<?,?> unitController)
public void init(rst.domotic.service.ServiceConfigType.ServiceConfig providerServiceConfig)
throws org.openbase.jul.exception.InitializationException,
InterruptedException
init in interface org.openbase.jul.iface.Initializable<rst.domotic.service.ServiceConfigType.ServiceConfig>providerServiceConfig - the config of the provider service to connect to.org.openbase.jul.exception.InitializationException - is thrown if the initialization fails.InterruptedException - is thrown if the current thread was externally interrupted.public void activate()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
activate in interface org.openbase.jul.iface.Activatableorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void deactivate()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
deactivate in interface org.openbase.jul.iface.Activatableorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic boolean isActive()
isActive in interface org.openbase.jul.iface.Activatablepublic void validateInitialization()
throws org.openbase.jul.exception.NotInitializedException
org.openbase.jul.exception.NotInitializedExceptionCopyright © 2014–2018 openbase.org. All rights reserved.