@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, newInstance
public 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 SubClusterPolicyConfiguration
public boolean equals(Object other)
equals
in class SubClusterPolicyConfiguration
public String toString()
toString
in class SubClusterPolicyConfiguration
public String getQueue()
SubClusterPolicyConfiguration
getQueue
in class SubClusterPolicyConfiguration
public void setQueue(String queueName)
SubClusterPolicyConfiguration
setQueue
in class SubClusterPolicyConfiguration
queueName
- the name of the queuepublic String getType()
SubClusterPolicyConfiguration
getType
in class SubClusterPolicyConfiguration
public void setType(String policyType)
SubClusterPolicyConfiguration
setType
in class SubClusterPolicyConfiguration
policyType
- the type of the policypublic ByteBuffer getParams()
SubClusterPolicyConfiguration
getParams
in class SubClusterPolicyConfiguration
public void setParams(ByteBuffer policyParams)
SubClusterPolicyConfiguration
setParams
in class SubClusterPolicyConfiguration
policyParams
- byte array that describes the policyCopyright © 2020 Apache Software Foundation. All rights reserved.