org.ow2.jonas.services.bootstrap.repository
Class JOnASRepositories

java.lang.Object
  extended by org.ow2.jonas.services.bootstrap.repository.JOnASRepositories
All Implemented Interfaces:
JOnASRepositoriesMBean

public class JOnASRepositories
extends Object
implements JOnASRepositoriesMBean

This component is part of the bootstrap module and registers initial repositories that will be used by the deployment plan.

Author:
Mickaƫl LEDUQUE, Francois Fornaciari, Adriana Danes

Constructor Summary
JOnASRepositories()
           
 
Method Summary
 List<String> getRepositoriesDescriptions()
          Returns the list of repository ids.
 Integer getRepositoriesNumber()
          Returns the number of available repositories.
 Integer getRepositoryDeployablesCount()
          Returns the number of deployed repositories deployables.
 List<String> getURLRepositories()
          Get the URL repositories from the repositoryManager, and exclude the internal ROOT repository
 void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
           
 void setMBeanServer(MBeanServer mbeanServer)
          Set the MBean Server.
 void setRepositoryDeployer(org.ow2.util.plan.deployer.api.IRepositoryDeployer repositoryDeployer)
          Set the repository deployer.
 void setRepositoryManager(org.ow2.util.plan.repository.api.IRepositoryManager repositoryManager)
          Set the repository manager used by this service.
 void setRepositoryReader(org.ow2.util.plan.reader.repository.IRepositoryDataReader repositoryReader)
          Set the repository reader.
 void setServerProperties(ServerProperties serverProperties)
          Set the server properties service.
 void start()
          This callback method is called during the service starting as soon as all service dependencies are resolved.
 void stop()
          This callback method is called during the service stopping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOnASRepositories

public JOnASRepositories()
Method Detail

start

public void start()
           throws Exception
This callback method is called during the service starting as soon as all service dependencies are resolved.

Throws:
Exception

stop

public void stop()
          throws Exception
This callback method is called during the service stopping. The unregistration of one of the required service can trigger the method invocation.

Throws:
Exception

getRepositoryDeployablesCount

public Integer getRepositoryDeployablesCount()
Returns the number of deployed repositories deployables.

Specified by:
getRepositoryDeployablesCount in interface JOnASRepositoriesMBean
Returns:
the number of deployed repositories deployables.

getRepositoriesDescriptions

public List<String> getRepositoriesDescriptions()
Returns the list of repository ids.

Specified by:
getRepositoriesDescriptions in interface JOnASRepositoriesMBean
Returns:
the list of repository ids.

getURLRepositories

public List<String> getURLRepositories()
Get the URL repositories from the repositoryManager, and exclude the internal ROOT repository

Specified by:
getURLRepositories in interface JOnASRepositoriesMBean
Returns:
List of URL repository names.

getRepositoriesNumber

public Integer getRepositoriesNumber()
Returns the number of available repositories.

Specified by:
getRepositoriesNumber in interface JOnASRepositoriesMBean
Returns:
the number of repositories.

setServerProperties

public void setServerProperties(ServerProperties serverProperties)
Set the server properties service.

Parameters:
serverProperties - the serverProperties to set

setRepositoryManager

public void setRepositoryManager(org.ow2.util.plan.repository.api.IRepositoryManager repositoryManager)
Set the repository manager used by this service.

Parameters:
repositoryManager - the new repository manager.

setRepositoryDeployer

public void setRepositoryDeployer(org.ow2.util.plan.deployer.api.IRepositoryDeployer repositoryDeployer)
Set the repository deployer.

Parameters:
repositoryDeployer - the new repository deployer.

setMBeanServer

public void setMBeanServer(MBeanServer mbeanServer)
Set the MBean Server.

Parameters:
mbeanServer - the new JMX service.

setRepositoryReader

public void setRepositoryReader(org.ow2.util.plan.reader.repository.IRepositoryDataReader repositoryReader)
Set the repository reader.

Parameters:
repositoryReader - the new repository reader.

setConfigurationAdmin

public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
Parameters:
configurationAdmin - the configurationAdmin to set


Copyright © 2010 OW2 Consortium. All Rights Reserved.