Class ReplicationOperationsImpl
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.ReplicationOperationsImpl
-
- All Implemented Interfaces:
ReplicationOperations
@Deprecated public class ReplicationOperationsImpl extends Object implements ReplicationOperations
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description ReplicationOperationsImpl(ClientContext context)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addPeer(String name, String replicaType)
Deprecated.Defines a cluster with the given name and the given name system.void
drain(String tableName)
Deprecated.Waits for a table to be fully replicated, given the state of files pending replication for the provided table at the point in time which this method is invoked.void
drain(String tableName, Set<String> wals)
Deprecated.Given the provided set of files that are pending replication for a table, wait for those files to be fully replicated to all configured peers.protected boolean
getManagerDrain(TInfo tinfo, TCredentials rpcCreds, String tableName, Set<String> wals)
Deprecated.Set<String>
referencedFiles(String tableName)
Deprecated.Gets all of the referenced files for a table from the metadata table.void
removePeer(String name)
Deprecated.Removes a cluster with the given name.
-
-
-
Constructor Detail
-
ReplicationOperationsImpl
public ReplicationOperationsImpl(ClientContext context)
Deprecated.
-
-
Method Detail
-
addPeer
public void addPeer(String name, String replicaType) throws AccumuloException, AccumuloSecurityException
Deprecated.Description copied from interface:ReplicationOperations
Defines a cluster with the given name and the given name system.- Specified by:
addPeer
in interfaceReplicationOperations
- Parameters:
name
- Unique name for the clusterreplicaType
- Class name to use to replicate the data- Throws:
AccumuloException
AccumuloSecurityException
-
removePeer
public void removePeer(String name) throws AccumuloException, AccumuloSecurityException
Deprecated.Description copied from interface:ReplicationOperations
Removes a cluster with the given name.- Specified by:
removePeer
in interfaceReplicationOperations
- Parameters:
name
- Name of the cluster to remove- Throws:
AccumuloException
AccumuloSecurityException
-
drain
public void drain(String tableName) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Deprecated.Description copied from interface:ReplicationOperations
Waits for a table to be fully replicated, given the state of files pending replication for the provided table at the point in time which this method is invoked.- Specified by:
drain
in interfaceReplicationOperations
- Parameters:
tableName
- The table to wait for- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
-
drain
public void drain(String tableName, Set<String> wals) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Deprecated.Description copied from interface:ReplicationOperations
Given the provided set of files that are pending replication for a table, wait for those files to be fully replicated to all configured peers. This allows for the accurate calculation when a table, at a given point in time, has been fully replicated.- Specified by:
drain
in interfaceReplicationOperations
- Parameters:
tableName
- The table to wait for- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
-
getManagerDrain
protected boolean getManagerDrain(TInfo tinfo, TCredentials rpcCreds, String tableName, Set<String> wals) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Deprecated.
-
referencedFiles
public Set<String> referencedFiles(String tableName) throws TableNotFoundException
Deprecated.Description copied from interface:ReplicationOperations
Gets all of the referenced files for a table from the metadata table. The result of this method is intended to be directly supplied toReplicationOperations.drain(String, Set)
. This helps determine when all data from a given point in time has been fully replicated.This also allows callers to get the
Set
of files for a table at some time, and later provide thatSet
toReplicationOperations.drain(String,Set)
to wait for all of those files to be replicated.- Specified by:
referencedFiles
in interfaceReplicationOperations
- Throws:
TableNotFoundException
-
-