Package com.linkedin.venice.helix
Interface AllowlistAccessor
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
ZkAllowlistAccessor
public interface AllowlistAccessor extends java.io.Closeable
Interface defines the ways to access to the allowlist of Helix NodeId.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addInstanceToAllowList(java.lang.String clusterName, java.lang.String helixNodeId)
Add the given helix nodeId into the allowlist in ZK.java.util.Set<java.lang.String>
getAllowList(java.lang.String clusterName)
Get all helix nodeIds in the allowlist of the given cluster from ZK.boolean
isInstanceInAllowlist(java.lang.String clusterName, java.lang.String helixNodeId)
Judge whether the given helix nodeId is in the allowlist or not.void
removeInstanceFromAllowList(java.lang.String clusterName, java.lang.String helixNodeId)
Remove the given helix nodeId from the allowlist in ZK.
-
-
-
Method Detail
-
isInstanceInAllowlist
boolean isInstanceInAllowlist(java.lang.String clusterName, java.lang.String helixNodeId)
Judge whether the given helix nodeId is in the allowlist or not.
-
getAllowList
java.util.Set<java.lang.String> getAllowList(java.lang.String clusterName)
Get all helix nodeIds in the allowlist of the given cluster from ZK.
-
addInstanceToAllowList
void addInstanceToAllowList(java.lang.String clusterName, java.lang.String helixNodeId)
Add the given helix nodeId into the allowlist in ZK.
-
removeInstanceFromAllowList
void removeInstanceFromAllowList(java.lang.String clusterName, java.lang.String helixNodeId)
Remove the given helix nodeId from the allowlist in ZK.
-
-