org.apache.geronimo.clustering.wadi
Class RoundRobinBackingStrategyFactoryGBean

java.lang.Object
  extended by org.apache.geronimo.clustering.wadi.RoundRobinBackingStrategyFactoryGBean
All Implemented Interfaces:
GBeanLifecycle, org.codehaus.wadi.replication.strategy.BackingStrategyFactory

public class RoundRobinBackingStrategyFactoryGBean
extends Object
implements org.codehaus.wadi.replication.strategy.BackingStrategyFactory, GBeanLifecycle


Field Summary
static String GBEAN_ATTR_NB_REPLICA
           
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
RoundRobinBackingStrategyFactoryGBean(int nbReplica)
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
 org.codehaus.wadi.replication.strategy.BackingStrategy factory()
           
static GBeanInfo getGBeanInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO

GBEAN_ATTR_NB_REPLICA

public static final String GBEAN_ATTR_NB_REPLICA
See Also:
Constant Field Values
Constructor Detail

RoundRobinBackingStrategyFactoryGBean

public RoundRobinBackingStrategyFactoryGBean(int nbReplica)
Method Detail

factory

public org.codehaus.wadi.replication.strategy.BackingStrategy factory()
Specified by:
factory in interface org.codehaus.wadi.replication.strategy.BackingStrategyFactory

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
            throws Exception
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.