org.ow2.easybeans.component.carol
Class CarolComponent

java.lang.Object
  extended by org.ow2.easybeans.component.carol.CarolComponent
All Implemented Interfaces:
EZBComponent, RegistryComponent

public class CarolComponent
extends Object
implements RegistryComponent

This component allows to start a registry.

Author:
Florent Benoit

Constructor Summary
CarolComponent()
          Creates a new Carol component.
 
Method Summary
 List<Property> getProperties()
          Gets the list of properties.
 List<Protocol> getProtocols()
          Gets the protocols defined for the start.
 String getProviderURL()
          Gets the default Provider URL.
 void init()
          Init method.
This method is called before the start method.
 boolean isKeepRunning()
           
 boolean isUnbindOnStop()
           
 void setKeepRunning(boolean keepRunning)
          Stop and restart calls on this component won't do anything with this mode enabled.
 void setProperties(List<Property> carolProperties)
          Set the list of properties.
 void setProtocols(List<Protocol> protocols)
          Sets the list of protocols.
 void setUnbindOnStop(boolean unbindOnStop)
          If true, the names will be unbound when the component will be stopped.
 void start()
          Start method.
This method is called after the init method.
 void stop()
          Stop method.
This method is called when component needs to be stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarolComponent

public CarolComponent()
Creates a new Carol component.

Method Detail

init

public void init()
          throws EZBComponentException
Init method.
This method is called before the start method.

Specified by:
init in interface EZBComponent
Throws:
EZBComponentException - if the initialization has failed.

start

public void start()
           throws EZBComponentException
Start method.
This method is called after the init method.

Specified by:
start in interface EZBComponent
Throws:
EZBComponentException - if the start has failed.

stop

public void stop()
          throws EZBComponentException
Stop method.
This method is called when component needs to be stopped.

Specified by:
stop in interface EZBComponent
Throws:
EZBComponentException - if the stop is failing.

getProtocols

public List<Protocol> getProtocols()
Gets the protocols defined for the start.

Returns:
the list of protocols.

setProtocols

public void setProtocols(List<Protocol> protocols)
Sets the list of protocols.

Parameters:
protocols - the list of protocols configured for this server.

getProviderURL

public String getProviderURL()
Gets the default Provider URL. Note: The old API needs to be used here in order to be compliant with products using Carol v2.x

Specified by:
getProviderURL in interface RegistryComponent
Returns:
the provider URL that is used by default.

getProperties

public List<Property> getProperties()
Gets the list of properties.

Returns:
the list of properties.

setProperties

public void setProperties(List<Property> carolProperties)
Set the list of properties.

Parameters:
carolProperties - the list of properties.

isUnbindOnStop

public boolean isUnbindOnStop()
Returns:
true if unbind needs to be done on stop

setUnbindOnStop

public void setUnbindOnStop(boolean unbindOnStop)
If true, the names will be unbound when the component will be stopped.

Parameters:
unbindOnStop - true or false

isKeepRunning

public boolean isKeepRunning()
Returns:
true if we should do nothing on stop/restart

setKeepRunning

public void setKeepRunning(boolean keepRunning)
Stop and restart calls on this component won't do anything with this mode enabled.

Parameters:
keepRunning - true/false


Copyright © 2006-2013 OW2 Consortium. All Rights Reserved.