M - public abstract class AbstractUnitRemote<M extends com.google.protobuf.GeneratedMessage> extends org.openbase.jul.extension.rsb.com.AbstractConfigurableRemote<M,rst.domotic.unit.UnitConfigType.UnitConfig> implements UnitRemote<M>
CONNECTION_TIMEOUT, DATA_WAIT_TIMEOUT, logger, LOGGING_TIMEOUT, maintainer, METHOD_CALL_MAX_TIMEOUT, METHOD_CALL_START_TIMEOUT, METHOD_CALL_TIMEOUT_MULTIPLIER, PING_TIMEOUT, REQUEST_TIMEOUT, scopeSERVICE_LABEL, SERVICE_STATE_PACKAGE| Constructor and Description |
|---|
AbstractUnitRemote(Class<M> dataClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
Future<Void> |
applyAction(rst.domotic.action.ActionConfigType.ActionConfig actionConfig) |
rst.domotic.unit.UnitConfigType.UnitConfig |
applyConfigUpdate(rst.domotic.unit.UnitConfigType.UnitConfig config) |
String |
getLabel() |
rst.domotic.unit.UnitConfigType.UnitConfig |
getLocationConfig() |
rst.rsb.ScopeType.Scope |
getScope() |
rst.domotic.unit.UnitTemplateType.UnitTemplate |
getTemplate() |
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType |
getType() |
protected org.openbase.bco.registry.unit.lib.UnitRegistry |
getUnitRegistry() |
void |
init(rsb.Scope scope) |
void |
init(rst.rsb.ScopeType.Scope scope) |
void |
init(String scope) |
void |
init(String label,
org.openbase.jul.extension.rst.iface.ScopeProvider location) |
void |
initById(String id) |
void |
initByLabel(String label) |
boolean |
isEnabled() |
protected void |
postInit() |
Future<rst.domotic.action.SnapshotType.Snapshot> |
recordSnapshot() |
void |
waitForData() |
void |
waitForData(long timeout,
TimeUnit timeUnit) |
addConfigObserver, getConfig, getConfigClass, getConfigField, getConfigField, getId, hasConfigField, init, notifyConfigUpdate, removeConfigObserver, shutdown, supportsConfigFieldactivate, addConnectionStateObserver, addDataObserver, addHandler, addObserver, callMethod, callMethod, callMethod, callMethod, callMethodAsync, callMethodAsync, deactivate, getConnectionState, getData, getDataClass, getDataField, getPing, hasDataField, init, init, isActive, isConnected, isDataAvailable, isLocked, lock, notifyDataUpdate, ping, removeConnectionStateObserver, removeDataObserver, removeObserver, requestData, reset, setMessageProcessor, toString, unlock, validateActivation, validateData, validateInitialization, verifyMaintainability, waitForConnectionState, waitForConnectionStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrestoreSnapshot, verifyOperationServiceState, verifyOperationServiceStateValuedetectServiceDataClass, detectServiceMethod, detectServiceMethod, getArgumentClasses, getServiceBaseName, getServicePrefix, getServiceStateName, getServiceStateName, invokeOperationServiceMethod, invokeProviderServiceMethod, invokeServiceMethod, invokeServiceMethodaddConfigObserver, getConfig, getConfigClass, removeConfigObserveractivate, addConnectionStateObserver, getConnectionState, getDataFuture, isConnected, removeConnectionStateObserver, requestDataregisterShutdownHook, registerShutdownHook, shutdownisLocked, lock, unlock, verifyMaintainabilityprotected org.openbase.bco.registry.unit.lib.UnitRegistry getUnitRegistry()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic void initById(String id) throws org.openbase.jul.exception.InitializationException, InterruptedException
initById in interface UnitRemote<M extends com.google.protobuf.GeneratedMessage>id - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void initByLabel(String label) throws org.openbase.jul.exception.InitializationException, InterruptedException
initByLabel in interface UnitRemote<M extends com.google.protobuf.GeneratedMessage>label - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void init(rst.rsb.ScopeType.Scope scope)
throws org.openbase.jul.exception.InitializationException,
InterruptedException
init in interface UnitRemote<M extends com.google.protobuf.GeneratedMessage>init in interface org.openbase.jul.extension.rsb.com.RSBRemote<M extends com.google.protobuf.GeneratedMessage>init in class org.openbase.jul.extension.rsb.com.RSBRemoteService<M extends com.google.protobuf.GeneratedMessage>scope - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void init(rsb.Scope scope)
throws org.openbase.jul.exception.InitializationException,
InterruptedException
init in interface UnitRemote<M extends com.google.protobuf.GeneratedMessage>init in interface org.openbase.jul.extension.rsb.com.RSBRemote<M extends com.google.protobuf.GeneratedMessage>init in class org.openbase.jul.extension.rsb.com.RSBRemoteService<M extends com.google.protobuf.GeneratedMessage>scope - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void init(String scope) throws org.openbase.jul.exception.InitializationException, InterruptedException
init in interface org.openbase.jul.extension.rsb.com.RSBRemote<M extends com.google.protobuf.GeneratedMessage>init in class org.openbase.jul.extension.rsb.com.RSBRemoteService<M extends com.google.protobuf.GeneratedMessage>scope - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void init(String label, org.openbase.jul.extension.rst.iface.ScopeProvider location) throws org.openbase.jul.exception.InitializationException, InterruptedException
org.openbase.jul.exception.InitializationExceptionInterruptedExceptionprotected void postInit()
throws org.openbase.jul.exception.InitializationException,
InterruptedException
postInit in class org.openbase.jul.extension.rsb.com.RSBRemoteService<M extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic rst.domotic.unit.UnitConfigType.UnitConfig applyConfigUpdate(rst.domotic.unit.UnitConfigType.UnitConfig config)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
applyConfigUpdate in interface org.openbase.jul.iface.Configurable<String,rst.domotic.unit.UnitConfigType.UnitConfig>applyConfigUpdate in class org.openbase.jul.extension.rsb.com.AbstractConfigurableRemote<M extends com.google.protobuf.GeneratedMessage,rst.domotic.unit.UnitConfigType.UnitConfig>config - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void activate()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
activate in interface org.openbase.jul.iface.Activatableactivate in class org.openbase.jul.extension.rsb.com.RSBRemoteService<M extends com.google.protobuf.GeneratedMessage>InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic void waitForData()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
waitForData in interface org.openbase.jul.pattern.provider.DataProvider<M extends com.google.protobuf.GeneratedMessage>waitForData in interface org.openbase.jul.pattern.Remote<M extends com.google.protobuf.GeneratedMessage>waitForData in class org.openbase.jul.extension.rsb.com.RSBRemoteService<M extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void waitForData(long timeout,
TimeUnit timeUnit)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
waitForData in interface org.openbase.jul.pattern.provider.DataProvider<M extends com.google.protobuf.GeneratedMessage>waitForData in interface org.openbase.jul.pattern.Remote<M extends com.google.protobuf.GeneratedMessage>waitForData in class org.openbase.jul.extension.rsb.com.RSBRemoteService<M extends com.google.protobuf.GeneratedMessage>timeout - timeUnit - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic boolean isEnabled()
isEnabled in interface UnitRemote<M extends com.google.protobuf.GeneratedMessage>public rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType getType()
throws org.openbase.jul.exception.NotAvailableException
public rst.domotic.unit.UnitTemplateType.UnitTemplate getTemplate()
throws org.openbase.jul.exception.NotAvailableException
getTemplate in interface Unit<M extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.NotAvailableExceptionpublic String getLabel() throws org.openbase.jul.exception.NotAvailableException
getLabel in interface org.openbase.jul.iface.provider.LabelProviderorg.openbase.jul.exception.NotAvailableExceptionpublic rst.rsb.ScopeType.Scope getScope()
throws org.openbase.jul.exception.NotAvailableException
getScope in interface org.openbase.jul.extension.rsb.com.RSBRemote<M extends com.google.protobuf.GeneratedMessage>getScope in interface org.openbase.jul.extension.rst.iface.ScopeProvidergetScope in class org.openbase.jul.extension.rsb.com.RSBRemoteService<M extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.NotAvailableExceptionpublic rst.domotic.unit.UnitConfigType.UnitConfig getLocationConfig()
throws org.openbase.jul.exception.NotAvailableException
org.openbase.jul.exception.NotAvailableExceptionpublic Future<Void> applyAction(rst.domotic.action.ActionConfigType.ActionConfig actionConfig) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
applyAction in interface ServiceactionConfig - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic Future<rst.domotic.action.SnapshotType.Snapshot> recordSnapshot() throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
recordSnapshot in interface Unit<M extends com.google.protobuf.GeneratedMessage>recordSnapshot in interface org.openbase.jul.iface.Snapshotable<rst.domotic.action.SnapshotType.Snapshot>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionCopyright © 2014–2017 openbase.org. All rights reserved.