org.ow2.petals.kernel.admin
Class PetalsAdminServiceImpl

java.lang.Object
  extended by org.ow2.petals.kernel.admin.PetalsAdminServiceImpl
All Implemented Interfaces:
org.ow2.petals.jmx.api.IPetalsAdminService, PetalsAdminInterface, PetalsAdminServiceMBean

public class PetalsAdminServiceImpl
extends java.lang.Object
implements PetalsAdminInterface

This class is used for Petals global Administration

Author:
alouis, rnaudin - eBMWebsourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.petals.jmx.api.IPetalsAdminService
org.ow2.petals.jmx.api.IPetalsAdminService.Container, org.ow2.petals.jmx.api.IPetalsAdminService.ContainerStates, org.ow2.petals.jmx.api.IPetalsAdminService.Domain, org.ow2.petals.jmx.api.IPetalsAdminService.EntityStates, org.ow2.petals.jmx.api.IPetalsAdminService.SubDomain, org.ow2.petals.jmx.api.IPetalsAdminService.Topology
 
Field Summary
protected  DeploymentService deployment
          Deployment service fractal component
protected  InstallationService installation
          Installation service fractal component
protected  org.ow2.petals.util.LoggingUtil log
          Logger wrapper
protected  TopologyService topologyService
          Topology service fractal component
 
Constructor Summary
PetalsAdminServiceImpl()
           
 
Method Summary
 boolean ping()
          Ping if the server is ready to process messages in the domain
 java.util.Set<java.util.Map<java.lang.String,java.lang.String>> retrieveTopology()
          Retrieve the collection of containers, sub-domains and domain configurations.
 void setPetalsStopThread(PetalsStopThread petalsStopThread)
          Set the thread which will stop PEtALS
 void shutdownContainer()
          Unload the container from the Petals global environment.
protected  void start()
           
protected  void stop()
           
 void stopContainer()
          Stop the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.ow2.petals.util.LoggingUtil log
Logger wrapper


deployment

protected DeploymentService deployment
Deployment service fractal component


installation

protected InstallationService installation
Installation service fractal component


topologyService

protected TopologyService topologyService
Topology service fractal component

Constructor Detail

PetalsAdminServiceImpl

public PetalsAdminServiceImpl()
Method Detail

retrieveTopology

public java.util.Set<java.util.Map<java.lang.String,java.lang.String>> retrieveTopology()
                                                                                 throws org.ow2.petals.kernel.api.server.PetalsException
Description copied from interface: PetalsAdminServiceMBean
Retrieve the collection of containers, sub-domains and domain configurations.

Specified by:
retrieveTopology in interface PetalsAdminServiceMBean
Returns:
a Set of containers, sub-domains and domain configurations in key/value form
Throws:
org.ow2.petals.kernel.api.server.PetalsException

shutdownContainer

public void shutdownContainer()
                       throws java.lang.Exception
Description copied from interface: PetalsAdminServiceMBean
Unload the container from the Petals global environment. All ServiceAssemblies, Components and Share Libraries are stopped, shutdown, and uninstalled. All registered Endpoints are deactivated. Then the container is removed from the domain.

Specified by:
shutdownContainer in interface PetalsAdminServiceMBean
Throws:
java.lang.Exception

stopContainer

public void stopContainer()
                   throws java.lang.Exception
Description copied from interface: PetalsAdminServiceMBean
Stop the container. The container is still visible in the Petals global environment, but marked as 'stopped'. The registered Endpoints are still visible,too.

Specified by:
stopContainer in interface PetalsAdminServiceMBean
Throws:
java.lang.Exception

setPetalsStopThread

public void setPetalsStopThread(PetalsStopThread petalsStopThread)
Description copied from interface: PetalsAdminInterface
Set the thread which will stop PEtALS

Specified by:
setPetalsStopThread in interface PetalsAdminInterface

start

protected void start()
              throws org.objectweb.fractal.api.control.IllegalLifeCycleException
Throws:
org.objectweb.fractal.api.control.IllegalLifeCycleException
See Also:
LifeCycleController.startFc()

stop

protected void stop()
             throws org.objectweb.fractal.api.control.IllegalLifeCycleException
Throws:
org.objectweb.fractal.api.control.IllegalLifeCycleException
See Also:
LifeCycleController.stopFc()

ping

public boolean ping()
Description copied from interface: PetalsAdminServiceMBean
Ping if the server is ready to process messages in the domain

Specified by:
ping in interface PetalsAdminServiceMBean


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