|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.kernel.configuration.ConfigurationServiceImpl
public class ConfigurationServiceImpl
Class implementing the ConfigurationService interface.
FIXME : Create an implementation for distributed mode and one for standalone
mode. This will avoid some if then tests.
| Field Summary | |
|---|---|
protected org.ow2.petals.util.LoggingUtil |
log
Logging utilities |
| Constructor Summary | |
|---|---|
ConfigurationServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addContainerConfiguration(ContainerConfiguration addedContainer)
Registers a new container configuration within the local configuration. |
void |
addSubdomainConfiguration(SubDomainConfiguration addedSubdomain)
Registers a new subdomain within the local topology. |
void |
backupTopology()
Backups the local topology. |
ContainerConfiguration |
getContainerConfiguration()
Get the local container configuration. |
ContainerConfiguration |
getContainerConfiguration(java.lang.String containerName)
Get the container configuration. |
java.util.Set<ContainerConfiguration> |
getContainersConfiguration()
Get the containers configuration. |
DomainConfiguration |
getDomainConfiguration()
Get the domain configuration the local container belongs to. |
SubDomainConfiguration |
getSubDomainConfiguration()
Get the sub domain configuration the local container belongs to. |
java.util.Set<SubDomainConfiguration> |
getSubDomainsConfiguration()
Get the subdomains configuration. |
org.ow2.petals.topology.generated.Topology |
getTopology()
Get the current topology. |
void |
loadTopology()
Load or reload the topology. |
void |
removeContainerConfiguration(ContainerConfiguration removedContainer)
Unregisters the subdomain within the local topology. |
void |
removeSubdomainConfiguration(java.lang.String removedSubdomainName)
Unregister a subdomain within the local topology. |
void |
setContainerState(ContainerConfiguration.ContainerState state)
Set the running state of the local container. |
protected void |
start()
|
protected void |
stop()
|
void |
validateDynamicTopology()
Validate the dynamic topology |
void |
verifyContainerTopology(ContainerConfiguration newContainerConfiguration,
SubDomainConfiguration newSubDomainConfiguration,
DomainConfiguration newDomainConfiguration)
Verify the given containerConfiguration against the topology
configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.petals.util.LoggingUtil log
| Constructor Detail |
|---|
public ConfigurationServiceImpl()
| Method Detail |
|---|
public void addContainerConfiguration(ContainerConfiguration addedContainer)
throws ConfigurationException
addContainerConfiguration in interface ConfigurationServiceaddedContainer - the container to be registered
ConfigurationException
public void addSubdomainConfiguration(SubDomainConfiguration addedSubdomain)
throws ConfigurationException
addSubdomainConfiguration in interface ConfigurationServiceConfigurationException
public void backupTopology()
throws ConfigurationException
backupTopology in interface ConfigurationServiceConfigurationExceptionpublic ContainerConfiguration getContainerConfiguration()
ConfigurationService
getContainerConfiguration in interface ConfigurationServicepublic ContainerConfiguration getContainerConfiguration(java.lang.String containerName)
getContainerConfiguration in interface ConfigurationServicecontainerName - the name of the container to get configuration from. If null,
returns the local container configuration.
public java.util.Set<ContainerConfiguration> getContainersConfiguration()
getContainersConfiguration in interface ConfigurationServicepublic DomainConfiguration getDomainConfiguration()
getDomainConfiguration in interface ConfigurationServicepublic SubDomainConfiguration getSubDomainConfiguration()
getSubDomainConfiguration in interface ConfigurationServicepublic java.util.Set<SubDomainConfiguration> getSubDomainsConfiguration()
getSubDomainsConfiguration in interface ConfigurationService
public org.ow2.petals.topology.generated.Topology getTopology()
throws ConfigurationException
getTopology in interface ConfigurationServiceConfigurationException
public void loadTopology()
throws ConfigurationException
loadTopology in interface ConfigurationServiceConfigurationException
public void removeContainerConfiguration(ContainerConfiguration removedContainer)
throws ConfigurationException
ConfigurationService
removeContainerConfiguration in interface ConfigurationServiceConfigurationException
public void removeSubdomainConfiguration(java.lang.String removedSubdomainName)
throws ConfigurationException
ConfigurationService
removeSubdomainConfiguration in interface ConfigurationServiceConfigurationExceptionpublic void setContainerState(ContainerConfiguration.ContainerState state)
setContainerState in interface ConfigurationServicestate - ContainerConfiguration.ContainerState
public void validateDynamicTopology()
throws ConfigurationException
ConfigurationService
validateDynamicTopology in interface ConfigurationServiceConfigurationException
public void verifyContainerTopology(ContainerConfiguration newContainerConfiguration,
SubDomainConfiguration newSubDomainConfiguration,
DomainConfiguration newDomainConfiguration)
throws org.ow2.petals.topology.TopologyException
ConfigurationServicecontainerConfiguration against the topology
configuration.
verifyContainerTopology in interface ConfigurationServicenewContainerConfiguration - The new container configurationnewSubDomainConfiguration - The new sub-domain configurationnewDomainConfiguration - The new domain configuration
org.ow2.petals.topology.TopologyException - Inconsistency between the topology configuration and the new
container configuration
protected void start()
throws java.lang.Exception
java.lang.ExceptionLifeCycleController.startFc()
protected void stop()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||