Class Replicator
java.lang.Object
org.apache.axis2.clustering.state.Replicator
Replicates serializable properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidreplicate(AbstractContext abstractContext) Replicate all serializable properties stored in the givenabstractContext.static voidreplicate(AbstractContext abstractContext, String[] propertyNames) Replicate all the properties given inpropertyNamesin the specifiedabstractContextstatic voidreplicate(MessageContext msgContext) Replicates all serializable properties in the ConfigurationContext, ServiceGroupContext & ServiceContextstatic voidreplicateState(StateClusteringCommand command, AxisConfiguration axisConfig) Replicate state using a custom StateClusteringCommand
-
Constructor Details
-
Replicator
public Replicator()
-
-
Method Details
-
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
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
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 inpropertyNamesin the specifiedabstractContext- Parameters:
abstractContext- The context to be replicatedpropertyNames- The names of the properties to be replicated- Throws:
ClusteringFault- IF replication fails
-