|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.security.visibility.VisibilityReplicationEndpoint
@InterfaceAudience.Private public class VisibilityReplicationEndpoint
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.replication.ReplicationEndpoint |
---|
ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContext |
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service |
---|
com.google.common.util.concurrent.Service.State |
Constructor Summary | |
---|---|
VisibilityReplicationEndpoint(ReplicationEndpoint endpoint,
VisibilityLabelService visibilityLabelsService)
|
Method Summary | |
---|---|
boolean |
canReplicateToSameCluster()
Whether or not, the replication endpoint can replicate to it's source cluster with the same UUID |
UUID |
getPeerUUID()
Returns a UUID of the provided peer id. |
WALEntryFilter |
getWALEntryfilter()
Returns a WALEntryFilter to use for filtering out WALEntries from the log. |
void |
init(ReplicationEndpoint.Context context)
Initialize the replication endpoint with the given context. |
boolean |
isRunning()
|
void |
peerConfigUpdated(ReplicationPeerConfig rpc)
Callback method for when users update the ReplicationPeerConfig for this peer |
boolean |
replicate(ReplicationEndpoint.ReplicateContext replicateContext)
Replicate the given set of entries (in the context) to the other cluster. |
com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> |
start()
|
com.google.common.util.concurrent.Service.State |
startAndWait()
|
com.google.common.util.concurrent.Service.State |
state()
|
com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> |
stop()
|
com.google.common.util.concurrent.Service.State |
stopAndWait()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VisibilityReplicationEndpoint(ReplicationEndpoint endpoint, VisibilityLabelService visibilityLabelsService)
Method Detail |
---|
public void init(ReplicationEndpoint.Context context) throws IOException
ReplicationEndpoint
init
in interface ReplicationEndpoint
context
- replication context
IOException
public boolean replicate(ReplicationEndpoint.ReplicateContext replicateContext)
ReplicationEndpoint
replicate
in interface ReplicationEndpoint
replicateContext
- a context where WAL entries and other
parameters can be obtained.public UUID getPeerUUID()
ReplicationEndpoint
getPeerUUID
in interface ReplicationEndpoint
public boolean canReplicateToSameCluster()
ReplicationEndpoint
canReplicateToSameCluster
in interface ReplicationEndpoint
public WALEntryFilter getWALEntryfilter()
ReplicationEndpoint
getWALEntryfilter
in interface ReplicationEndpoint
WALEntryFilter
or null.public boolean isRunning()
isRunning
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> start()
start
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.Service.State startAndWait()
startAndWait
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.Service.State state()
state
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> stop()
stop
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.Service.State stopAndWait()
stopAndWait
in interface com.google.common.util.concurrent.Service
public void peerConfigUpdated(ReplicationPeerConfig rpc)
ReplicationPeerConfigListener
peerConfigUpdated
in interface ReplicationPeerConfigListener
rpc
- The updated ReplicationPeerConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |