KEY - ENTRY - MAP - R - P - public class RegistrySandboxImpl<KEY,ENTRY extends Identifiable<KEY>,MAP extends Map<KEY,ENTRY>,R extends Registry<KEY,ENTRY>,P extends RegistryPlugin<KEY,ENTRY,R>> extends AbstractRegistry<KEY,ENTRY,MAP,R,P> implements RegistrySandbox<KEY,ENTRY,MAP,R>
Shutdownable.ShutdownDeamonconsistent, logger, pluginPool, sandboxlatestValueHash, observers, unchangedValueFilterTYPE_FIELD_NAME| Constructor and Description |
|---|
RegistrySandboxImpl(MAP entryMap,
R originRegistry) |
RegistrySandboxImpl(MAP entryMap,
RegistryCloner<KEY,ENTRY,MAP> cloner,
R originRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(org.openbase.jul.pattern.Observer<Map<KEY,ENTRY>> observer) |
protected void |
finishTransaction() |
boolean |
isSandbox() |
ENTRY |
register(ENTRY entry)
Method registers the given entry.
|
void |
replaceInternalMap(Map<KEY,ENTRY> map,
boolean finishTransaction)
Replaces the internal registry map by the given one.
|
ENTRY |
superRemove(ENTRY entry) |
void |
sync(MAP map) |
String |
toString() |
ENTRY |
update(ENTRY entry) |
addDependencyObserver, afterConsistencyCheck, checkConsistency, checkWriteAccess, clear, contains, contains, get, getEntries, getEntryMap, getEntryMapClass, getName, info, isBusy, isBusyByCurrentThread, isConsistent, isDependingOnConsistentRegistries, isEmpty, isReadOnly, isReady, isWriteLockedByCurrentThread, load, lock, log, log, log, notifyObservers, recursiveTryLockRegistry, registerConsistencyHandler, registerDependency, registerPlugin, remove, remove, removeAllDependencies, removeConsistencyHandler, removeDependency, removeDependencyObserver, replaceInternalMap, setName, setupSandbox, shutdown, size, tryLockRegistry, unlock, unlockRegistry, verifyID, verifyIDapplyValueUpdate, getValue, getValueFuture, isValueAvailable, waitForValueisNotificationInProgess, notifyObservers, notifyObservers, removeObserver, setExecutorService, setHashGenerator, waitUntilNotificationIsFinishedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitload, registerConsistencyHandler, removeConsistencyHandler, replaceInternalMapaddDependencyObserver, clear, contains, contains, get, get, getEntries, getEntryMap, getName, isConsistent, isEmpty, isEmtpy, isReadOnly, isReady, recursiveTryLockRegistry, remove, remove, removeDependencyObserver, size, tryLockRegistry, unlockRegistrycheckWriteAccess, isWritablegetLatestValue, getValue, getValueFuture, isValueAvailable, removeObserver, waitForValue, waitForValueregisterShutdownHook, registerShutdownHook, shutdownpublic RegistrySandboxImpl(MAP entryMap, R originRegistry) throws CouldNotPerformException, InterruptedException
public RegistrySandboxImpl(MAP entryMap, RegistryCloner<KEY,ENTRY,MAP> cloner, R originRegistry) throws CouldNotPerformException, InterruptedException
public void replaceInternalMap(Map<KEY,ENTRY> map, boolean finishTransaction) throws CouldNotPerformException
AbstractRegistryUse with care!
replaceInternalMap in class AbstractRegistry<KEY,ENTRY extends Identifiable<KEY>,MAP extends Map<KEY,ENTRY>,R extends Registry<KEY,ENTRY>,P extends RegistryPlugin<KEY,ENTRY,R>>finishTransaction - is true the registry transaction will be verified.CouldNotPerformExceptionpublic ENTRY superRemove(ENTRY entry) throws CouldNotPerformException
superRemove in class AbstractRegistry<KEY,ENTRY extends Identifiable<KEY>,MAP extends Map<KEY,ENTRY>,R extends Registry<KEY,ENTRY>,P extends RegistryPlugin<KEY,ENTRY,R>>CouldNotPerformExceptionpublic ENTRY update(ENTRY entry) throws CouldNotPerformException
AbstractRegistryupdate in interface Registry<KEY,ENTRY extends Identifiable<KEY>>update in class AbstractRegistry<KEY,ENTRY extends Identifiable<KEY>,MAP extends Map<KEY,ENTRY>,R extends Registry<KEY,ENTRY>,P extends RegistryPlugin<KEY,ENTRY,R>>entry - CouldNotPerformExceptionpublic ENTRY register(ENTRY entry) throws CouldNotPerformException
AbstractRegistryregister in interface Registry<KEY,ENTRY extends Identifiable<KEY>>register in class AbstractRegistry<KEY,ENTRY extends Identifiable<KEY>,MAP extends Map<KEY,ENTRY>,R extends Registry<KEY,ENTRY>,P extends RegistryPlugin<KEY,ENTRY,R>>entry - the new entry to register which is not yet included in the registryCouldNotPerformException - is thrown if the given entry is not valid, already registered or something else went wrong during the registration.public void sync(MAP map) throws CouldNotPerformException
sync in interface RegistrySandbox<KEY,ENTRY extends Identifiable<KEY>,MAP extends Map<KEY,ENTRY>,R extends Registry<KEY,ENTRY>>CouldNotPerformExceptionpublic void addObserver(org.openbase.jul.pattern.Observer<Map<KEY,ENTRY>> observer)
addObserver in interface org.openbase.jul.pattern.Observable<Map<KEY,ENTRY extends Identifiable<KEY>>>addObserver in class org.openbase.jul.pattern.AbstractObservable<Map<KEY,ENTRY extends Identifiable<KEY>>>protected void finishTransaction()
throws CouldNotPerformException
finishTransaction in class AbstractRegistry<KEY,ENTRY extends Identifiable<KEY>,MAP extends Map<KEY,ENTRY>,R extends Registry<KEY,ENTRY>,P extends RegistryPlugin<KEY,ENTRY,R>>CouldNotPerformExceptionpublic boolean isSandbox()
AbstractRegistryCopyright © 2015–2018 openbase.org. All rights reserved.