Class Replicator
- java.lang.Object
-
- org.apache.axis2.clustering.state.Replicator
-
public final class Replicator extends Object
Replicates serializable properties
-
-
Constructor Summary
Constructors Constructor Description Replicator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
replicate(AbstractContext abstractContext)
Replicate all serializable properties stored in the givenabstractContext
.static void
replicate(AbstractContext abstractContext, String[] propertyNames)
Replicate all the properties given inpropertyNames
in the specifiedabstractContext
static void
replicate(MessageContext msgContext)
Replicates all serializable properties in the ConfigurationContext, ServiceGroupContext & ServiceContextstatic void
replicateState(StateClusteringCommand command, AxisConfiguration axisConfig)
Replicate state using a custom StateClusteringCommand
-
-
-
Method Detail
-
replicateState
public static void replicateState(StateClusteringCommand command, AxisConfiguration axisConfig) throws ClusteringFault
Replicate state using a custom StateClusteringCommand- Parameters:
command
- The StateClusteringCommand which is used for replicating stateaxisConfig
- The AxisConfiguration- Throws:
ClusteringFault
- If replication fails
-
replicate
public static void replicate(MessageContext msgContext) throws ClusteringFault
Replicates all serializable properties in the ConfigurationContext, ServiceGroupContext & ServiceContext- Parameters:
msgContext
- The MessageContext associated with the ServiceContext, ServiceGroupContext and ConfigurationContext to be replicated- Throws:
ClusteringFault
- If replication fails
-
replicate
public static void replicate(AbstractContext abstractContext) throws ClusteringFault
Replicate all serializable properties stored in the givenabstractContext
.- Parameters:
abstractContext
- The AbstractContext which holds the properties to be replicated- Throws:
ClusteringFault
- If replication fails
-
replicate
public static void replicate(AbstractContext abstractContext, String[] propertyNames) throws ClusteringFault
Replicate all the properties given inpropertyNames
in the specifiedabstractContext
- Parameters:
abstractContext
- The context to be replicatedpropertyNames
- The names of the properties to be replicated- Throws:
ClusteringFault
- IF replication fails
-
-