in scheduler/api/thrift/gen-go/scoot/cloudscoot.go [686:734]
func (p *CloudScootClient) recvGetClassLoadPercents() (value map[string]int32, err error) {
iprot := p.InputProtocol
if iprot == nil {
iprot = p.ProtocolFactory.GetProtocol(p.Transport)
p.InputProtocol = iprot
}
method, mTypeId, seqId, err := iprot.ReadMessageBegin()
if err != nil {
return
}
if method != "GetClassLoadPercents" {
err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "GetClassLoadPercents failed: wrong method name")
return
}
if p.SeqId != seqId {
err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "GetClassLoadPercents failed: out of sequence response")
return
}
if mTypeId == thrift.EXCEPTION {
error22 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
var error23 error
error23, err = error22.Read(iprot)
if err != nil {
return
}
if err = iprot.ReadMessageEnd(); err != nil {
return
}
err = error23
return
}
if mTypeId != thrift.REPLY {
err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "GetClassLoadPercents failed: invalid message type")
return
}
result := CloudScootGetClassLoadPercentsResult{}
if err = result.Read(iprot); err != nil {
return
}
if err = iprot.ReadMessageEnd(); err != nil {
return
}
if result.Ir != nil {
err = result.Ir
return
}
value = result.GetSuccess()
return
}