org.ow2.jonas.configuration
Interface ConfigurationManager

All Known Implementing Classes:
JOnASConfiguration

public interface ConfigurationManager

This interface provides methods to manage the JOnAS service configurations.

Author:
Francois Fornaciari

Method Summary
 void deleteServiceConfiguration(String service)
          Delete the service configuration for the given service.
 List<String> getAllServices()
          Return the list of JOnAS services.
 List<String> getMandatoryServices()
          Return the list of JOnAS mandatory services.
 List<String> getOptionalServices()
          Return the list of JOnAS optional services.
 Dictionary<String,String> getServiceProperties(String service)
          Get all properties for a given JOnAS service name.
 void haltServer()
          Halt server by stopping the system bundle.
 boolean matchService(String service)
          Return true if the given service matches a JOnAS service
 void updateServiceConfiguration(String service)
          Create or update the service configuration for the given service.
 

Method Detail

haltServer

void haltServer()
                throws Exception
Halt server by stopping the system bundle.

Throws:
Exception - If an exception occurs during server halting

updateServiceConfiguration

void updateServiceConfiguration(String service)
                                throws Exception
Create or update the service configuration for the given service.

Parameters:
service - the service name
Throws:
Exception - If an exception occurs during configuration updates

deleteServiceConfiguration

void deleteServiceConfiguration(String service)
                                throws Exception
Delete the service configuration for the given service.

Parameters:
service - the service name
Throws:
Exception - If an exception occurs during configuration deletions

getAllServices

List<String> getAllServices()
Return the list of JOnAS services.

Returns:
All JOnAS services

getMandatoryServices

List<String> getMandatoryServices()
Return the list of JOnAS mandatory services.

Returns:
All JOnAS mandatory services

getOptionalServices

List<String> getOptionalServices()
Return the list of JOnAS optional services.

Returns:
All JOnAS optional services

matchService

boolean matchService(String service)
Return true if the given service matches a JOnAS service

Parameters:
service - The service name
Returns:
True if the given service matches a JOnAS service

getServiceProperties

Dictionary<String,String> getServiceProperties(String service)
Get all properties for a given JOnAS service name.

Parameters:
service - The given service name
Returns:
A Dictionary value representing all properties for a JOnAS service name


Copyright © 2010 OW2 Consortium. All Rights Reserved.