@InterfaceAudience.Private @InterfaceStability.Unstable public class SubClusterPolicyConfigurationPBImpl extends SubClusterPolicyConfiguration
SubClusterPolicyConfiguration.| Constructor and Description |
|---|
SubClusterPolicyConfigurationPBImpl() |
SubClusterPolicyConfigurationPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterPolicyConfigurationProto proto) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
ByteBuffer |
getParams()
Get the policy parameters.
|
org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterPolicyConfigurationProto |
getProto() |
String |
getQueue()
Get the name of the queue for which we are configuring a policy.
|
String |
getType()
Get the type of the policy.
|
int |
hashCode() |
void |
setParams(ByteBuffer policyParams)
Set the policy parameters.
|
void |
setQueue(String queueName)
Sets the name of the queue for which we are configuring a policy.
|
void |
setType(String policyType)
Sets the type of the policy.
|
String |
toString() |
newInstance, newInstancepublic SubClusterPolicyConfigurationPBImpl()
public SubClusterPolicyConfigurationPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterPolicyConfigurationProto proto)
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.SubClusterPolicyConfigurationProto getProto()
public int hashCode()
hashCode in class SubClusterPolicyConfigurationpublic boolean equals(Object other)
equals in class SubClusterPolicyConfigurationpublic String toString()
toString in class SubClusterPolicyConfigurationpublic String getQueue()
SubClusterPolicyConfigurationgetQueue in class SubClusterPolicyConfigurationpublic void setQueue(String queueName)
SubClusterPolicyConfigurationsetQueue in class SubClusterPolicyConfigurationqueueName - the name of the queuepublic String getType()
SubClusterPolicyConfigurationgetType in class SubClusterPolicyConfigurationpublic void setType(String policyType)
SubClusterPolicyConfigurationsetType in class SubClusterPolicyConfigurationpolicyType - the type of the policypublic ByteBuffer getParams()
SubClusterPolicyConfigurationgetParams in class SubClusterPolicyConfigurationpublic void setParams(ByteBuffer policyParams)
SubClusterPolicyConfigurationsetParams in class SubClusterPolicyConfigurationpolicyParams - byte array that describes the policyCopyright © 2008–2022 Apache Software Foundation. All rights reserved.