Class ReplicationTarget
- java.lang.Object
-
- org.apache.accumulo.core.replication.ReplicationTarget
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
public class ReplicationTarget extends Object implements org.apache.hadoop.io.Writable
Container for where some work needs to be replicated
-
-
Constructor Summary
Constructors Constructor Description ReplicationTarget()
ReplicationTarget(String peerName, String remoteIdentifier, String sourceTableId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static ReplicationTarget
from(String s)
Deserialize a ReplicationTargetstatic ReplicationTarget
from(org.apache.hadoop.io.Text t)
Deserialize a ReplicationTargetString
getPeerName()
String
getRemoteIdentifier()
String
getSourceTableId()
int
hashCode()
void
readFields(DataInput in)
void
setPeerName(String peerName)
void
setRemoteIdentifier(String remoteIdentifier)
void
setSourceTableId(String sourceTableId)
String
toString()
org.apache.hadoop.io.Text
toText()
Convenience method to serialize a ReplicationTarget toText
using theWritable
methods without caring about performance penalties due to excessive object creationvoid
write(DataOutput out)
-
-
-
Method Detail
-
getPeerName
public String getPeerName()
-
setPeerName
public void setPeerName(String peerName)
-
getRemoteIdentifier
public String getRemoteIdentifier()
-
setRemoteIdentifier
public void setRemoteIdentifier(String remoteIdentifier)
-
getSourceTableId
public String getSourceTableId()
-
setSourceTableId
public void setSourceTableId(String sourceTableId)
-
write
public void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
from
public static ReplicationTarget from(org.apache.hadoop.io.Text t)
Deserialize a ReplicationTarget- Parameters:
t
- Serialized copy- Returns:
- the deserialized version
-
from
public static ReplicationTarget from(String s)
Deserialize a ReplicationTarget- Parameters:
s
- Serialized copy- Returns:
- the deserialized version
-
toText
public org.apache.hadoop.io.Text toText()
Convenience method to serialize a ReplicationTarget toText
using theWritable
methods without caring about performance penalties due to excessive object creation- Returns:
- The serialized representation of the object
-
-