public abstract class ServiceRemoteManager extends Object implements org.openbase.jul.iface.Activatable, org.openbase.jul.iface.Snapshotable<rst.domotic.action.SnapshotType.Snapshot>
| Constructor and Description |
|---|
ServiceRemoteManager() |
ServiceRemoteManager(org.openbase.jul.iface.provider.LabelProvider responsibleInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
Future<rst.domotic.action.ActionFutureType.ActionFuture> |
applyAction(rst.domotic.action.ActionDescriptionType.ActionDescription actionDescription) |
void |
applyConfigUpdate(List<String> unitIDList) |
void |
deactivate() |
protected abstract Set<rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType> |
getManagedServiceTypes() |
AbstractServiceRemote |
getServiceRemote(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType) |
List<AbstractServiceRemote> |
getServiceRemoteList() |
boolean |
isActive() |
boolean |
isServiceAvailable(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType)
Method checks if the given
ServiceType is currently available by this ServiceRemoteManager |
protected abstract void |
notifyServiceUpdate(org.openbase.jul.pattern.Observable source,
Object data) |
Future<rst.domotic.action.SnapshotType.Snapshot> |
recordSnapshot() |
Future<rst.domotic.action.SnapshotType.Snapshot> |
recordSnapshot(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
Future<Void> |
restoreSnapshot(rst.domotic.action.SnapshotType.Snapshot snapshot) |
<B> B |
updateBuilderWithAvailableServiceStates(B builder,
Class dataClass,
Set<rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType> supportedServiceTypeSet) |
public ServiceRemoteManager()
public ServiceRemoteManager(org.openbase.jul.iface.provider.LabelProvider responsibleInstance)
public void applyConfigUpdate(List<String> unitIDList) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void activate()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
activate in interface org.openbase.jul.iface.Activatableorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void deactivate()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
deactivate in interface org.openbase.jul.iface.ActivatableInterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic boolean isActive()
isActive in interface org.openbase.jul.iface.Activatablepublic List<AbstractServiceRemote> getServiceRemoteList()
public boolean isServiceAvailable(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType)
ServiceType is currently available by this ServiceRemoteManagerserviceType - the ServiceType to check.ServiceType is available, otherwise false.public AbstractServiceRemote getServiceRemote(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType) throws org.openbase.jul.exception.NotAvailableException
org.openbase.jul.exception.NotAvailableExceptionpublic <B> B updateBuilderWithAvailableServiceStates(B builder,
Class dataClass,
Set<rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType> supportedServiceTypeSet)
throws InterruptedException
InterruptedExceptionpublic Future<rst.domotic.action.SnapshotType.Snapshot> recordSnapshot() throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
recordSnapshot in interface org.openbase.jul.iface.Snapshotable<rst.domotic.action.SnapshotType.Snapshot>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic Future<rst.domotic.action.SnapshotType.Snapshot> recordSnapshot(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic Future<Void> restoreSnapshot(rst.domotic.action.SnapshotType.Snapshot snapshot) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
restoreSnapshot in interface org.openbase.jul.iface.Snapshotable<rst.domotic.action.SnapshotType.Snapshot>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic Future<rst.domotic.action.ActionFutureType.ActionFuture> applyAction(rst.domotic.action.ActionDescriptionType.ActionDescription actionDescription) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionprotected abstract Set<rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType> getManagedServiceTypes() throws org.openbase.jul.exception.NotAvailableException, InterruptedException
org.openbase.jul.exception.NotAvailableExceptionInterruptedExceptionprotected abstract void notifyServiceUpdate(org.openbase.jul.pattern.Observable source,
Object data)
throws org.openbase.jul.exception.NotAvailableException,
InterruptedException
org.openbase.jul.exception.NotAvailableExceptionInterruptedExceptionCopyright © 2014–2017 openbase.org. All rights reserved.