Class SubClusterPolicyConfigurationPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.SubClusterPolicyConfiguration
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.SubClusterPolicyConfigurationPBImpl
@Private
@Unstable
public class SubClusterPolicyConfigurationPBImpl
extends SubClusterPolicyConfiguration
Protobuf based implementation of
SubClusterPolicyConfiguration.-
Constructor Summary
ConstructorsConstructorDescriptionSubClusterPolicyConfigurationPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterPolicyConfigurationProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the policy parameters.org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterPolicyConfigurationProtogetProto()getQueue()Get the name of the queue for which we are configuring a policy.getType()Get the type of the policy.inthashCode()voidsetParams(ByteBuffer policyParams) Set the policy parameters.voidSets the name of the queue for which we are configuring a policy.voidSets the type of the policy.toString()Methods inherited from class org.apache.hadoop.yarn.server.federation.store.records.SubClusterPolicyConfiguration
newInstance, newInstance
-
Constructor Details
-
SubClusterPolicyConfigurationPBImpl
public SubClusterPolicyConfigurationPBImpl() -
SubClusterPolicyConfigurationPBImpl
public SubClusterPolicyConfigurationPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterPolicyConfigurationProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterPolicyConfigurationProto getProto() -
hashCode
public int hashCode()- Overrides:
hashCodein classSubClusterPolicyConfiguration
-
equals
- Overrides:
equalsin classSubClusterPolicyConfiguration
-
toString
- Overrides:
toStringin classSubClusterPolicyConfiguration
-
getQueue
Description copied from class:SubClusterPolicyConfigurationGet the name of the queue for which we are configuring a policy.- Specified by:
getQueuein classSubClusterPolicyConfiguration- Returns:
- the name of the queue
-
setQueue
Description copied from class:SubClusterPolicyConfigurationSets the name of the queue for which we are configuring a policy.- Specified by:
setQueuein classSubClusterPolicyConfiguration- Parameters:
queueName- the name of the queue
-
getType
Description copied from class:SubClusterPolicyConfigurationGet the type of the policy. This could be random, round-robin, load-based, etc.- Specified by:
getTypein classSubClusterPolicyConfiguration- Returns:
- the type of the policy
-
setType
Description copied from class:SubClusterPolicyConfigurationSets the type of the policy. This could be random, round-robin, load-based, etc.- Specified by:
setTypein classSubClusterPolicyConfiguration- Parameters:
policyType- the type of the policy
-
getParams
Description copied from class:SubClusterPolicyConfigurationGet the policy parameters. This affects how the policy behaves and an example could be weight distribution of queues across multiple sub-clusters.- Specified by:
getParamsin classSubClusterPolicyConfiguration- Returns:
- the byte array that contains the parameters
-
setParams
Description copied from class:SubClusterPolicyConfigurationSet the policy parameters. This affects how the policy behaves and an example could be weight distribution of queues across multiple sub-clusters.- Specified by:
setParamsin classSubClusterPolicyConfiguration- Parameters:
policyParams- byte array that describes the policy
-