public abstract class AbstractConfigurationAdministrator extends java.lang.Object implements FreezableConfigurationAdministrator
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractConfigurationAdministrator.CompositeFuture<T> |
protected static class |
AbstractConfigurationAdministrator.ConfigurationFuture |
protected static class |
AbstractConfigurationAdministrator.PatchFuture |
protected static class |
AbstractConfigurationAdministrator.PurgeFuture |
FACTORY_ID| Constructor and Description |
|---|
AbstractConfigurationAdministrator(BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFactoryService(java.lang.String factoryId,
ConfigurationFactory service,
java.lang.String description) |
protected SelfManagedConfigurationFactory |
addingSelfService( |
protected ConfigurationFactory |
addingService( |
protected void |
addStoredFactory(java.lang.String factoryId,
ConfigurationImpl[] configurations) |
protected void |
applyConfiguration(UserInformation userInformation,
AbstractConfigurationAdministrator.ConfigurationFuture future,
ConfigurationFactory factoryService,
FactoryImpl factory,
ConfigurationImpl configuration)
Apply the configuration to the assigned service
|
|
applyDiff(UserInformation userInformation,
java.util.Collection<DiffEntry> changeSet)
Applies a change set to an existing configuration manager.
|
protected void |
changeConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId,
java.util.Map<java.lang.String,java.lang.String> properties,
AbstractConfigurationAdministrator.ConfigurationFuture future)
Request a change of the configuration
|
|
createConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId,
java.util.Map<java.lang.String,java.lang.String> properties) |
|
deleteConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId) |
void |
dispose() |
void |
freeze() |
Configuration |
getConfiguration(java.lang.String factoryId,
java.lang.String configurationId) |
Configuration[] |
getConfigurations(java.lang.String factoryId) |
FactoryImpl |
getFactory(java.lang.String factoryId) |
FactoryImpl[] |
getKnownFactories() |
protected void |
handleSelfChange(java.lang.String factoryId,
Configuration[] addedOrChanged,
java.lang.String[] deleted) |
protected abstract void |
performDeleteConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId,
AbstractConfigurationAdministrator.ConfigurationFuture future) |
protected abstract void |
performPurge(UserInformation userInformation,
java.lang.String factoryId,
AbstractConfigurationAdministrator.PurgeFuture future) |
protected abstract void |
performStoreConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId,
java.util.Map<java.lang.String,java.lang.String> properties,
boolean fullSet,
AbstractConfigurationAdministrator.ConfigurationFuture future) |
|
purgeFactory(UserInformation userInformation,
java.lang.String factoryId) |
protected void |
removedSelfService( |
protected void |
removedService( |
protected void |
removeFactoryService(java.lang.String factoryId,
ConfigurationFactory service) |
protected void |
setFactoryState(FactoryImpl factory,
FactoryState state) |
void |
start() |
void |
stop() |
void |
thaw() |
|
updateConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId,
java.util.Map<java.lang.String,java.lang.String> properties,
boolean fullSet) |
public AbstractConfigurationAdministrator(BundleContext context)
public void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
java.lang.Exceptionpublic void dispose()
public void freeze()
throws java.lang.Exception
freeze in interface FreezableConfigurationAdministratorjava.lang.Exceptionpublic void thaw()
throws java.lang.Exception
thaw in interface FreezableConfigurationAdministratorjava.lang.Exceptionprotected void addStoredFactory(java.lang.String factoryId,
ConfigurationImpl[] configurations)
protected void setFactoryState(FactoryImpl factory, FactoryState state)
protected void addFactoryService(java.lang.String factoryId,
ConfigurationFactory service,
java.lang.String description)
protected void removeFactoryService(java.lang.String factoryId,
ConfigurationFactory service)
protected void handleSelfChange(java.lang.String factoryId,
Configuration[] addedOrChanged,
java.lang.String[] deleted)
protected abstract void performPurge(UserInformation userInformation,
java.lang.String factoryId,
AbstractConfigurationAdministrator.PurgeFuture future)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void performStoreConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId,
java.util.Map<java.lang.String,java.lang.String> properties,
boolean fullSet,
AbstractConfigurationAdministrator.ConfigurationFuture future)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void performDeleteConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId,
AbstractConfigurationAdministrator.ConfigurationFuture future)
throws java.lang.Exception
java.lang.Exceptionprotected void changeConfiguration(UserInformation userInformation,
java.lang.String factoryId,
java.lang.String configurationId,
java.util.Map<java.lang.String,java.lang.String> properties,
AbstractConfigurationAdministrator.ConfigurationFuture future)
userInformation - factoryId - configurationId - properties - future - protected void applyConfiguration(UserInformation userInformation,
AbstractConfigurationAdministrator.ConfigurationFuture future,
ConfigurationFactory factoryService,
FactoryImpl factory,
ConfigurationImpl configuration)
This method can block for some while
userInformation - future - factory - factoryService - configuration - publicpurgeFactory(UserInformation userInformation, java.lang.String factoryId)
purgeFactory in interface ConfigurationAdministratorpubliccreateConfiguration(UserInformation userInformation, java.lang.String factoryId, java.lang.String configurationId, java.util.Map<java.lang.String,java.lang.String> properties)
createConfiguration in interface ConfigurationAdministratorpublicupdateConfiguration(UserInformation userInformation, java.lang.String factoryId, java.lang.String configurationId, java.util.Map<java.lang.String,java.lang.String> properties, boolean fullSet)
updateConfiguration in interface ConfigurationAdministratorpublicdeleteConfiguration(UserInformation userInformation, java.lang.String factoryId, java.lang.String configurationId)
deleteConfiguration in interface ConfigurationAdministratorpublic Configuration getConfiguration(java.lang.String factoryId, java.lang.String configurationId)
getConfiguration in interface ConfigurationAdministratorpublic Configuration[] getConfigurations(java.lang.String factoryId)
getConfigurations in interface ConfigurationAdministratorpublic FactoryImpl getFactory(java.lang.String factoryId)
getFactory in interface ConfigurationAdministratorpublic FactoryImpl[] getKnownFactories()
getKnownFactories in interface ConfigurationAdministratorprotected ConfigurationFactory addingService(reference)
protected void removedService(reference, ConfigurationFactory service)
protected SelfManagedConfigurationFactory addingSelfService(reference)
protected void removedSelfService(reference, java.lang.Object service)
publicapplyDiff(UserInformation userInformation, java.util.Collection<DiffEntry> changeSet)
ConfigurationAdministratorThe operation must be atomic to the configuration system.
Note that there are two or more entries for one factory/configuration combination it is unspecified which entry will be applied.
applyDiff in interface ConfigurationAdministratorchangeSet - the change set to apply
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0