org.apache.synapse.util
Class Replicator

java.lang.Object
  extended by org.apache.synapse.util.Replicator

public class Replicator
extends Object

Helper class for replicating states


Constructor Summary
Replicator()
           
 
Method Summary
static void removeAndReplicateState(String key, ConfigurationContext configCtx)
          Helper method to replicates states of the property with given key Removes the property and then replicates the current state so that all instances across cluster can see this state
static void setAndReplicateState(String key, Object value, ConfigurationContext configCtx)
          Helper method to replicates states of the property with given key replicates the given state so that all instances across cluster can see this state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replicator

public Replicator()
Method Detail

removeAndReplicateState

public static void removeAndReplicateState(String key,
                                           ConfigurationContext configCtx)
Helper method to replicates states of the property with given key Removes the property and then replicates the current state so that all instances across cluster can see this state

Parameters:
key - The key of the property
configCtx - Axis2 configuration context

setAndReplicateState

public static void setAndReplicateState(String key,
                                        Object value,
                                        ConfigurationContext configCtx)
Helper method to replicates states of the property with given key replicates the given state so that all instances across cluster can see this state

Parameters:
key - The key of the property
value - The value of the property
configCtx - Axis2 COnfiguration Context


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.