|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.communication.topology.TopologyServiceImpl
public class TopologyServiceImpl
The default implementation of the topology service.
| Field Summary | |
|---|---|
protected org.ow2.petals.util.LoggingUtil |
log
Logger wrapper. |
| Constructor Summary | |
|---|---|
TopologyServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addContainerConfiguration(ContainerConfiguration addedContainer)
Add the given container to the topology |
void |
addSubdomainConfiguration(SubDomainConfiguration addedSubdomain)
Add a subdomain to the local topology. |
ContainerConfiguration |
getContainerConfiguration(java.lang.String containerName)
Get the container configuration of the given container name. |
java.util.Set<ContainerConfiguration> |
getContainersConfiguration(ContainerConfiguration.ContainerState state)
Get all the containers where the state is the same than the given one. |
java.util.Set<ContainerConfiguration> |
getContainersConfigurationsForLocalSubdomain()
|
DomainConfiguration |
getDomainConfiguration()
Get the domain configuration. |
java.util.Set<SubDomainConfiguration> |
getSubDomainsConfiguration()
Get all the sub-domain configurations. |
boolean |
hasValidLocalContainerDynamicTopologyConfiguration()
|
boolean |
isContainerStarted(java.lang.String containerName)
Test if the container is started. |
void |
registerLocalContainerOnMaster()
|
void |
removeContainerConfiguration(ContainerConfiguration removedContainer)
Remove container configuration. |
void |
removeSubdomainConfiguration(java.lang.String removedSubdomain)
Remove subdomain configuration. |
void |
setContainerState(java.lang.String containerName,
ContainerConfiguration.ContainerState state)
Set the given state to the give container. |
protected void |
start()
|
protected void |
stop()
|
void |
updateTopology()
Update the local view of the topology. |
void |
validateDynamicTopology()
Validate the dynamic topology. |
| 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 TopologyServiceImpl()
| Method Detail |
|---|
public void addContainerConfiguration(ContainerConfiguration addedContainer)
throws org.ow2.petals.kernel.api.server.PetalsException
addContainerConfiguration in interface TopologyServiceaddedContainer - the container to add to the current topology
org.ow2.petals.kernel.api.server.PetalsException - Failed to add the container to the current topology
public void addSubdomainConfiguration(SubDomainConfiguration addedSubdomain)
throws org.ow2.petals.kernel.api.server.PetalsException
addSubdomainConfiguration in interface TopologyServiceorg.ow2.petals.kernel.api.server.PetalsExceptionpublic ContainerConfiguration getContainerConfiguration(java.lang.String containerName)
getContainerConfiguration in interface TopologyServicecontainerName - The name of the targeted container
public java.util.Set<ContainerConfiguration> getContainersConfiguration(ContainerConfiguration.ContainerState state)
getContainersConfiguration in interface TopologyServicepublic java.util.Set<ContainerConfiguration> getContainersConfigurationsForLocalSubdomain()
getContainersConfigurationsForLocalSubdomain in interface TopologyServicepublic DomainConfiguration getDomainConfiguration()
getDomainConfiguration in interface TopologyServicepublic java.util.Set<SubDomainConfiguration> getSubDomainsConfiguration()
getSubDomainsConfiguration in interface TopologyServiceContainerConfigurationpublic boolean hasValidLocalContainerDynamicTopologyConfiguration()
hasValidLocalContainerDynamicTopologyConfiguration in interface TopologyServicepublic boolean isContainerStarted(java.lang.String containerName)
isContainerStarted in interface TopologyService
public void registerLocalContainerOnMaster()
throws org.ow2.petals.kernel.api.server.PetalsException
registerLocalContainerOnMaster in interface TopologyServiceorg.ow2.petals.kernel.api.server.PetalsException
public void removeContainerConfiguration(ContainerConfiguration removedContainer)
throws ConfigurationException
TopologyService
removeContainerConfiguration in interface TopologyServiceConfigurationException
public void removeSubdomainConfiguration(java.lang.String removedSubdomain)
throws ConfigurationException
TopologyService
removeSubdomainConfiguration in interface TopologyServiceConfigurationException
public void setContainerState(java.lang.String containerName,
ContainerConfiguration.ContainerState state)
setContainerState in interface TopologyServicestate - The ontainerConfiguration.ContainerState
public void updateTopology()
throws org.ow2.petals.kernel.api.server.PetalsException
updateTopology in interface TopologyServiceorg.ow2.petals.kernel.api.server.PetalsException
public void validateDynamicTopology()
throws ConfigurationException
validateDynamicTopology in interface TopologyServiceConfigurationExceptionprotected void start()
protected void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||