org.ow2.petals.ws
Class TopologyServiceImpl

java.lang.Object
  extended by org.ow2.petals.ws.TopologyServiceImpl
All Implemented Interfaces:
org.ow2.petals.kernel.ws.api.TopologyService, KernelWebService

public class TopologyServiceImpl
extends java.lang.Object
implements org.ow2.petals.kernel.ws.api.TopologyService, KernelWebService

Author:
chamerling - eBM WebSourcing

Constructor Summary
TopologyServiceImpl()
           
 
Method Summary
 void addContainerInformation(org.ow2.petals.kernel.ws.api.to.ContainerInformation addedContainer, java.lang.String subdomainName)
          
 void addSubdomain(java.lang.String name, java.lang.String description, org.ow2.petals.kernel.ws.api.to.SubdomainInformation.SubdomainMode subdomainMode, boolean networkTimeSynchronized)
           
 void addSubdomainWithContainers(org.ow2.petals.kernel.ws.api.to.SubdomainInformation subdomain)
           
 java.util.List<org.ow2.petals.kernel.ws.api.to.ContainerInformation> getAllContainerInformation()
          
 java.util.List<org.ow2.petals.kernel.ws.api.to.ContainerInformation> getAllPeerContainerInformationForLocalSubdomain()
          
 java.util.List<org.ow2.petals.kernel.ws.api.to.ContainerInformation> getAllSlaveContainerInformationForLocalSubdomain()
          
 org.objectweb.fractal.api.Component getComponent()
          Get the associated fractal component.
 org.ow2.petals.kernel.ws.api.to.ContainerInformation getContainerInformation(java.lang.String containerId)
          
 org.ow2.petals.kernel.ws.api.to.DomainInformation getDomainInformation()
           
 org.ow2.petals.kernel.ws.api.to.JndiInformation getJndiInformation()
          
 java.util.List<org.ow2.petals.kernel.ws.api.to.ContainerInformation> getMasterContainerInformation()
          
 org.ow2.petals.kernel.ws.api.to.SubdomainInformation getSubdomainByName(java.lang.String subdomainName)
           
 void removeContainerInformation(java.lang.String containerName)
           
 void removeSubdomain(java.lang.String subdomainName)
           
protected  void start()
           
protected  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopologyServiceImpl

public TopologyServiceImpl()
Method Detail

start

protected void start()

stop

protected void stop()

getComponent

public org.objectweb.fractal.api.Component getComponent()
Get the associated fractal component. This is used to get the WS interface since for now I do not have other solution to do that... This is as simple as adding that :
 @org.objectweb.fractal.fraclet.annotation.annotations.Service(name = "component")
 private Component component;
 
 public Component getComponent() {
     return this.component;
 }
 
 

Specified by:
getComponent in interface KernelWebService
Returns:

getJndiInformation

public org.ow2.petals.kernel.ws.api.to.JndiInformation getJndiInformation()
                                                                   throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

Specified by:
getJndiInformation in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

addContainerInformation

public void addContainerInformation(org.ow2.petals.kernel.ws.api.to.ContainerInformation addedContainer,
                                    java.lang.String subdomainName)
                             throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

Specified by:
addContainerInformation in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

removeContainerInformation

public void removeContainerInformation(java.lang.String containerName)
                                throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException
Specified by:
removeContainerInformation in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

getAllContainerInformation

public java.util.List<org.ow2.petals.kernel.ws.api.to.ContainerInformation> getAllContainerInformation()
                                                                                                throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

Specified by:
getAllContainerInformation in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

getMasterContainerInformation

public java.util.List<org.ow2.petals.kernel.ws.api.to.ContainerInformation> getMasterContainerInformation()
                                                                                                   throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

Specified by:
getMasterContainerInformation in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

getAllSlaveContainerInformationForLocalSubdomain

public java.util.List<org.ow2.petals.kernel.ws.api.to.ContainerInformation> getAllSlaveContainerInformationForLocalSubdomain()
                                                                                                                      throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

Specified by:
getAllSlaveContainerInformationForLocalSubdomain in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

getAllPeerContainerInformationForLocalSubdomain

public java.util.List<org.ow2.petals.kernel.ws.api.to.ContainerInformation> getAllPeerContainerInformationForLocalSubdomain()
                                                                                                                     throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

Specified by:
getAllPeerContainerInformationForLocalSubdomain in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

getContainerInformation

public org.ow2.petals.kernel.ws.api.to.ContainerInformation getContainerInformation(java.lang.String containerId)
                                                                             throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

Specified by:
getContainerInformation in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

addSubdomain

public void addSubdomain(java.lang.String name,
                         java.lang.String description,
                         org.ow2.petals.kernel.ws.api.to.SubdomainInformation.SubdomainMode subdomainMode,
                         boolean networkTimeSynchronized)
                  throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException
Specified by:
addSubdomain in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

removeSubdomain

public void removeSubdomain(java.lang.String subdomainName)
                     throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException
Specified by:
removeSubdomain in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

addSubdomainWithContainers

public void addSubdomainWithContainers(org.ow2.petals.kernel.ws.api.to.SubdomainInformation subdomain)
                                throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException
Specified by:
addSubdomainWithContainers in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

getSubdomainByName

public org.ow2.petals.kernel.ws.api.to.SubdomainInformation getSubdomainByName(java.lang.String subdomainName)
                                                                        throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException
Specified by:
getSubdomainByName in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException

getDomainInformation

public org.ow2.petals.kernel.ws.api.to.DomainInformation getDomainInformation()
                                                                       throws org.ow2.petals.kernel.ws.api.PEtALSWebServiceException
Specified by:
getDomainInformation in interface org.ow2.petals.kernel.ws.api.TopologyService
Throws:
org.ow2.petals.kernel.ws.api.PEtALSWebServiceException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.