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
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
consistent, logger, pluginPool, sandbox| Constructor and Description |
|---|
SynchronizedRemoteRegistry(org.openbase.jul.pattern.Observable observable,
org.openbase.jul.extension.rsb.com.RSBRemoteService<M> remoteService,
com.google.protobuf.Descriptors.FieldDescriptor... fieldDescriptors) |
SynchronizedRemoteRegistry(org.openbase.jul.pattern.Observable observable,
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.pattern.Observable observable,
org.openbase.jul.extension.rsb.com.RSBRemoteService remoteService,
org.openbase.jul.pattern.AbstractFilter<M> filter,
int... protobufFieldNumbers) |
SynchronizedRemoteRegistry(org.openbase.jul.pattern.Observable observable,
org.openbase.jul.extension.rsb.com.RSBRemoteService remoteService,
int... protobufFieldNumbers) |
SynchronizedRemoteRegistry(org.openbase.jul.extension.rsb.com.RSBRemoteService remoteService,
org.openbase.jul.pattern.AbstractFilter<M> filter,
int... protobufFieldNumbers) |
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.
|
org.openbase.jul.pattern.AbstractFilter |
getFilter() |
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() |
addDataObserver, contains, getBuilder, getData, getDatabaseDirectory, getDataClass, getDataFuture, getDBVersion, getId, getMessage, getMessages, getRegistryRemote, isDataAvailable, isDataAvalable, isReadOnly, loadRegistry, notifyRegistryUpdate, recursiveTryLockRegistry, register, registerConsistencyHandler, registerDependency, remove, removeDataObserver, saveRegistry, setRegistryRemote, tryLockRegistry, unlockRegistry, update, waitForData, waitForData, waitUntilReady, waitUntilReadyFutureaddDependencyObserver, afterConsistencyCheck, checkConsistency, checkWriteAccess, clear, contains, contains, finishTransaction, get, getEntries, getEntryMap, getEntryMapClass, info, isBusy, isBusyByCurrentThread, isConsistent, isDependingOnConsistentRegistries, isEmpty, isReady, isSandbox, isWriteLockedByCurrentThread, load, lock, log, log, log, notifyObservers, register, registerPlugin, remove, remove, removeAllDependencies, removeConsistencyHandler, removeDependency, removeDependencyObserver, replaceInternalMap, replaceInternalMap, setName, setupSandbox, shutdown, size, superRemove, toString, unlock, update, verifyID, verifyIDapplyValueUpdate, getValue, getValueFuture, isValueAvailable, waitForValueaddObserver, isNotificationInProgess, notifyObservers, notifyObservers, removeObserver, setExecutorService, setHashGenerator, waitUntilNotificationIsFinishedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDependencyObserver, clear, contains, contains, get, get, getEntries, getEntryMap, isConsistent, isEmpty, isEmtpy, isReady, isSandbox, register, remove, remove, removeDependencyObserver, 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 remoteService,
org.openbase.jul.pattern.AbstractFilter<M> filter,
int... protobufFieldNumbers)
throws org.openbase.jul.exception.InstantiationException
remoteService - The remote service to get informed about data updates.filter - the filter which is used to synchronize the messagesprotobufFieldNumbers - 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.pattern.Observable observable,
org.openbase.jul.extension.rsb.com.RSBRemoteService remoteService,
int... protobufFieldNumbers)
throws org.openbase.jul.exception.InstantiationException
observable - The observable to get informed about data updates.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.pattern.Observable observable,
org.openbase.jul.extension.rsb.com.RSBRemoteService remoteService,
org.openbase.jul.pattern.AbstractFilter<M> filter,
int... protobufFieldNumbers)
throws org.openbase.jul.exception.InstantiationException
observable - The observable to get informed about data updates.remoteService - The remote service to get informed about data updates.filter - the filter which is used to synchronize the messagesprotobufFieldNumbers - 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.pattern.Observable observable,
org.openbase.jul.extension.rsb.com.RSBRemoteService<M> remoteService,
com.google.protobuf.Descriptors.FieldDescriptor... fieldDescriptors)
throws org.openbase.jul.exception.InstantiationException
observable - The observable to get informed about data updates.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.pattern.Observable observable,
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
observable - The observable to get informed about data updates.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.iface.provider.NameProvidergetName 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>>,org.openbase.jul.storage.registry.ProtoBufRegistry<KEY,M extends com.google.protobuf.GeneratedMessage,MB extends com.google.protobuf.GeneratedMessage.Builder<MB>>>>public org.openbase.jul.pattern.AbstractFilter getFilter()
Copyright © 2014–2018 openbase.org. All rights reserved.