org.ow2.petals.kernel.api.server
Interface PetalsServer


public interface PetalsServer

Since:
PEtALS 2.2
Author:
Roland NAUDIN - EBM WebSourcing

Field Summary
static java.lang.String INSTALL_DIRECTORY
           
static java.lang.String INSTALLED_DIRECTORY
           
static java.lang.String WORK_DIRECTORY
           
 
Method Summary
 java.lang.String browseJNDI()
          Browse the content of the PEtALS JNDI directory.
 java.lang.String getContainerConfiguration()
          Get the container configuration.
 java.util.List<ServiceEndpoint> getServiceEndpoints(boolean global)
           
 void init()
          Initialize the PEtALS environment
 void start()
          Start the PEtALS container
 void stop()
          Stop the PEtALS container.
 void synchronizeRegistry()
          Synchronize the endpoint registry.
 

Field Detail

WORK_DIRECTORY

static final java.lang.String WORK_DIRECTORY
See Also:
Constant Field Values

INSTALL_DIRECTORY

static final java.lang.String INSTALL_DIRECTORY
See Also:
Constant Field Values

INSTALLED_DIRECTORY

static final java.lang.String INSTALLED_DIRECTORY
See Also:
Constant Field Values
Method Detail

init

void init()
          throws PetalsException
Initialize the PEtALS environment

Throws:
PetalsException - Raised if any error during initialization

start

void start()
           throws PetalsException
Start the PEtALS container

Throws:
PetalsException - Raised if any error during starting

stop

void stop()
          throws PetalsException
Stop the PEtALS container.

Throws:
PetalsException - Raised if any error during stopping

browseJNDI

java.lang.String browseJNDI()
                            throws PetalsException
Browse the content of the PEtALS JNDI directory.

Returns:
A Content in a String form
Throws:
PetalsException - Raised if any error during browsing

getServiceEndpoints

java.util.List<ServiceEndpoint> getServiceEndpoints(boolean global)
                                                    throws PetalsException
Parameters:
if - true, get all the endpoints from all the containers I can talk with. If false, get all the endpoints I know locally
Returns:
Throws:
PetalsException

synchronizeRegistry

void synchronizeRegistry()
                         throws PetalsException
Synchronize the endpoint registry.

Throws:
PetalsException

getContainerConfiguration

java.lang.String getContainerConfiguration()
                                           throws PetalsException
Get the container configuration. Must be called once the PEtALS container is started.

Returns:
The container configuration in a String form
Throws:
PetalsException - If the container configuration is not defined


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