コード例 #1
0
void ApplicationAttemptId::setApplicationId(ApplicationID &appId) {
	ApplicationIdProto *proto = new ApplicationIdProto();
	proto->CopyFrom(appId.getProto());
	attemptIdProto.set_allocated_application_id(proto);
}
コード例 #2
0
void KillApplicationRequest::setApplicationId(ApplicationId &applicationId) {
	ApplicationIdProto* appId = new ApplicationIdProto();
	appId->CopyFrom(applicationId.getProto());
	requestProto.set_allocated_application_id(appId);
}