public class

Replicator

extends RoutingTableProvider
java.lang.Object
   ↳ org.apache.helix.spectator.RoutingTableProvider
     ↳ org.apache.helix.filestore.Replicator

Summary

Public Constructors
Replicator(InstanceConfig localInstanceConfig, String resourceName, String partition)
Public Methods
static void main(String[] args)
void onExternalViewChange(List<ExternalView> viewList, NotificationContext context)
Invoked when external view changes
void setRsyncInvoker(RsyncInvoker rsyncInvoker)
void start()
void startReplication(InstanceConfig masterInstanceConfig)
void stop()
[Expand]
Inherited Methods
From class org.apache.helix.spectator.RoutingTableProvider
From class java.lang.Object
From interface org.apache.helix.ExternalViewChangeListener
From interface org.apache.helix.InstanceConfigChangeListener

Public Constructors

public Replicator (InstanceConfig localInstanceConfig, String resourceName, String partition)

Public Methods

public static void main (String[] args)

Throws
Exception

public void onExternalViewChange (List<ExternalView> viewList, NotificationContext context)

Invoked when external view changes

Parameters
viewList a list of ExternalViews
context the change event and state

public void setRsyncInvoker (RsyncInvoker rsyncInvoker)

public void start ()

Throws
Exception

public void startReplication (InstanceConfig masterInstanceConfig)

Throws
Exception

public void stop ()