KEY - M - MB - public class SynchronizedRemoteRegistry<KEY,M extends com.google.protobuf.GeneratedMessage,MB extends com.google.protobuf.GeneratedMessage.Builder<MB>>
extends org.openbase.jul.storage.registry.RemoteRegistry<KEY,M,MB>
implements org.openbase.jul.iface.Activatable
| Constructor and Description |
|---|
SynchronizedRemoteRegistry(org.openbase.jul.extension.rsb.com.RSBRemoteService<M> remoteService,
com.google.protobuf.Descriptors.FieldDescriptor... fieldDescriptors) |
SynchronizedRemoteRegistry(org.openbase.jul.extension.rsb.com.RSBRemoteService<M> remoteService,
Map<KEY,org.openbase.jul.extension.protobuf.IdentifiableMessage<KEY,M,MB>> internalMap,
com.google.protobuf.Descriptors.FieldDescriptor... fieldDescriptors) |
SynchronizedRemoteRegistry(org.openbase.jul.extension.rsb.com.RSBRemoteService remoteService,
int... protobufFieldNumbers) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
com.google.protobuf.Descriptors.FieldDescriptor[] |
getFieldDescriptors()
Method returns the list of field descriptors which are used to identify the protobuf field that are merged into the registry.
|
String |
getName() |
org.openbase.jul.extension.rsb.com.RSBRemoteService<M> |
getRemoteService()
Method returns the internal remote service which is used to detect external data changes.
|
boolean |
isActive() |
contains, getBuilder, getDBVersion, getId, getMessage, getMessages, isReadOnly, loadRegistry, notifyRegistryUpdate, register, registerConsistencyHandler, registerDependency, remove, saveRegistry, setRemote, tryLockRegistry, unlockRegistry, updatecheckConsistency, checkWriteAccess, clear, contains, contains, finishTransaction, get, getEntries, info, isConsistent, isDependingOnConsistentRegistries, isEmpty, isEmtpy, isSandbox, isWriteLockedByCurrentThread, load, lock, notifyObservers, register, registerPlugin, remove, remove, removeAllDependencies, removeConsistencyHandler, removeDependency, replaceInternalMap, replaceInternalMap, setName, setupSandbox, shutdown, size, superRemove, toString, unlock, update, verifyID, verifyIDaddObserver, getValue, notifyObservers, notifyObservers, removeObserver, waitForValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, contains, contains, get, get, getEntries, isConsistent, isEmtpy, isSandbox, register, remove, remove, size, updatepublic SynchronizedRemoteRegistry(org.openbase.jul.extension.rsb.com.RSBRemoteService remoteService,
int... protobufFieldNumbers)
throws org.openbase.jul.exception.InstantiationException
remoteService - The remote service to get informed about data updates.protobufFieldNumbers - The field numbers to identify the descriptor fields which are used for the internal registry synchronization.org.openbase.jul.exception.InstantiationException - is thrown in case the instantiation fails.public SynchronizedRemoteRegistry(org.openbase.jul.extension.rsb.com.RSBRemoteService<M> remoteService, com.google.protobuf.Descriptors.FieldDescriptor... fieldDescriptors) throws org.openbase.jul.exception.InstantiationException
remoteService - The remote service to get informed about data updates.fieldDescriptors - The field descriptors which are used for the internal registry synchronization.org.openbase.jul.exception.InstantiationException - is thrown in case the instantiation fails.public SynchronizedRemoteRegistry(org.openbase.jul.extension.rsb.com.RSBRemoteService<M> remoteService, Map<KEY,org.openbase.jul.extension.protobuf.IdentifiableMessage<KEY,M,MB>> internalMap, com.google.protobuf.Descriptors.FieldDescriptor... fieldDescriptors) throws org.openbase.jul.exception.InstantiationException
remoteService - The remote service to get informed about data updates.internalMap - the internal map instance of this registry.fieldDescriptors - The field descriptors which are used for the internal registry synchronization.org.openbase.jul.exception.InstantiationException - is thrown in case the instantiation fails.public com.google.protobuf.Descriptors.FieldDescriptor[] getFieldDescriptors()
public org.openbase.jul.extension.rsb.com.RSBRemoteService<M> getRemoteService()
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 String getName()
getName in interface org.openbase.jul.storage.registry.Registry<KEY,org.openbase.jul.extension.protobuf.IdentifiableMessage<KEY,M extends com.google.protobuf.GeneratedMessage,MB extends com.google.protobuf.GeneratedMessage.Builder<MB>>>getName in class org.openbase.jul.storage.registry.AbstractRegistry<KEY,org.openbase.jul.extension.protobuf.IdentifiableMessage<KEY,M extends com.google.protobuf.GeneratedMessage,MB extends com.google.protobuf.GeneratedMessage.Builder<MB>>,Map<KEY,org.openbase.jul.extension.protobuf.IdentifiableMessage<KEY,M extends com.google.protobuf.GeneratedMessage,MB extends com.google.protobuf.GeneratedMessage.Builder<MB>>>,org.openbase.jul.storage.registry.ProtoBufRegistry<KEY,M extends com.google.protobuf.GeneratedMessage,MB extends com.google.protobuf.GeneratedMessage.Builder<MB>>,org.openbase.jul.storage.registry.plugin.RemoteRegistryPlugin<KEY,org.openbase.jul.extension.protobuf.IdentifiableMessage<KEY,M extends com.google.protobuf.GeneratedMessage,MB extends com.google.protobuf.GeneratedMessage.Builder<MB>>>>Copyright © 2014–2016 openbase.org. All rights reserved.