public class ObjectRemote extends AbstractUnitRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>
CONNECTION_TIMEOUT, DATA_WAIT_TIMEOUT, logger, LOGGING_TIMEOUT, maintainer, METHOD_CALL_MAX_TIMEOUT, METHOD_CALL_START_TIMEOUT, METHOD_CALL_TIMEOUT_MULTIPLIER, PING_TEST_TIMEOUT, PING_TIMEOUT, REQUEST_TIMEOUT, scopeRESPONSIBLE_ACTION_FIELD_NAME, SERVICE_LABEL, SERVICE_MODE_PACKAGE, SERVICE_STATE_PACKAGE| Constructor and Description |
|---|
ObjectRemote() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addHandler(rsb.Handler handler,
boolean wait) |
void |
addServiceStateObserver(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType,
org.openbase.jul.pattern.Observer observer) |
Future<rst.domotic.action.ActionFutureType.ActionFuture> |
applyAction(rst.domotic.action.ActionDescriptionType.ActionDescription actionDescription) |
<R> R |
callMethod(String methodName) |
<R> R |
callMethod(String methodName,
long timeout) |
<R,T> R |
callMethod(String methodName,
T argument) |
<R,T> R |
callMethod(String methodName,
T argument,
long timeout) |
<R> Future<R> |
callMethodAsync(String methodName) |
<R,T> Future<R> |
callMethodAsync(String methodName,
T argument) |
void |
deactivate() |
org.openbase.jul.pattern.Remote.ConnectionState |
getConnectionState() |
rst.domotic.unit.dal.ObjectDataType.ObjectData |
getData() |
CompletableFuture<rst.domotic.unit.dal.ObjectDataType.ObjectData> |
getDataFuture() |
Long |
getPing() |
boolean |
isActive() |
boolean |
isConnected() |
boolean |
isDataAvailable() |
Future<Long> |
ping() |
Future<rst.domotic.action.SnapshotType.Snapshot> |
recordSnapshot() |
void |
removeServiceStateObserver(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType,
org.openbase.jul.pattern.Observer observer) |
CompletableFuture<rst.domotic.unit.dal.ObjectDataType.ObjectData> |
requestData() |
Future<Void> |
restoreSnapshot(rst.domotic.action.SnapshotType.Snapshot snapshot) |
void |
validateData() |
void |
validateMiddleware() |
void |
waitForData() |
void |
waitForData(long timeout,
TimeUnit timeUnit) |
void |
waitForMiddleware() |
addDataObserver, addDataObserver, addServiceStateObserver, applyConfigUpdate, getLabel, getLocationConfig, getParentLocationConfig, getParentLocationRemote, getScope, getSessionManager, getTransformation, getUnitRegistry, getUnitTemplate, getUnitType, init, init, init, init, initById, initByLabel, isEnabled, postInit, removeDataObserver, removeDataObserver, removeServiceStateObserver, setSessionManager, shutdown, toStringaddConfigObserver, getConfig, getConfigClass, getConfigField, getConfigField, getId, hasConfigField, init, notifyConfigUpdate, removeConfigObserver, supportsConfigFieldactivate, activate, addConnectionStateObserver, addObserver, applyEventUpdate, applyExternalDataUpdate, deactivate, generateHandler, getDataClass, getDataField, getIntenalPriorizedDataObservable, getRemoteServer, hasDataField, init, init, internalRequestStatus, isLocked, lock, notifyDataUpdate, reinit, reinit, reinit, reinit, removeConnectionStateObserver, removeObserver, reset, setMessageProcessor, unlock, validateActivation, validateInitialization, verifyMaintainability, waitForConnectionState, waitForConnectionStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitupdateActionDescriptiongenerateVariablePool, generateVariablePool, generateVariablePool, getGlobalBoundingBoxCenterPoint3d, getGlobalPosition, getGlobalPositionPoint3d, getGlobalRotation, getGlobalRotationQuat4d, getHostUnitConfig, getLatestTransactionId, getLocalBoundingBoxCenterPoint3d, getLocalPosition, getLocalRotation, getLocationRegistry, getRootToUnitTransform3D, getRootToUnitTransformation, getRootToUnitTransformationFuture, getTemplate, getTransactionIdByServiceType, getTransform3D, getTransform3DInverse, getType, getUnitBoundingBoxCenterGlobalPoint3d, getUnitBoundingBoxCenterPoint3d, getUnitPosition, getUnitPositionGlobal, getUnitPositionGlobalPoint3d, getUnitRotation, getUnitRotationGlobal, getUnitRotationGlobalQuat4d, getUnitShape, getUnitToRootTransform3D, getUnitToRootTransformation, getUnitToRootTransformationFuture, isBaseUnit, isDalUnit, verifyOperationServiceState, verifyOperationServiceStateValuebuildServiceState, detectServiceDataClass, detectServiceMethod, detectServiceMethod, getArgumentClasses, getServiceBaseName, getServicePrefix, getServiceStateClass, getServiceStateName, getServiceStateName, getServiceStateValues, getServiceType, invokeOperationServiceMethod, invokeProviderServiceMethod, invokeServiceMethod, invokeServiceMethod, upateActionDescription, upateActionDescriptionaddConfigObserver, getConfig, getConfigClass, removeConfigObserveractivate, activate, addConnectionStateObserver, removeConnectionStateObserverregisterShutdownHook, registerShutdownHookpublic void waitForData()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
AbstractUnitRemotewaitForData in interface org.openbase.jul.pattern.provider.DataProvider<rst.domotic.unit.dal.ObjectDataType.ObjectData>waitForData in interface org.openbase.jul.pattern.Remote<rst.domotic.unit.dal.ObjectDataType.ObjectData>waitForData in class AbstractUnitRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void waitForData(long timeout,
TimeUnit timeUnit)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
AbstractUnitRemotewaitForData in interface org.openbase.jul.pattern.provider.DataProvider<rst.domotic.unit.dal.ObjectDataType.ObjectData>waitForData in interface org.openbase.jul.pattern.Remote<rst.domotic.unit.dal.ObjectDataType.ObjectData>waitForData in class AbstractUnitRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>timeout - timeUnit - 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.RejectedException
AbstractUnitRemoteapplyAction in interface ServiceProviderapplyAction in class AbstractUnitRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>actionDescription - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionorg.openbase.jul.exception.RejectedExceptionpublic Future<rst.domotic.action.SnapshotType.Snapshot> recordSnapshot() throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
AbstractUnitRemoterecordSnapshot in interface Unit<rst.domotic.unit.dal.ObjectDataType.ObjectData>recordSnapshot in interface org.openbase.jul.iface.Snapshotable<rst.domotic.action.SnapshotType.Snapshot>recordSnapshot in class AbstractUnitRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic Future<Void> restoreSnapshot(rst.domotic.action.SnapshotType.Snapshot snapshot) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void addServiceStateObserver(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType,
org.openbase.jul.pattern.Observer observer)
public void removeServiceStateObserver(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType,
org.openbase.jul.pattern.Observer observer)
public void addHandler(rsb.Handler handler,
boolean wait)
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
addHandler in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic void activate()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
AbstractUnitRemoteactivate in interface org.openbase.jul.iface.Activatableactivate in class AbstractUnitRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic void deactivate()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
deactivate in interface org.openbase.jul.iface.Activatabledeactivate in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic boolean isConnected()
isConnected in interface org.openbase.jul.pattern.Remote<rst.domotic.unit.dal.ObjectDataType.ObjectData>isConnected in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>public org.openbase.jul.pattern.Remote.ConnectionState getConnectionState()
getConnectionState in interface org.openbase.jul.pattern.Remote<rst.domotic.unit.dal.ObjectDataType.ObjectData>getConnectionState in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>public boolean isActive()
isActive in interface org.openbase.jul.iface.ActivatableisActive in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>public <R> Future<R> callMethodAsync(String methodName) throws org.openbase.jul.exception.CouldNotPerformException
callMethodAsync in interface org.openbase.jul.extension.rsb.com.RSBRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>callMethodAsync in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionpublic <R> R callMethod(String methodName) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
callMethod in interface org.openbase.jul.extension.rsb.com.RSBRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>callMethod in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic <R,T> R callMethod(String methodName, T argument) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
callMethod in interface org.openbase.jul.extension.rsb.com.RSBRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>callMethod in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic <R> R callMethod(String methodName, long timeout) throws org.openbase.jul.exception.CouldNotPerformException, org.openbase.jul.exception.TimeoutException, InterruptedException
callMethod in interface org.openbase.jul.extension.rsb.com.RSBRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>callMethod in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionorg.openbase.jul.exception.TimeoutExceptionInterruptedExceptionpublic <R,T> R callMethod(String methodName, T argument, long timeout) throws org.openbase.jul.exception.CouldNotPerformException, org.openbase.jul.exception.TimeoutException, InterruptedException
callMethod in interface org.openbase.jul.extension.rsb.com.RSBRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>callMethod in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionorg.openbase.jul.exception.TimeoutExceptionInterruptedExceptionpublic <R,T> Future<R> callMethodAsync(String methodName, T argument) throws org.openbase.jul.exception.CouldNotPerformException
callMethodAsync in interface org.openbase.jul.extension.rsb.com.RSBRemote<rst.domotic.unit.dal.ObjectDataType.ObjectData>callMethodAsync in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionpublic CompletableFuture<rst.domotic.unit.dal.ObjectDataType.ObjectData> requestData() throws org.openbase.jul.exception.CouldNotPerformException
requestData in interface org.openbase.jul.pattern.Remote<rst.domotic.unit.dal.ObjectDataType.ObjectData>requestData in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionpublic rst.domotic.unit.dal.ObjectDataType.ObjectData getData()
throws org.openbase.jul.exception.NotAvailableException
getData in interface org.openbase.jul.pattern.provider.DataProvider<rst.domotic.unit.dal.ObjectDataType.ObjectData>getData in interface org.openbase.jul.pattern.Remote<rst.domotic.unit.dal.ObjectDataType.ObjectData>getData in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.NotAvailableExceptionpublic boolean isDataAvailable()
isDataAvailable in interface org.openbase.jul.pattern.provider.DataProvider<rst.domotic.unit.dal.ObjectDataType.ObjectData>isDataAvailable in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>public void validateMiddleware()
throws org.openbase.jul.exception.InvalidStateException
validateMiddleware in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.InvalidStateExceptionpublic void validateData()
throws org.openbase.jul.exception.InvalidStateException
validateData in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.InvalidStateExceptionpublic void waitForMiddleware()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
waitForMiddleware in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic Future<Long> ping()
ping in interface org.openbase.jul.iface.provider.PingProviderping in interface org.openbase.jul.pattern.Remote<rst.domotic.unit.dal.ObjectDataType.ObjectData>ping in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>public Long getPing()
getPing in interface org.openbase.jul.iface.provider.PingProvidergetPing in interface org.openbase.jul.pattern.Remote<rst.domotic.unit.dal.ObjectDataType.ObjectData>getPing in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.dal.ObjectDataType.ObjectData>public CompletableFuture<rst.domotic.unit.dal.ObjectDataType.ObjectData> getDataFuture()
Copyright © 2014–2018 openbase.org. All rights reserved.