org.apache.synapse.util
Class Replicator
java.lang.Object
org.apache.synapse.util.Replicator
public class Replicator
- extends Object
Helper class for replicating states
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 |
Replicator
public Replicator()
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 propertyconfigCtx
- 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 propertyvalue
- The value of the propertyconfigCtx
- Axis2 COnfiguration Context
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.