Class AddReservationHomeSubClusterResponsePBImpl
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.AddReservationHomeSubClusterResponse
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.AddReservationHomeSubClusterResponsePBImpl
@Private
@Unstable
public class AddReservationHomeSubClusterResponsePBImpl
extends AddReservationHomeSubClusterResponse
Protocol buffer based implementation of
AddReservationHomeSubClusterResponse.-
Constructor Summary
ConstructorsConstructorDescriptionAddReservationHomeSubClusterResponsePBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.AddReservationHomeSubClusterResponseProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the home sub-cluster that this Reservation has been assigned to.org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.AddReservationHomeSubClusterResponseProtogetProto()inthashCode()voidsetHomeSubCluster(SubClusterId homeSubCluster) Set the home sub-cluster that this Reservation has been assigned to.toString()Methods inherited from class org.apache.hadoop.yarn.server.federation.store.records.AddReservationHomeSubClusterResponse
newInstance
-
Constructor Details
-
AddReservationHomeSubClusterResponsePBImpl
public AddReservationHomeSubClusterResponsePBImpl() -
AddReservationHomeSubClusterResponsePBImpl
public AddReservationHomeSubClusterResponsePBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.AddReservationHomeSubClusterResponseProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.AddReservationHomeSubClusterResponseProto getProto() -
setHomeSubCluster
Description copied from class:AddReservationHomeSubClusterResponseSet the home sub-cluster that this Reservation has been assigned to.- Specified by:
setHomeSubClusterin classAddReservationHomeSubClusterResponse- Parameters:
homeSubCluster- theSubClusterIdof this reservation's home sub-cluster
-
getHomeSubCluster
Description copied from class:AddReservationHomeSubClusterResponseGet the home sub-cluster that this Reservation has been assigned to. This may not match theSubClusterIdin the corresponding response, if the mapping for the request's reservation already existed.- Specified by:
getHomeSubClusterin classAddReservationHomeSubClusterResponse- Returns:
- the
SubClusterIdof this reservation's home sub-cluster
-
hashCode
public int hashCode() -
equals
-
toString
-