Class Replicator


  • public final class Replicator
    extends Object
    Replicates serializable properties
    • Constructor Detail

      • Replicator

        public Replicator()
    • 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 state
        axisConfig - 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 given abstractContext.
        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 in propertyNames in the specified abstractContext
        Parameters:
        abstractContext - The context to be replicated
        propertyNames - The names of the properties to be replicated
        Throws:
        ClusteringFault - IF replication fails