SubClusterPolicyConfigurationPBImpl@Private
@Unstable
public abstract class SubClusterPolicyConfiguration
extends java.lang.Object
SubClusterPolicyConfiguration is a class that represents a
configuration of a policy. For a single queue, it contains a policy type
(resolve to a class name) and its params as an opaque ByteBuffer.
Note: by design the params are an opaque ByteBuffer, this allows for enough
flexibility to evolve the policies without impacting the protocols to/from
the federation state store.| Constructor | Description |
|---|---|
SubClusterPolicyConfiguration() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
abstract java.nio.ByteBuffer |
getParams() |
Get the policy parameters.
|
abstract java.lang.String |
getQueue() |
Get the name of the queue for which we are configuring a policy.
|
abstract java.lang.String |
getType() |
Get the type of the policy.
|
int |
hashCode() |
|
static SubClusterPolicyConfiguration |
newInstance(java.lang.String queue,
java.lang.String policyType,
java.nio.ByteBuffer policyParams) |
|
static SubClusterPolicyConfiguration |
newInstance(SubClusterPolicyConfiguration conf) |
|
abstract void |
setParams(java.nio.ByteBuffer policyParams) |
Set the policy parameters.
|
abstract void |
setQueue(java.lang.String queueName) |
Sets the name of the queue for which we are configuring a policy.
|
abstract void |
setType(java.lang.String policyType) |
Sets the type of the policy.
|
java.lang.String |
toString() |
@Private @Unstable public static SubClusterPolicyConfiguration newInstance(java.lang.String queue, java.lang.String policyType, java.nio.ByteBuffer policyParams)
@Private @Unstable public static SubClusterPolicyConfiguration newInstance(SubClusterPolicyConfiguration conf)
@Public @Unstable public abstract java.lang.String getQueue()
@Private @Unstable public abstract void setQueue(java.lang.String queueName)
queueName - the name of the queue@Public @Unstable public abstract java.lang.String getType()
@Private @Unstable public abstract void setType(java.lang.String policyType)
policyType - the type of the policy@Public @Unstable public abstract java.nio.ByteBuffer getParams()
@Private @Unstable public abstract void setParams(java.nio.ByteBuffer policyParams)
policyParams - byte array that describes the policypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.