KEY - ENTRY - CONFIG_M - CONFIG_MB - public class RegistrySynchronizer<KEY,ENTRY extends Configurable<KEY,CONFIG_M>,CONFIG_M extends com.google.protobuf.GeneratedMessage,CONFIG_MB extends com.google.protobuf.GeneratedMessage.Builder<CONFIG_MB>> extends Object implements Activatable, Shutdownable
Shutdownable.ShutdownDeamon| Modifier and Type | Field and Description |
|---|---|
protected SynchronizableRegistry<KEY,ENTRY> |
localRegistry |
protected org.slf4j.Logger |
logger |
protected RegistryRemote |
registryRemote |
protected RemoteRegistry<KEY,CONFIG_M,CONFIG_MB> |
remoteRegistry |
| Constructor and Description |
|---|
RegistrySynchronizer(SynchronizableRegistry<KEY,ENTRY> registry,
RemoteRegistry<KEY,CONFIG_M,CONFIG_MB> remoteRegistry,
org.openbase.jul.pattern.Factory<ENTRY,CONFIG_M> factory)
Deprecated.
|
RegistrySynchronizer(SynchronizableRegistry<KEY,ENTRY> registry,
RemoteRegistry<KEY,CONFIG_M,CONFIG_MB> remoteRegistry,
RegistryRemote registryRemote,
org.openbase.jul.pattern.Factory<ENTRY,CONFIG_M> factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
KEY |
getId(CONFIG_M entry) |
boolean |
isActive() |
ENTRY |
register(CONFIG_M config) |
ENTRY |
remove(CONFIG_M config) |
void |
shutdown() |
ENTRY |
update(CONFIG_M config) |
boolean |
verifyConfig(CONFIG_M config)
Method should return true if the given configurations is valid, otherwise
false.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterShutdownHook, registerShutdownHookprotected final org.slf4j.Logger logger
protected final SynchronizableRegistry<KEY,ENTRY extends Configurable<KEY,CONFIG_M>> localRegistry
protected final RemoteRegistry<KEY,CONFIG_M extends com.google.protobuf.GeneratedMessage,CONFIG_MB extends com.google.protobuf.GeneratedMessage.Builder<CONFIG_MB>> remoteRegistry
protected final RegistryRemote registryRemote
@Deprecated public RegistrySynchronizer(SynchronizableRegistry<KEY,ENTRY> registry, RemoteRegistry<KEY,CONFIG_M,CONFIG_MB> remoteRegistry, org.openbase.jul.pattern.Factory<ENTRY,CONFIG_M> factory) throws InstantiationException
InstantiationExceptionpublic RegistrySynchronizer(SynchronizableRegistry<KEY,ENTRY> registry, RemoteRegistry<KEY,CONFIG_M,CONFIG_MB> remoteRegistry, RegistryRemote registryRemote, org.openbase.jul.pattern.Factory<ENTRY,CONFIG_M> factory) throws InstantiationException
InstantiationExceptionpublic void activate()
throws CouldNotPerformException,
InterruptedException
activate in interface ActivatableCouldNotPerformExceptionInterruptedExceptionpublic void deactivate()
throws CouldNotPerformException,
InterruptedException
deactivate in interface ActivatableCouldNotPerformExceptionInterruptedExceptionpublic boolean isActive()
isActive in interface Activatablepublic void shutdown()
shutdown in interface Shutdownablepublic ENTRY register(CONFIG_M config) throws CouldNotPerformException, InterruptedException
public ENTRY update(CONFIG_M config) throws CouldNotPerformException, InterruptedException
public ENTRY remove(CONFIG_M config) throws CouldNotPerformException, InterruptedException
public KEY getId(CONFIG_M entry) throws CouldNotPerformException
CouldNotPerformExceptionpublic boolean verifyConfig(CONFIG_M config) throws VerificationFailedException
config - VerificationFailedExceptionCopyright © 2015–2018 openbase.org. All rights reserved.