Class ReservationHomeSubClusterPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.ReservationHomeSubCluster
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.ReservationHomeSubClusterPBImpl
Protocol buffer based implementation of
ReservationHomeSubCluster.-
Constructor Summary
ConstructorsConstructorDescriptionReservationHomeSubClusterPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.ReservationHomeSubClusterProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet theSubClusterIdrepresenting the unique identifier of the home subcluster in which the reservation is mapped to.org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.ReservationHomeSubClusterProtogetProto()org.apache.hadoop.yarn.api.records.ReservationIdGet theReservationIdrepresenting the unique identifier of the Reservation.inthashCode()voidsetHomeSubCluster(SubClusterId subClusterId) Set theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ReservationMaster of the reservation is running.voidsetReservationId(org.apache.hadoop.yarn.api.records.ReservationId resId) Set theReservationIdrepresenting the unique identifier of the Reservation.toString()Methods inherited from class org.apache.hadoop.yarn.server.federation.store.records.ReservationHomeSubCluster
newInstance
-
Constructor Details
-
ReservationHomeSubClusterPBImpl
public ReservationHomeSubClusterPBImpl() -
ReservationHomeSubClusterPBImpl
public ReservationHomeSubClusterPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.ReservationHomeSubClusterProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.ReservationHomeSubClusterProto getProto() -
hashCode
public int hashCode()- Overrides:
hashCodein classReservationHomeSubCluster
-
equals
- Overrides:
equalsin classReservationHomeSubCluster
-
toString
- Overrides:
toStringin classReservationHomeSubCluster
-
getReservationId
public org.apache.hadoop.yarn.api.records.ReservationId getReservationId()Description copied from class:ReservationHomeSubClusterGet theReservationIdrepresenting the unique identifier of the Reservation.- Specified by:
getReservationIdin classReservationHomeSubCluster- Returns:
- the reservation identifier
-
setReservationId
public void setReservationId(org.apache.hadoop.yarn.api.records.ReservationId resId) Description copied from class:ReservationHomeSubClusterSet theReservationIdrepresenting the unique identifier of the Reservation.- Specified by:
setReservationIdin classReservationHomeSubCluster- Parameters:
resId- the reservation identifier
-
getHomeSubCluster
Description copied from class:ReservationHomeSubClusterGet theSubClusterIdrepresenting the unique identifier of the home subcluster in which the reservation is mapped to.- Specified by:
getHomeSubClusterin classReservationHomeSubCluster- Returns:
- the home subcluster identifier
-
setHomeSubCluster
Description copied from class:ReservationHomeSubClusterSet theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ReservationMaster of the reservation is running.- Specified by:
setHomeSubClusterin classReservationHomeSubCluster- Parameters:
subClusterId- the home subcluster identifier
-