Updating library for compatibility with Aurora 0.16.0 final. Thrift API differs from main Aurora one due to TaskUpdateQuery fields resulting in errors when serialized by thrift as non-optionals.
This commit is contained in:
parent
3a78e32e27
commit
3fd957fe5c
15 changed files with 2058 additions and 1020 deletions
|
@ -35,6 +35,8 @@ func Usage() {
|
|||
fmt.Fprintln(os.Stderr, " Response endMaintenance(Hosts hosts)")
|
||||
fmt.Fprintln(os.Stderr, " Response snapshot()")
|
||||
fmt.Fprintln(os.Stderr, " Response rewriteConfigs(RewriteConfigsRequest request)")
|
||||
fmt.Fprintln(os.Stderr, " Response triggerExplicitTaskReconciliation(ExplicitReconciliationSettings settings)")
|
||||
fmt.Fprintln(os.Stderr, " Response triggerImplicitTaskReconciliation()")
|
||||
fmt.Fprintln(os.Stderr, " Response createJob(JobConfiguration description)")
|
||||
fmt.Fprintln(os.Stderr, " Response scheduleCronJob(JobConfiguration description)")
|
||||
fmt.Fprintln(os.Stderr, " Response descheduleCronJob(JobKey job)")
|
||||
|
@ -59,7 +61,7 @@ func Usage() {
|
|||
fmt.Fprintln(os.Stderr, " Response getQuota(string ownerRole)")
|
||||
fmt.Fprintln(os.Stderr, " Response populateJobConfig(JobConfiguration description)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateSummaries(JobUpdateQuery jobUpdateQuery)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDetails(JobUpdateKey key)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDetails(JobUpdateQuery query)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDiff(JobUpdateRequest request)")
|
||||
fmt.Fprintln(os.Stderr, " Response getTierConfigs()")
|
||||
fmt.Fprintln(os.Stderr)
|
||||
|
@ -163,19 +165,19 @@ func main() {
|
|||
}
|
||||
argvalue0 := flag.Arg(1)
|
||||
value0 := argvalue0
|
||||
arg345 := flag.Arg(2)
|
||||
mbTrans346 := thrift.NewTMemoryBufferLen(len(arg345))
|
||||
defer mbTrans346.Close()
|
||||
_, err347 := mbTrans346.WriteString(arg345)
|
||||
if err347 != nil {
|
||||
arg352 := flag.Arg(2)
|
||||
mbTrans353 := thrift.NewTMemoryBufferLen(len(arg352))
|
||||
defer mbTrans353.Close()
|
||||
_, err354 := mbTrans353.WriteString(arg352)
|
||||
if err354 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory348 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt349 := factory348.GetProtocol(mbTrans346)
|
||||
factory355 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt356 := factory355.GetProtocol(mbTrans353)
|
||||
argvalue1 := aurora.NewResourceAggregate()
|
||||
err350 := argvalue1.Read(jsProt349)
|
||||
if err350 != nil {
|
||||
err357 := argvalue1.Read(jsProt356)
|
||||
if err357 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -231,19 +233,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "QueryRecovery requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg353 := flag.Arg(1)
|
||||
mbTrans354 := thrift.NewTMemoryBufferLen(len(arg353))
|
||||
defer mbTrans354.Close()
|
||||
_, err355 := mbTrans354.WriteString(arg353)
|
||||
if err355 != nil {
|
||||
arg360 := flag.Arg(1)
|
||||
mbTrans361 := thrift.NewTMemoryBufferLen(len(arg360))
|
||||
defer mbTrans361.Close()
|
||||
_, err362 := mbTrans361.WriteString(arg360)
|
||||
if err362 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory356 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt357 := factory356.GetProtocol(mbTrans354)
|
||||
factory363 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt364 := factory363.GetProtocol(mbTrans361)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err358 := argvalue0.Read(jsProt357)
|
||||
if err358 != nil {
|
||||
err365 := argvalue0.Read(jsProt364)
|
||||
if err365 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -256,19 +258,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "DeleteRecoveryTasks requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg359 := flag.Arg(1)
|
||||
mbTrans360 := thrift.NewTMemoryBufferLen(len(arg359))
|
||||
defer mbTrans360.Close()
|
||||
_, err361 := mbTrans360.WriteString(arg359)
|
||||
if err361 != nil {
|
||||
arg366 := flag.Arg(1)
|
||||
mbTrans367 := thrift.NewTMemoryBufferLen(len(arg366))
|
||||
defer mbTrans367.Close()
|
||||
_, err368 := mbTrans367.WriteString(arg366)
|
||||
if err368 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory362 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt363 := factory362.GetProtocol(mbTrans360)
|
||||
factory369 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt370 := factory369.GetProtocol(mbTrans367)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err364 := argvalue0.Read(jsProt363)
|
||||
if err364 != nil {
|
||||
err371 := argvalue0.Read(jsProt370)
|
||||
if err371 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -297,19 +299,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "StartMaintenance requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg365 := flag.Arg(1)
|
||||
mbTrans366 := thrift.NewTMemoryBufferLen(len(arg365))
|
||||
defer mbTrans366.Close()
|
||||
_, err367 := mbTrans366.WriteString(arg365)
|
||||
if err367 != nil {
|
||||
arg372 := flag.Arg(1)
|
||||
mbTrans373 := thrift.NewTMemoryBufferLen(len(arg372))
|
||||
defer mbTrans373.Close()
|
||||
_, err374 := mbTrans373.WriteString(arg372)
|
||||
if err374 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory368 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt369 := factory368.GetProtocol(mbTrans366)
|
||||
factory375 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt376 := factory375.GetProtocol(mbTrans373)
|
||||
argvalue0 := aurora.NewHosts()
|
||||
err370 := argvalue0.Read(jsProt369)
|
||||
if err370 != nil {
|
||||
err377 := argvalue0.Read(jsProt376)
|
||||
if err377 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -322,19 +324,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "DrainHosts requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg371 := flag.Arg(1)
|
||||
mbTrans372 := thrift.NewTMemoryBufferLen(len(arg371))
|
||||
defer mbTrans372.Close()
|
||||
_, err373 := mbTrans372.WriteString(arg371)
|
||||
if err373 != nil {
|
||||
arg378 := flag.Arg(1)
|
||||
mbTrans379 := thrift.NewTMemoryBufferLen(len(arg378))
|
||||
defer mbTrans379.Close()
|
||||
_, err380 := mbTrans379.WriteString(arg378)
|
||||
if err380 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory374 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt375 := factory374.GetProtocol(mbTrans372)
|
||||
factory381 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt382 := factory381.GetProtocol(mbTrans379)
|
||||
argvalue0 := aurora.NewHosts()
|
||||
err376 := argvalue0.Read(jsProt375)
|
||||
if err376 != nil {
|
||||
err383 := argvalue0.Read(jsProt382)
|
||||
if err383 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -347,19 +349,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "MaintenanceStatus requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg377 := flag.Arg(1)
|
||||
mbTrans378 := thrift.NewTMemoryBufferLen(len(arg377))
|
||||
defer mbTrans378.Close()
|
||||
_, err379 := mbTrans378.WriteString(arg377)
|
||||
if err379 != nil {
|
||||
arg384 := flag.Arg(1)
|
||||
mbTrans385 := thrift.NewTMemoryBufferLen(len(arg384))
|
||||
defer mbTrans385.Close()
|
||||
_, err386 := mbTrans385.WriteString(arg384)
|
||||
if err386 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory380 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt381 := factory380.GetProtocol(mbTrans378)
|
||||
factory387 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt388 := factory387.GetProtocol(mbTrans385)
|
||||
argvalue0 := aurora.NewHosts()
|
||||
err382 := argvalue0.Read(jsProt381)
|
||||
if err382 != nil {
|
||||
err389 := argvalue0.Read(jsProt388)
|
||||
if err389 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -372,19 +374,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "EndMaintenance requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg383 := flag.Arg(1)
|
||||
mbTrans384 := thrift.NewTMemoryBufferLen(len(arg383))
|
||||
defer mbTrans384.Close()
|
||||
_, err385 := mbTrans384.WriteString(arg383)
|
||||
if err385 != nil {
|
||||
arg390 := flag.Arg(1)
|
||||
mbTrans391 := thrift.NewTMemoryBufferLen(len(arg390))
|
||||
defer mbTrans391.Close()
|
||||
_, err392 := mbTrans391.WriteString(arg390)
|
||||
if err392 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory386 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt387 := factory386.GetProtocol(mbTrans384)
|
||||
factory393 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt394 := factory393.GetProtocol(mbTrans391)
|
||||
argvalue0 := aurora.NewHosts()
|
||||
err388 := argvalue0.Read(jsProt387)
|
||||
if err388 != nil {
|
||||
err395 := argvalue0.Read(jsProt394)
|
||||
if err395 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -405,19 +407,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "RewriteConfigs requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg389 := flag.Arg(1)
|
||||
mbTrans390 := thrift.NewTMemoryBufferLen(len(arg389))
|
||||
defer mbTrans390.Close()
|
||||
_, err391 := mbTrans390.WriteString(arg389)
|
||||
if err391 != nil {
|
||||
arg396 := flag.Arg(1)
|
||||
mbTrans397 := thrift.NewTMemoryBufferLen(len(arg396))
|
||||
defer mbTrans397.Close()
|
||||
_, err398 := mbTrans397.WriteString(arg396)
|
||||
if err398 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory392 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt393 := factory392.GetProtocol(mbTrans390)
|
||||
factory399 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt400 := factory399.GetProtocol(mbTrans397)
|
||||
argvalue0 := aurora.NewRewriteConfigsRequest()
|
||||
err394 := argvalue0.Read(jsProt393)
|
||||
if err394 != nil {
|
||||
err401 := argvalue0.Read(jsProt400)
|
||||
if err401 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -425,24 +427,57 @@ func main() {
|
|||
fmt.Print(client.RewriteConfigs(value0))
|
||||
fmt.Print("\n")
|
||||
break
|
||||
case "triggerExplicitTaskReconciliation":
|
||||
if flag.NArg()-1 != 1 {
|
||||
fmt.Fprintln(os.Stderr, "TriggerExplicitTaskReconciliation requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg402 := flag.Arg(1)
|
||||
mbTrans403 := thrift.NewTMemoryBufferLen(len(arg402))
|
||||
defer mbTrans403.Close()
|
||||
_, err404 := mbTrans403.WriteString(arg402)
|
||||
if err404 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory405 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt406 := factory405.GetProtocol(mbTrans403)
|
||||
argvalue0 := aurora.NewExplicitReconciliationSettings()
|
||||
err407 := argvalue0.Read(jsProt406)
|
||||
if err407 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
value0 := argvalue0
|
||||
fmt.Print(client.TriggerExplicitTaskReconciliation(value0))
|
||||
fmt.Print("\n")
|
||||
break
|
||||
case "triggerImplicitTaskReconciliation":
|
||||
if flag.NArg()-1 != 0 {
|
||||
fmt.Fprintln(os.Stderr, "TriggerImplicitTaskReconciliation requires 0 args")
|
||||
flag.Usage()
|
||||
}
|
||||
fmt.Print(client.TriggerImplicitTaskReconciliation())
|
||||
fmt.Print("\n")
|
||||
break
|
||||
case "createJob":
|
||||
if flag.NArg()-1 != 1 {
|
||||
fmt.Fprintln(os.Stderr, "CreateJob requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg395 := flag.Arg(1)
|
||||
mbTrans396 := thrift.NewTMemoryBufferLen(len(arg395))
|
||||
defer mbTrans396.Close()
|
||||
_, err397 := mbTrans396.WriteString(arg395)
|
||||
if err397 != nil {
|
||||
arg408 := flag.Arg(1)
|
||||
mbTrans409 := thrift.NewTMemoryBufferLen(len(arg408))
|
||||
defer mbTrans409.Close()
|
||||
_, err410 := mbTrans409.WriteString(arg408)
|
||||
if err410 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory398 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt399 := factory398.GetProtocol(mbTrans396)
|
||||
factory411 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt412 := factory411.GetProtocol(mbTrans409)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err400 := argvalue0.Read(jsProt399)
|
||||
if err400 != nil {
|
||||
err413 := argvalue0.Read(jsProt412)
|
||||
if err413 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -455,19 +490,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "ScheduleCronJob requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg401 := flag.Arg(1)
|
||||
mbTrans402 := thrift.NewTMemoryBufferLen(len(arg401))
|
||||
defer mbTrans402.Close()
|
||||
_, err403 := mbTrans402.WriteString(arg401)
|
||||
if err403 != nil {
|
||||
arg414 := flag.Arg(1)
|
||||
mbTrans415 := thrift.NewTMemoryBufferLen(len(arg414))
|
||||
defer mbTrans415.Close()
|
||||
_, err416 := mbTrans415.WriteString(arg414)
|
||||
if err416 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory404 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt405 := factory404.GetProtocol(mbTrans402)
|
||||
factory417 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt418 := factory417.GetProtocol(mbTrans415)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err406 := argvalue0.Read(jsProt405)
|
||||
if err406 != nil {
|
||||
err419 := argvalue0.Read(jsProt418)
|
||||
if err419 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -480,19 +515,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "DescheduleCronJob requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg407 := flag.Arg(1)
|
||||
mbTrans408 := thrift.NewTMemoryBufferLen(len(arg407))
|
||||
defer mbTrans408.Close()
|
||||
_, err409 := mbTrans408.WriteString(arg407)
|
||||
if err409 != nil {
|
||||
arg420 := flag.Arg(1)
|
||||
mbTrans421 := thrift.NewTMemoryBufferLen(len(arg420))
|
||||
defer mbTrans421.Close()
|
||||
_, err422 := mbTrans421.WriteString(arg420)
|
||||
if err422 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory410 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt411 := factory410.GetProtocol(mbTrans408)
|
||||
factory423 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt424 := factory423.GetProtocol(mbTrans421)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err412 := argvalue0.Read(jsProt411)
|
||||
if err412 != nil {
|
||||
err425 := argvalue0.Read(jsProt424)
|
||||
if err425 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -505,19 +540,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "StartCronJob requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg413 := flag.Arg(1)
|
||||
mbTrans414 := thrift.NewTMemoryBufferLen(len(arg413))
|
||||
defer mbTrans414.Close()
|
||||
_, err415 := mbTrans414.WriteString(arg413)
|
||||
if err415 != nil {
|
||||
arg426 := flag.Arg(1)
|
||||
mbTrans427 := thrift.NewTMemoryBufferLen(len(arg426))
|
||||
defer mbTrans427.Close()
|
||||
_, err428 := mbTrans427.WriteString(arg426)
|
||||
if err428 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory416 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt417 := factory416.GetProtocol(mbTrans414)
|
||||
factory429 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt430 := factory429.GetProtocol(mbTrans427)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err418 := argvalue0.Read(jsProt417)
|
||||
if err418 != nil {
|
||||
err431 := argvalue0.Read(jsProt430)
|
||||
if err431 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -530,36 +565,36 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "RestartShards requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg419 := flag.Arg(1)
|
||||
mbTrans420 := thrift.NewTMemoryBufferLen(len(arg419))
|
||||
defer mbTrans420.Close()
|
||||
_, err421 := mbTrans420.WriteString(arg419)
|
||||
if err421 != nil {
|
||||
arg432 := flag.Arg(1)
|
||||
mbTrans433 := thrift.NewTMemoryBufferLen(len(arg432))
|
||||
defer mbTrans433.Close()
|
||||
_, err434 := mbTrans433.WriteString(arg432)
|
||||
if err434 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory422 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt423 := factory422.GetProtocol(mbTrans420)
|
||||
factory435 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt436 := factory435.GetProtocol(mbTrans433)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err424 := argvalue0.Read(jsProt423)
|
||||
if err424 != nil {
|
||||
err437 := argvalue0.Read(jsProt436)
|
||||
if err437 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
value0 := argvalue0
|
||||
arg425 := flag.Arg(2)
|
||||
mbTrans426 := thrift.NewTMemoryBufferLen(len(arg425))
|
||||
defer mbTrans426.Close()
|
||||
_, err427 := mbTrans426.WriteString(arg425)
|
||||
if err427 != nil {
|
||||
arg438 := flag.Arg(2)
|
||||
mbTrans439 := thrift.NewTMemoryBufferLen(len(arg438))
|
||||
defer mbTrans439.Close()
|
||||
_, err440 := mbTrans439.WriteString(arg438)
|
||||
if err440 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory428 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt429 := factory428.GetProtocol(mbTrans426)
|
||||
factory441 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt442 := factory441.GetProtocol(mbTrans439)
|
||||
containerStruct1 := aurora.NewAuroraAdminRestartShardsArgs()
|
||||
err430 := containerStruct1.ReadField2(jsProt429)
|
||||
if err430 != nil {
|
||||
err443 := containerStruct1.ReadField2(jsProt442)
|
||||
if err443 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -573,36 +608,36 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "KillTasks requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg431 := flag.Arg(1)
|
||||
mbTrans432 := thrift.NewTMemoryBufferLen(len(arg431))
|
||||
defer mbTrans432.Close()
|
||||
_, err433 := mbTrans432.WriteString(arg431)
|
||||
if err433 != nil {
|
||||
arg444 := flag.Arg(1)
|
||||
mbTrans445 := thrift.NewTMemoryBufferLen(len(arg444))
|
||||
defer mbTrans445.Close()
|
||||
_, err446 := mbTrans445.WriteString(arg444)
|
||||
if err446 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory434 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt435 := factory434.GetProtocol(mbTrans432)
|
||||
factory447 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt448 := factory447.GetProtocol(mbTrans445)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err436 := argvalue0.Read(jsProt435)
|
||||
if err436 != nil {
|
||||
err449 := argvalue0.Read(jsProt448)
|
||||
if err449 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
value0 := argvalue0
|
||||
arg437 := flag.Arg(2)
|
||||
mbTrans438 := thrift.NewTMemoryBufferLen(len(arg437))
|
||||
defer mbTrans438.Close()
|
||||
_, err439 := mbTrans438.WriteString(arg437)
|
||||
if err439 != nil {
|
||||
arg450 := flag.Arg(2)
|
||||
mbTrans451 := thrift.NewTMemoryBufferLen(len(arg450))
|
||||
defer mbTrans451.Close()
|
||||
_, err452 := mbTrans451.WriteString(arg450)
|
||||
if err452 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory440 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt441 := factory440.GetProtocol(mbTrans438)
|
||||
factory453 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt454 := factory453.GetProtocol(mbTrans451)
|
||||
containerStruct1 := aurora.NewAuroraAdminKillTasksArgs()
|
||||
err442 := containerStruct1.ReadField2(jsProt441)
|
||||
if err442 != nil {
|
||||
err455 := containerStruct1.ReadField2(jsProt454)
|
||||
if err455 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -616,25 +651,25 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "AddInstances requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg443 := flag.Arg(1)
|
||||
mbTrans444 := thrift.NewTMemoryBufferLen(len(arg443))
|
||||
defer mbTrans444.Close()
|
||||
_, err445 := mbTrans444.WriteString(arg443)
|
||||
if err445 != nil {
|
||||
arg456 := flag.Arg(1)
|
||||
mbTrans457 := thrift.NewTMemoryBufferLen(len(arg456))
|
||||
defer mbTrans457.Close()
|
||||
_, err458 := mbTrans457.WriteString(arg456)
|
||||
if err458 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory446 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt447 := factory446.GetProtocol(mbTrans444)
|
||||
factory459 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt460 := factory459.GetProtocol(mbTrans457)
|
||||
argvalue0 := aurora.NewInstanceKey()
|
||||
err448 := argvalue0.Read(jsProt447)
|
||||
if err448 != nil {
|
||||
err461 := argvalue0.Read(jsProt460)
|
||||
if err461 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
value0 := argvalue0
|
||||
tmp1, err449 := (strconv.Atoi(flag.Arg(2)))
|
||||
if err449 != nil {
|
||||
tmp1, err462 := (strconv.Atoi(flag.Arg(2)))
|
||||
if err462 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -648,19 +683,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "ReplaceCronTemplate requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg450 := flag.Arg(1)
|
||||
mbTrans451 := thrift.NewTMemoryBufferLen(len(arg450))
|
||||
defer mbTrans451.Close()
|
||||
_, err452 := mbTrans451.WriteString(arg450)
|
||||
if err452 != nil {
|
||||
arg463 := flag.Arg(1)
|
||||
mbTrans464 := thrift.NewTMemoryBufferLen(len(arg463))
|
||||
defer mbTrans464.Close()
|
||||
_, err465 := mbTrans464.WriteString(arg463)
|
||||
if err465 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory453 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt454 := factory453.GetProtocol(mbTrans451)
|
||||
factory466 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt467 := factory466.GetProtocol(mbTrans464)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err455 := argvalue0.Read(jsProt454)
|
||||
if err455 != nil {
|
||||
err468 := argvalue0.Read(jsProt467)
|
||||
if err468 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -673,19 +708,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "StartJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg456 := flag.Arg(1)
|
||||
mbTrans457 := thrift.NewTMemoryBufferLen(len(arg456))
|
||||
defer mbTrans457.Close()
|
||||
_, err458 := mbTrans457.WriteString(arg456)
|
||||
if err458 != nil {
|
||||
arg469 := flag.Arg(1)
|
||||
mbTrans470 := thrift.NewTMemoryBufferLen(len(arg469))
|
||||
defer mbTrans470.Close()
|
||||
_, err471 := mbTrans470.WriteString(arg469)
|
||||
if err471 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory459 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt460 := factory459.GetProtocol(mbTrans457)
|
||||
factory472 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt473 := factory472.GetProtocol(mbTrans470)
|
||||
argvalue0 := aurora.NewJobUpdateRequest()
|
||||
err461 := argvalue0.Read(jsProt460)
|
||||
if err461 != nil {
|
||||
err474 := argvalue0.Read(jsProt473)
|
||||
if err474 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -700,19 +735,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "PauseJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg463 := flag.Arg(1)
|
||||
mbTrans464 := thrift.NewTMemoryBufferLen(len(arg463))
|
||||
defer mbTrans464.Close()
|
||||
_, err465 := mbTrans464.WriteString(arg463)
|
||||
if err465 != nil {
|
||||
arg476 := flag.Arg(1)
|
||||
mbTrans477 := thrift.NewTMemoryBufferLen(len(arg476))
|
||||
defer mbTrans477.Close()
|
||||
_, err478 := mbTrans477.WriteString(arg476)
|
||||
if err478 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory466 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt467 := factory466.GetProtocol(mbTrans464)
|
||||
factory479 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt480 := factory479.GetProtocol(mbTrans477)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err468 := argvalue0.Read(jsProt467)
|
||||
if err468 != nil {
|
||||
err481 := argvalue0.Read(jsProt480)
|
||||
if err481 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -727,19 +762,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "ResumeJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg470 := flag.Arg(1)
|
||||
mbTrans471 := thrift.NewTMemoryBufferLen(len(arg470))
|
||||
defer mbTrans471.Close()
|
||||
_, err472 := mbTrans471.WriteString(arg470)
|
||||
if err472 != nil {
|
||||
arg483 := flag.Arg(1)
|
||||
mbTrans484 := thrift.NewTMemoryBufferLen(len(arg483))
|
||||
defer mbTrans484.Close()
|
||||
_, err485 := mbTrans484.WriteString(arg483)
|
||||
if err485 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory473 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt474 := factory473.GetProtocol(mbTrans471)
|
||||
factory486 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt487 := factory486.GetProtocol(mbTrans484)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err475 := argvalue0.Read(jsProt474)
|
||||
if err475 != nil {
|
||||
err488 := argvalue0.Read(jsProt487)
|
||||
if err488 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -754,19 +789,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "AbortJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg477 := flag.Arg(1)
|
||||
mbTrans478 := thrift.NewTMemoryBufferLen(len(arg477))
|
||||
defer mbTrans478.Close()
|
||||
_, err479 := mbTrans478.WriteString(arg477)
|
||||
if err479 != nil {
|
||||
arg490 := flag.Arg(1)
|
||||
mbTrans491 := thrift.NewTMemoryBufferLen(len(arg490))
|
||||
defer mbTrans491.Close()
|
||||
_, err492 := mbTrans491.WriteString(arg490)
|
||||
if err492 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory480 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt481 := factory480.GetProtocol(mbTrans478)
|
||||
factory493 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt494 := factory493.GetProtocol(mbTrans491)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err482 := argvalue0.Read(jsProt481)
|
||||
if err482 != nil {
|
||||
err495 := argvalue0.Read(jsProt494)
|
||||
if err495 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -781,19 +816,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "RollbackJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg484 := flag.Arg(1)
|
||||
mbTrans485 := thrift.NewTMemoryBufferLen(len(arg484))
|
||||
defer mbTrans485.Close()
|
||||
_, err486 := mbTrans485.WriteString(arg484)
|
||||
if err486 != nil {
|
||||
arg497 := flag.Arg(1)
|
||||
mbTrans498 := thrift.NewTMemoryBufferLen(len(arg497))
|
||||
defer mbTrans498.Close()
|
||||
_, err499 := mbTrans498.WriteString(arg497)
|
||||
if err499 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory487 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt488 := factory487.GetProtocol(mbTrans485)
|
||||
factory500 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt501 := factory500.GetProtocol(mbTrans498)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err489 := argvalue0.Read(jsProt488)
|
||||
if err489 != nil {
|
||||
err502 := argvalue0.Read(jsProt501)
|
||||
if err502 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -808,19 +843,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "PulseJobUpdate requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg491 := flag.Arg(1)
|
||||
mbTrans492 := thrift.NewTMemoryBufferLen(len(arg491))
|
||||
defer mbTrans492.Close()
|
||||
_, err493 := mbTrans492.WriteString(arg491)
|
||||
if err493 != nil {
|
||||
arg504 := flag.Arg(1)
|
||||
mbTrans505 := thrift.NewTMemoryBufferLen(len(arg504))
|
||||
defer mbTrans505.Close()
|
||||
_, err506 := mbTrans505.WriteString(arg504)
|
||||
if err506 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory494 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt495 := factory494.GetProtocol(mbTrans492)
|
||||
factory507 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt508 := factory507.GetProtocol(mbTrans505)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err496 := argvalue0.Read(jsProt495)
|
||||
if err496 != nil {
|
||||
err509 := argvalue0.Read(jsProt508)
|
||||
if err509 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -851,19 +886,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetTasksStatus requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg498 := flag.Arg(1)
|
||||
mbTrans499 := thrift.NewTMemoryBufferLen(len(arg498))
|
||||
defer mbTrans499.Close()
|
||||
_, err500 := mbTrans499.WriteString(arg498)
|
||||
if err500 != nil {
|
||||
arg511 := flag.Arg(1)
|
||||
mbTrans512 := thrift.NewTMemoryBufferLen(len(arg511))
|
||||
defer mbTrans512.Close()
|
||||
_, err513 := mbTrans512.WriteString(arg511)
|
||||
if err513 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory501 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt502 := factory501.GetProtocol(mbTrans499)
|
||||
factory514 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt515 := factory514.GetProtocol(mbTrans512)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err503 := argvalue0.Read(jsProt502)
|
||||
if err503 != nil {
|
||||
err516 := argvalue0.Read(jsProt515)
|
||||
if err516 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -876,19 +911,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetTasksWithoutConfigs requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg504 := flag.Arg(1)
|
||||
mbTrans505 := thrift.NewTMemoryBufferLen(len(arg504))
|
||||
defer mbTrans505.Close()
|
||||
_, err506 := mbTrans505.WriteString(arg504)
|
||||
if err506 != nil {
|
||||
arg517 := flag.Arg(1)
|
||||
mbTrans518 := thrift.NewTMemoryBufferLen(len(arg517))
|
||||
defer mbTrans518.Close()
|
||||
_, err519 := mbTrans518.WriteString(arg517)
|
||||
if err519 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory507 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt508 := factory507.GetProtocol(mbTrans505)
|
||||
factory520 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt521 := factory520.GetProtocol(mbTrans518)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err509 := argvalue0.Read(jsProt508)
|
||||
if err509 != nil {
|
||||
err522 := argvalue0.Read(jsProt521)
|
||||
if err522 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -901,19 +936,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetPendingReason requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg510 := flag.Arg(1)
|
||||
mbTrans511 := thrift.NewTMemoryBufferLen(len(arg510))
|
||||
defer mbTrans511.Close()
|
||||
_, err512 := mbTrans511.WriteString(arg510)
|
||||
if err512 != nil {
|
||||
arg523 := flag.Arg(1)
|
||||
mbTrans524 := thrift.NewTMemoryBufferLen(len(arg523))
|
||||
defer mbTrans524.Close()
|
||||
_, err525 := mbTrans524.WriteString(arg523)
|
||||
if err525 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory513 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt514 := factory513.GetProtocol(mbTrans511)
|
||||
factory526 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt527 := factory526.GetProtocol(mbTrans524)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err515 := argvalue0.Read(jsProt514)
|
||||
if err515 != nil {
|
||||
err528 := argvalue0.Read(jsProt527)
|
||||
if err528 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -926,19 +961,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetConfigSummary requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg516 := flag.Arg(1)
|
||||
mbTrans517 := thrift.NewTMemoryBufferLen(len(arg516))
|
||||
defer mbTrans517.Close()
|
||||
_, err518 := mbTrans517.WriteString(arg516)
|
||||
if err518 != nil {
|
||||
arg529 := flag.Arg(1)
|
||||
mbTrans530 := thrift.NewTMemoryBufferLen(len(arg529))
|
||||
defer mbTrans530.Close()
|
||||
_, err531 := mbTrans530.WriteString(arg529)
|
||||
if err531 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory519 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt520 := factory519.GetProtocol(mbTrans517)
|
||||
factory532 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt533 := factory532.GetProtocol(mbTrans530)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err521 := argvalue0.Read(jsProt520)
|
||||
if err521 != nil {
|
||||
err534 := argvalue0.Read(jsProt533)
|
||||
if err534 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -971,19 +1006,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "PopulateJobConfig requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg524 := flag.Arg(1)
|
||||
mbTrans525 := thrift.NewTMemoryBufferLen(len(arg524))
|
||||
defer mbTrans525.Close()
|
||||
_, err526 := mbTrans525.WriteString(arg524)
|
||||
if err526 != nil {
|
||||
arg537 := flag.Arg(1)
|
||||
mbTrans538 := thrift.NewTMemoryBufferLen(len(arg537))
|
||||
defer mbTrans538.Close()
|
||||
_, err539 := mbTrans538.WriteString(arg537)
|
||||
if err539 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory527 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt528 := factory527.GetProtocol(mbTrans525)
|
||||
factory540 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt541 := factory540.GetProtocol(mbTrans538)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err529 := argvalue0.Read(jsProt528)
|
||||
if err529 != nil {
|
||||
err542 := argvalue0.Read(jsProt541)
|
||||
if err542 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -996,19 +1031,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateSummaries requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg530 := flag.Arg(1)
|
||||
mbTrans531 := thrift.NewTMemoryBufferLen(len(arg530))
|
||||
defer mbTrans531.Close()
|
||||
_, err532 := mbTrans531.WriteString(arg530)
|
||||
if err532 != nil {
|
||||
arg543 := flag.Arg(1)
|
||||
mbTrans544 := thrift.NewTMemoryBufferLen(len(arg543))
|
||||
defer mbTrans544.Close()
|
||||
_, err545 := mbTrans544.WriteString(arg543)
|
||||
if err545 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory533 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt534 := factory533.GetProtocol(mbTrans531)
|
||||
factory546 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt547 := factory546.GetProtocol(mbTrans544)
|
||||
argvalue0 := aurora.NewJobUpdateQuery()
|
||||
err535 := argvalue0.Read(jsProt534)
|
||||
if err535 != nil {
|
||||
err548 := argvalue0.Read(jsProt547)
|
||||
if err548 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -1021,19 +1056,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateDetails requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg536 := flag.Arg(1)
|
||||
mbTrans537 := thrift.NewTMemoryBufferLen(len(arg536))
|
||||
defer mbTrans537.Close()
|
||||
_, err538 := mbTrans537.WriteString(arg536)
|
||||
if err538 != nil {
|
||||
arg549 := flag.Arg(1)
|
||||
mbTrans550 := thrift.NewTMemoryBufferLen(len(arg549))
|
||||
defer mbTrans550.Close()
|
||||
_, err551 := mbTrans550.WriteString(arg549)
|
||||
if err551 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory539 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt540 := factory539.GetProtocol(mbTrans537)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err541 := argvalue0.Read(jsProt540)
|
||||
if err541 != nil {
|
||||
factory552 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt553 := factory552.GetProtocol(mbTrans550)
|
||||
argvalue0 := aurora.NewJobUpdateQuery()
|
||||
err554 := argvalue0.Read(jsProt553)
|
||||
if err554 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -1046,19 +1081,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateDiff requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg542 := flag.Arg(1)
|
||||
mbTrans543 := thrift.NewTMemoryBufferLen(len(arg542))
|
||||
defer mbTrans543.Close()
|
||||
_, err544 := mbTrans543.WriteString(arg542)
|
||||
if err544 != nil {
|
||||
arg555 := flag.Arg(1)
|
||||
mbTrans556 := thrift.NewTMemoryBufferLen(len(arg555))
|
||||
defer mbTrans556.Close()
|
||||
_, err557 := mbTrans556.WriteString(arg555)
|
||||
if err557 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory545 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt546 := factory545.GetProtocol(mbTrans543)
|
||||
factory558 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt559 := factory558.GetProtocol(mbTrans556)
|
||||
argvalue0 := aurora.NewJobUpdateRequest()
|
||||
err547 := argvalue0.Read(jsProt546)
|
||||
if err547 != nil {
|
||||
err560 := argvalue0.Read(jsProt559)
|
||||
if err560 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ func Usage() {
|
|||
fmt.Fprintln(os.Stderr, " Response getQuota(string ownerRole)")
|
||||
fmt.Fprintln(os.Stderr, " Response populateJobConfig(JobConfiguration description)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateSummaries(JobUpdateQuery jobUpdateQuery)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDetails(JobUpdateKey key)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDetails(JobUpdateQuery query)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDiff(JobUpdateRequest request)")
|
||||
fmt.Fprintln(os.Stderr, " Response getTierConfigs()")
|
||||
fmt.Fprintln(os.Stderr)
|
||||
|
@ -146,19 +146,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "CreateJob requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg160 := flag.Arg(1)
|
||||
mbTrans161 := thrift.NewTMemoryBufferLen(len(arg160))
|
||||
defer mbTrans161.Close()
|
||||
_, err162 := mbTrans161.WriteString(arg160)
|
||||
if err162 != nil {
|
||||
arg163 := flag.Arg(1)
|
||||
mbTrans164 := thrift.NewTMemoryBufferLen(len(arg163))
|
||||
defer mbTrans164.Close()
|
||||
_, err165 := mbTrans164.WriteString(arg163)
|
||||
if err165 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory163 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt164 := factory163.GetProtocol(mbTrans161)
|
||||
factory166 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt167 := factory166.GetProtocol(mbTrans164)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err165 := argvalue0.Read(jsProt164)
|
||||
if err165 != nil {
|
||||
err168 := argvalue0.Read(jsProt167)
|
||||
if err168 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -171,19 +171,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "ScheduleCronJob requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg166 := flag.Arg(1)
|
||||
mbTrans167 := thrift.NewTMemoryBufferLen(len(arg166))
|
||||
defer mbTrans167.Close()
|
||||
_, err168 := mbTrans167.WriteString(arg166)
|
||||
if err168 != nil {
|
||||
arg169 := flag.Arg(1)
|
||||
mbTrans170 := thrift.NewTMemoryBufferLen(len(arg169))
|
||||
defer mbTrans170.Close()
|
||||
_, err171 := mbTrans170.WriteString(arg169)
|
||||
if err171 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory169 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt170 := factory169.GetProtocol(mbTrans167)
|
||||
factory172 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt173 := factory172.GetProtocol(mbTrans170)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err171 := argvalue0.Read(jsProt170)
|
||||
if err171 != nil {
|
||||
err174 := argvalue0.Read(jsProt173)
|
||||
if err174 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -196,19 +196,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "DescheduleCronJob requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg172 := flag.Arg(1)
|
||||
mbTrans173 := thrift.NewTMemoryBufferLen(len(arg172))
|
||||
defer mbTrans173.Close()
|
||||
_, err174 := mbTrans173.WriteString(arg172)
|
||||
if err174 != nil {
|
||||
arg175 := flag.Arg(1)
|
||||
mbTrans176 := thrift.NewTMemoryBufferLen(len(arg175))
|
||||
defer mbTrans176.Close()
|
||||
_, err177 := mbTrans176.WriteString(arg175)
|
||||
if err177 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory175 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt176 := factory175.GetProtocol(mbTrans173)
|
||||
factory178 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt179 := factory178.GetProtocol(mbTrans176)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err177 := argvalue0.Read(jsProt176)
|
||||
if err177 != nil {
|
||||
err180 := argvalue0.Read(jsProt179)
|
||||
if err180 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -221,19 +221,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "StartCronJob requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg178 := flag.Arg(1)
|
||||
mbTrans179 := thrift.NewTMemoryBufferLen(len(arg178))
|
||||
defer mbTrans179.Close()
|
||||
_, err180 := mbTrans179.WriteString(arg178)
|
||||
if err180 != nil {
|
||||
arg181 := flag.Arg(1)
|
||||
mbTrans182 := thrift.NewTMemoryBufferLen(len(arg181))
|
||||
defer mbTrans182.Close()
|
||||
_, err183 := mbTrans182.WriteString(arg181)
|
||||
if err183 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory181 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt182 := factory181.GetProtocol(mbTrans179)
|
||||
factory184 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt185 := factory184.GetProtocol(mbTrans182)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err183 := argvalue0.Read(jsProt182)
|
||||
if err183 != nil {
|
||||
err186 := argvalue0.Read(jsProt185)
|
||||
if err186 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -246,39 +246,39 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "RestartShards requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg184 := flag.Arg(1)
|
||||
mbTrans185 := thrift.NewTMemoryBufferLen(len(arg184))
|
||||
defer mbTrans185.Close()
|
||||
_, err186 := mbTrans185.WriteString(arg184)
|
||||
if err186 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory187 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt188 := factory187.GetProtocol(mbTrans185)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err189 := argvalue0.Read(jsProt188)
|
||||
arg187 := flag.Arg(1)
|
||||
mbTrans188 := thrift.NewTMemoryBufferLen(len(arg187))
|
||||
defer mbTrans188.Close()
|
||||
_, err189 := mbTrans188.WriteString(arg187)
|
||||
if err189 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
value0 := argvalue0
|
||||
arg190 := flag.Arg(2)
|
||||
mbTrans191 := thrift.NewTMemoryBufferLen(len(arg190))
|
||||
defer mbTrans191.Close()
|
||||
_, err192 := mbTrans191.WriteString(arg190)
|
||||
factory190 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt191 := factory190.GetProtocol(mbTrans188)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err192 := argvalue0.Read(jsProt191)
|
||||
if err192 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory193 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt194 := factory193.GetProtocol(mbTrans191)
|
||||
containerStruct1 := aurora.NewAuroraSchedulerManagerRestartShardsArgs()
|
||||
err195 := containerStruct1.ReadField2(jsProt194)
|
||||
value0 := argvalue0
|
||||
arg193 := flag.Arg(2)
|
||||
mbTrans194 := thrift.NewTMemoryBufferLen(len(arg193))
|
||||
defer mbTrans194.Close()
|
||||
_, err195 := mbTrans194.WriteString(arg193)
|
||||
if err195 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory196 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt197 := factory196.GetProtocol(mbTrans194)
|
||||
containerStruct1 := aurora.NewAuroraSchedulerManagerRestartShardsArgs()
|
||||
err198 := containerStruct1.ReadField2(jsProt197)
|
||||
if err198 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
argvalue1 := containerStruct1.ShardIds
|
||||
value1 := argvalue1
|
||||
fmt.Print(client.RestartShards(value0, value1))
|
||||
|
@ -289,39 +289,39 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "KillTasks requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg196 := flag.Arg(1)
|
||||
mbTrans197 := thrift.NewTMemoryBufferLen(len(arg196))
|
||||
defer mbTrans197.Close()
|
||||
_, err198 := mbTrans197.WriteString(arg196)
|
||||
if err198 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory199 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt200 := factory199.GetProtocol(mbTrans197)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err201 := argvalue0.Read(jsProt200)
|
||||
arg199 := flag.Arg(1)
|
||||
mbTrans200 := thrift.NewTMemoryBufferLen(len(arg199))
|
||||
defer mbTrans200.Close()
|
||||
_, err201 := mbTrans200.WriteString(arg199)
|
||||
if err201 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
value0 := argvalue0
|
||||
arg202 := flag.Arg(2)
|
||||
mbTrans203 := thrift.NewTMemoryBufferLen(len(arg202))
|
||||
defer mbTrans203.Close()
|
||||
_, err204 := mbTrans203.WriteString(arg202)
|
||||
factory202 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt203 := factory202.GetProtocol(mbTrans200)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err204 := argvalue0.Read(jsProt203)
|
||||
if err204 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory205 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt206 := factory205.GetProtocol(mbTrans203)
|
||||
containerStruct1 := aurora.NewAuroraSchedulerManagerKillTasksArgs()
|
||||
err207 := containerStruct1.ReadField2(jsProt206)
|
||||
value0 := argvalue0
|
||||
arg205 := flag.Arg(2)
|
||||
mbTrans206 := thrift.NewTMemoryBufferLen(len(arg205))
|
||||
defer mbTrans206.Close()
|
||||
_, err207 := mbTrans206.WriteString(arg205)
|
||||
if err207 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory208 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt209 := factory208.GetProtocol(mbTrans206)
|
||||
containerStruct1 := aurora.NewAuroraSchedulerManagerKillTasksArgs()
|
||||
err210 := containerStruct1.ReadField2(jsProt209)
|
||||
if err210 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
argvalue1 := containerStruct1.Instances
|
||||
value1 := argvalue1
|
||||
fmt.Print(client.KillTasks(value0, value1))
|
||||
|
@ -332,25 +332,25 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "AddInstances requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg208 := flag.Arg(1)
|
||||
mbTrans209 := thrift.NewTMemoryBufferLen(len(arg208))
|
||||
defer mbTrans209.Close()
|
||||
_, err210 := mbTrans209.WriteString(arg208)
|
||||
if err210 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory211 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt212 := factory211.GetProtocol(mbTrans209)
|
||||
argvalue0 := aurora.NewInstanceKey()
|
||||
err213 := argvalue0.Read(jsProt212)
|
||||
arg211 := flag.Arg(1)
|
||||
mbTrans212 := thrift.NewTMemoryBufferLen(len(arg211))
|
||||
defer mbTrans212.Close()
|
||||
_, err213 := mbTrans212.WriteString(arg211)
|
||||
if err213 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory214 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt215 := factory214.GetProtocol(mbTrans212)
|
||||
argvalue0 := aurora.NewInstanceKey()
|
||||
err216 := argvalue0.Read(jsProt215)
|
||||
if err216 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
value0 := argvalue0
|
||||
tmp1, err214 := (strconv.Atoi(flag.Arg(2)))
|
||||
if err214 != nil {
|
||||
tmp1, err217 := (strconv.Atoi(flag.Arg(2)))
|
||||
if err217 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -364,19 +364,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "ReplaceCronTemplate requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg215 := flag.Arg(1)
|
||||
mbTrans216 := thrift.NewTMemoryBufferLen(len(arg215))
|
||||
defer mbTrans216.Close()
|
||||
_, err217 := mbTrans216.WriteString(arg215)
|
||||
if err217 != nil {
|
||||
arg218 := flag.Arg(1)
|
||||
mbTrans219 := thrift.NewTMemoryBufferLen(len(arg218))
|
||||
defer mbTrans219.Close()
|
||||
_, err220 := mbTrans219.WriteString(arg218)
|
||||
if err220 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory218 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt219 := factory218.GetProtocol(mbTrans216)
|
||||
factory221 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt222 := factory221.GetProtocol(mbTrans219)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err220 := argvalue0.Read(jsProt219)
|
||||
if err220 != nil {
|
||||
err223 := argvalue0.Read(jsProt222)
|
||||
if err223 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -389,19 +389,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "StartJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg221 := flag.Arg(1)
|
||||
mbTrans222 := thrift.NewTMemoryBufferLen(len(arg221))
|
||||
defer mbTrans222.Close()
|
||||
_, err223 := mbTrans222.WriteString(arg221)
|
||||
if err223 != nil {
|
||||
arg224 := flag.Arg(1)
|
||||
mbTrans225 := thrift.NewTMemoryBufferLen(len(arg224))
|
||||
defer mbTrans225.Close()
|
||||
_, err226 := mbTrans225.WriteString(arg224)
|
||||
if err226 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory224 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt225 := factory224.GetProtocol(mbTrans222)
|
||||
factory227 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt228 := factory227.GetProtocol(mbTrans225)
|
||||
argvalue0 := aurora.NewJobUpdateRequest()
|
||||
err226 := argvalue0.Read(jsProt225)
|
||||
if err226 != nil {
|
||||
err229 := argvalue0.Read(jsProt228)
|
||||
if err229 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -416,19 +416,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "PauseJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg228 := flag.Arg(1)
|
||||
mbTrans229 := thrift.NewTMemoryBufferLen(len(arg228))
|
||||
defer mbTrans229.Close()
|
||||
_, err230 := mbTrans229.WriteString(arg228)
|
||||
if err230 != nil {
|
||||
arg231 := flag.Arg(1)
|
||||
mbTrans232 := thrift.NewTMemoryBufferLen(len(arg231))
|
||||
defer mbTrans232.Close()
|
||||
_, err233 := mbTrans232.WriteString(arg231)
|
||||
if err233 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory231 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt232 := factory231.GetProtocol(mbTrans229)
|
||||
factory234 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt235 := factory234.GetProtocol(mbTrans232)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err233 := argvalue0.Read(jsProt232)
|
||||
if err233 != nil {
|
||||
err236 := argvalue0.Read(jsProt235)
|
||||
if err236 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -443,19 +443,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "ResumeJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg235 := flag.Arg(1)
|
||||
mbTrans236 := thrift.NewTMemoryBufferLen(len(arg235))
|
||||
defer mbTrans236.Close()
|
||||
_, err237 := mbTrans236.WriteString(arg235)
|
||||
if err237 != nil {
|
||||
arg238 := flag.Arg(1)
|
||||
mbTrans239 := thrift.NewTMemoryBufferLen(len(arg238))
|
||||
defer mbTrans239.Close()
|
||||
_, err240 := mbTrans239.WriteString(arg238)
|
||||
if err240 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory238 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt239 := factory238.GetProtocol(mbTrans236)
|
||||
factory241 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt242 := factory241.GetProtocol(mbTrans239)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err240 := argvalue0.Read(jsProt239)
|
||||
if err240 != nil {
|
||||
err243 := argvalue0.Read(jsProt242)
|
||||
if err243 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -470,19 +470,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "AbortJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg242 := flag.Arg(1)
|
||||
mbTrans243 := thrift.NewTMemoryBufferLen(len(arg242))
|
||||
defer mbTrans243.Close()
|
||||
_, err244 := mbTrans243.WriteString(arg242)
|
||||
if err244 != nil {
|
||||
arg245 := flag.Arg(1)
|
||||
mbTrans246 := thrift.NewTMemoryBufferLen(len(arg245))
|
||||
defer mbTrans246.Close()
|
||||
_, err247 := mbTrans246.WriteString(arg245)
|
||||
if err247 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory245 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt246 := factory245.GetProtocol(mbTrans243)
|
||||
factory248 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt249 := factory248.GetProtocol(mbTrans246)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err247 := argvalue0.Read(jsProt246)
|
||||
if err247 != nil {
|
||||
err250 := argvalue0.Read(jsProt249)
|
||||
if err250 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -497,19 +497,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "RollbackJobUpdate requires 2 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg249 := flag.Arg(1)
|
||||
mbTrans250 := thrift.NewTMemoryBufferLen(len(arg249))
|
||||
defer mbTrans250.Close()
|
||||
_, err251 := mbTrans250.WriteString(arg249)
|
||||
if err251 != nil {
|
||||
arg252 := flag.Arg(1)
|
||||
mbTrans253 := thrift.NewTMemoryBufferLen(len(arg252))
|
||||
defer mbTrans253.Close()
|
||||
_, err254 := mbTrans253.WriteString(arg252)
|
||||
if err254 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory252 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt253 := factory252.GetProtocol(mbTrans250)
|
||||
factory255 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt256 := factory255.GetProtocol(mbTrans253)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err254 := argvalue0.Read(jsProt253)
|
||||
if err254 != nil {
|
||||
err257 := argvalue0.Read(jsProt256)
|
||||
if err257 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -524,19 +524,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "PulseJobUpdate requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg256 := flag.Arg(1)
|
||||
mbTrans257 := thrift.NewTMemoryBufferLen(len(arg256))
|
||||
defer mbTrans257.Close()
|
||||
_, err258 := mbTrans257.WriteString(arg256)
|
||||
if err258 != nil {
|
||||
arg259 := flag.Arg(1)
|
||||
mbTrans260 := thrift.NewTMemoryBufferLen(len(arg259))
|
||||
defer mbTrans260.Close()
|
||||
_, err261 := mbTrans260.WriteString(arg259)
|
||||
if err261 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory259 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt260 := factory259.GetProtocol(mbTrans257)
|
||||
factory262 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt263 := factory262.GetProtocol(mbTrans260)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err261 := argvalue0.Read(jsProt260)
|
||||
if err261 != nil {
|
||||
err264 := argvalue0.Read(jsProt263)
|
||||
if err264 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -567,19 +567,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetTasksStatus requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg263 := flag.Arg(1)
|
||||
mbTrans264 := thrift.NewTMemoryBufferLen(len(arg263))
|
||||
defer mbTrans264.Close()
|
||||
_, err265 := mbTrans264.WriteString(arg263)
|
||||
if err265 != nil {
|
||||
arg266 := flag.Arg(1)
|
||||
mbTrans267 := thrift.NewTMemoryBufferLen(len(arg266))
|
||||
defer mbTrans267.Close()
|
||||
_, err268 := mbTrans267.WriteString(arg266)
|
||||
if err268 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory266 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt267 := factory266.GetProtocol(mbTrans264)
|
||||
factory269 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt270 := factory269.GetProtocol(mbTrans267)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err268 := argvalue0.Read(jsProt267)
|
||||
if err268 != nil {
|
||||
err271 := argvalue0.Read(jsProt270)
|
||||
if err271 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -592,19 +592,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetTasksWithoutConfigs requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg269 := flag.Arg(1)
|
||||
mbTrans270 := thrift.NewTMemoryBufferLen(len(arg269))
|
||||
defer mbTrans270.Close()
|
||||
_, err271 := mbTrans270.WriteString(arg269)
|
||||
if err271 != nil {
|
||||
arg272 := flag.Arg(1)
|
||||
mbTrans273 := thrift.NewTMemoryBufferLen(len(arg272))
|
||||
defer mbTrans273.Close()
|
||||
_, err274 := mbTrans273.WriteString(arg272)
|
||||
if err274 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory272 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt273 := factory272.GetProtocol(mbTrans270)
|
||||
factory275 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt276 := factory275.GetProtocol(mbTrans273)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err274 := argvalue0.Read(jsProt273)
|
||||
if err274 != nil {
|
||||
err277 := argvalue0.Read(jsProt276)
|
||||
if err277 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -617,19 +617,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetPendingReason requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg275 := flag.Arg(1)
|
||||
mbTrans276 := thrift.NewTMemoryBufferLen(len(arg275))
|
||||
defer mbTrans276.Close()
|
||||
_, err277 := mbTrans276.WriteString(arg275)
|
||||
if err277 != nil {
|
||||
arg278 := flag.Arg(1)
|
||||
mbTrans279 := thrift.NewTMemoryBufferLen(len(arg278))
|
||||
defer mbTrans279.Close()
|
||||
_, err280 := mbTrans279.WriteString(arg278)
|
||||
if err280 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory278 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt279 := factory278.GetProtocol(mbTrans276)
|
||||
factory281 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt282 := factory281.GetProtocol(mbTrans279)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err280 := argvalue0.Read(jsProt279)
|
||||
if err280 != nil {
|
||||
err283 := argvalue0.Read(jsProt282)
|
||||
if err283 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -642,19 +642,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetConfigSummary requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg281 := flag.Arg(1)
|
||||
mbTrans282 := thrift.NewTMemoryBufferLen(len(arg281))
|
||||
defer mbTrans282.Close()
|
||||
_, err283 := mbTrans282.WriteString(arg281)
|
||||
if err283 != nil {
|
||||
arg284 := flag.Arg(1)
|
||||
mbTrans285 := thrift.NewTMemoryBufferLen(len(arg284))
|
||||
defer mbTrans285.Close()
|
||||
_, err286 := mbTrans285.WriteString(arg284)
|
||||
if err286 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory284 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt285 := factory284.GetProtocol(mbTrans282)
|
||||
factory287 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt288 := factory287.GetProtocol(mbTrans285)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err286 := argvalue0.Read(jsProt285)
|
||||
if err286 != nil {
|
||||
err289 := argvalue0.Read(jsProt288)
|
||||
if err289 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -687,19 +687,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "PopulateJobConfig requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg289 := flag.Arg(1)
|
||||
mbTrans290 := thrift.NewTMemoryBufferLen(len(arg289))
|
||||
defer mbTrans290.Close()
|
||||
_, err291 := mbTrans290.WriteString(arg289)
|
||||
if err291 != nil {
|
||||
arg292 := flag.Arg(1)
|
||||
mbTrans293 := thrift.NewTMemoryBufferLen(len(arg292))
|
||||
defer mbTrans293.Close()
|
||||
_, err294 := mbTrans293.WriteString(arg292)
|
||||
if err294 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory292 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt293 := factory292.GetProtocol(mbTrans290)
|
||||
factory295 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt296 := factory295.GetProtocol(mbTrans293)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err294 := argvalue0.Read(jsProt293)
|
||||
if err294 != nil {
|
||||
err297 := argvalue0.Read(jsProt296)
|
||||
if err297 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -712,19 +712,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateSummaries requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg295 := flag.Arg(1)
|
||||
mbTrans296 := thrift.NewTMemoryBufferLen(len(arg295))
|
||||
defer mbTrans296.Close()
|
||||
_, err297 := mbTrans296.WriteString(arg295)
|
||||
if err297 != nil {
|
||||
arg298 := flag.Arg(1)
|
||||
mbTrans299 := thrift.NewTMemoryBufferLen(len(arg298))
|
||||
defer mbTrans299.Close()
|
||||
_, err300 := mbTrans299.WriteString(arg298)
|
||||
if err300 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory298 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt299 := factory298.GetProtocol(mbTrans296)
|
||||
factory301 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt302 := factory301.GetProtocol(mbTrans299)
|
||||
argvalue0 := aurora.NewJobUpdateQuery()
|
||||
err300 := argvalue0.Read(jsProt299)
|
||||
if err300 != nil {
|
||||
err303 := argvalue0.Read(jsProt302)
|
||||
if err303 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -737,19 +737,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateDetails requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg301 := flag.Arg(1)
|
||||
mbTrans302 := thrift.NewTMemoryBufferLen(len(arg301))
|
||||
defer mbTrans302.Close()
|
||||
_, err303 := mbTrans302.WriteString(arg301)
|
||||
if err303 != nil {
|
||||
arg304 := flag.Arg(1)
|
||||
mbTrans305 := thrift.NewTMemoryBufferLen(len(arg304))
|
||||
defer mbTrans305.Close()
|
||||
_, err306 := mbTrans305.WriteString(arg304)
|
||||
if err306 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory304 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt305 := factory304.GetProtocol(mbTrans302)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err306 := argvalue0.Read(jsProt305)
|
||||
if err306 != nil {
|
||||
factory307 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt308 := factory307.GetProtocol(mbTrans305)
|
||||
argvalue0 := aurora.NewJobUpdateQuery()
|
||||
err309 := argvalue0.Read(jsProt308)
|
||||
if err309 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -762,19 +762,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateDiff requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg307 := flag.Arg(1)
|
||||
mbTrans308 := thrift.NewTMemoryBufferLen(len(arg307))
|
||||
defer mbTrans308.Close()
|
||||
_, err309 := mbTrans308.WriteString(arg307)
|
||||
if err309 != nil {
|
||||
arg310 := flag.Arg(1)
|
||||
mbTrans311 := thrift.NewTMemoryBufferLen(len(arg310))
|
||||
defer mbTrans311.Close()
|
||||
_, err312 := mbTrans311.WriteString(arg310)
|
||||
if err312 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory310 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt311 := factory310.GetProtocol(mbTrans308)
|
||||
factory313 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt314 := factory313.GetProtocol(mbTrans311)
|
||||
argvalue0 := aurora.NewJobUpdateRequest()
|
||||
err312 := argvalue0.Read(jsProt311)
|
||||
if err312 != nil {
|
||||
err315 := argvalue0.Read(jsProt314)
|
||||
if err315 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
|
|
@ -85,6 +85,13 @@ type AuroraAdmin interface {
|
|||
// Parameters:
|
||||
// - Request
|
||||
RewriteConfigs(request *RewriteConfigsRequest) (r *Response, err error)
|
||||
// Tell scheduler to trigger an explicit task reconciliation with the given settings.
|
||||
//
|
||||
// Parameters:
|
||||
// - Settings
|
||||
TriggerExplicitTaskReconciliation(settings *ExplicitReconciliationSettings) (r *Response, err error)
|
||||
// Tell scheduler to trigger an implicit task reconciliation.
|
||||
TriggerImplicitTaskReconciliation() (r *Response, err error)
|
||||
}
|
||||
|
||||
type AuroraAdminClient struct {
|
||||
|
@ -153,16 +160,16 @@ func (p *AuroraAdminClient) recvSetQuota() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error313 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error314 error
|
||||
error314, err = error313.Read(iprot)
|
||||
error316 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error317 error
|
||||
error317, err = error316.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error314
|
||||
err = error317
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -236,16 +243,16 @@ func (p *AuroraAdminClient) recvForceTaskState() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error315 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error316 error
|
||||
error316, err = error315.Read(iprot)
|
||||
error318 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error319 error
|
||||
error319, err = error318.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error316
|
||||
err = error319
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -310,16 +317,16 @@ func (p *AuroraAdminClient) recvPerformBackup() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error317 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error318 error
|
||||
error318, err = error317.Read(iprot)
|
||||
error320 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error321 error
|
||||
error321, err = error320.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error318
|
||||
err = error321
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -384,16 +391,16 @@ func (p *AuroraAdminClient) recvListBackups() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error319 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error320 error
|
||||
error320, err = error319.Read(iprot)
|
||||
error322 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error323 error
|
||||
error323, err = error322.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error320
|
||||
err = error323
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -463,16 +470,16 @@ func (p *AuroraAdminClient) recvStageRecovery() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error321 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error322 error
|
||||
error322, err = error321.Read(iprot)
|
||||
error324 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error325 error
|
||||
error325, err = error324.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error322
|
||||
err = error325
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -542,16 +549,16 @@ func (p *AuroraAdminClient) recvQueryRecovery() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error323 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error324 error
|
||||
error324, err = error323.Read(iprot)
|
||||
error326 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error327 error
|
||||
error327, err = error326.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error324
|
||||
err = error327
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -621,16 +628,16 @@ func (p *AuroraAdminClient) recvDeleteRecoveryTasks() (value *Response, err erro
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error325 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error326 error
|
||||
error326, err = error325.Read(iprot)
|
||||
error328 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error329 error
|
||||
error329, err = error328.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error326
|
||||
err = error329
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -695,16 +702,16 @@ func (p *AuroraAdminClient) recvCommitRecovery() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error327 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error328 error
|
||||
error328, err = error327.Read(iprot)
|
||||
error330 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error331 error
|
||||
error331, err = error330.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error328
|
||||
err = error331
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -769,16 +776,16 @@ func (p *AuroraAdminClient) recvUnloadRecovery() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error329 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error330 error
|
||||
error330, err = error329.Read(iprot)
|
||||
error332 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error333 error
|
||||
error333, err = error332.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error330
|
||||
err = error333
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -848,16 +855,16 @@ func (p *AuroraAdminClient) recvStartMaintenance() (value *Response, err error)
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error331 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error332 error
|
||||
error332, err = error331.Read(iprot)
|
||||
error334 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error335 error
|
||||
error335, err = error334.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error332
|
||||
err = error335
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -927,16 +934,16 @@ func (p *AuroraAdminClient) recvDrainHosts() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error333 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error334 error
|
||||
error334, err = error333.Read(iprot)
|
||||
error336 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error337 error
|
||||
error337, err = error336.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error334
|
||||
err = error337
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1006,16 +1013,16 @@ func (p *AuroraAdminClient) recvMaintenanceStatus() (value *Response, err error)
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error335 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error336 error
|
||||
error336, err = error335.Read(iprot)
|
||||
error338 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error339 error
|
||||
error339, err = error338.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error336
|
||||
err = error339
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1085,16 +1092,16 @@ func (p *AuroraAdminClient) recvEndMaintenance() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error337 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error338 error
|
||||
error338, err = error337.Read(iprot)
|
||||
error340 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error341 error
|
||||
error341, err = error340.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error338
|
||||
err = error341
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1159,16 +1166,16 @@ func (p *AuroraAdminClient) recvSnapshot() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error339 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error340 error
|
||||
error340, err = error339.Read(iprot)
|
||||
error342 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error343 error
|
||||
error343, err = error342.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error340
|
||||
err = error343
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1242,16 +1249,16 @@ func (p *AuroraAdminClient) recvRewriteConfigs() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error341 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error342 error
|
||||
error342, err = error341.Read(iprot)
|
||||
error344 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error345 error
|
||||
error345, err = error344.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error342
|
||||
err = error345
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1269,28 +1276,183 @@ func (p *AuroraAdminClient) recvRewriteConfigs() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
// Tell scheduler to trigger an explicit task reconciliation with the given settings.
|
||||
//
|
||||
// Parameters:
|
||||
// - Settings
|
||||
func (p *AuroraAdminClient) TriggerExplicitTaskReconciliation(settings *ExplicitReconciliationSettings) (r *Response, err error) {
|
||||
if err = p.sendTriggerExplicitTaskReconciliation(settings); err != nil {
|
||||
return
|
||||
}
|
||||
return p.recvTriggerExplicitTaskReconciliation()
|
||||
}
|
||||
|
||||
func (p *AuroraAdminClient) sendTriggerExplicitTaskReconciliation(settings *ExplicitReconciliationSettings) (err error) {
|
||||
oprot := p.OutputProtocol
|
||||
if oprot == nil {
|
||||
oprot = p.ProtocolFactory.GetProtocol(p.Transport)
|
||||
p.OutputProtocol = oprot
|
||||
}
|
||||
p.SeqId++
|
||||
if err = oprot.WriteMessageBegin("triggerExplicitTaskReconciliation", thrift.CALL, p.SeqId); err != nil {
|
||||
return
|
||||
}
|
||||
args := AuroraAdminTriggerExplicitTaskReconciliationArgs{
|
||||
Settings: settings,
|
||||
}
|
||||
if err = args.Write(oprot); err != nil {
|
||||
return
|
||||
}
|
||||
if err = oprot.WriteMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
return oprot.Flush()
|
||||
}
|
||||
|
||||
func (p *AuroraAdminClient) recvTriggerExplicitTaskReconciliation() (value *Response, 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 != "triggerExplicitTaskReconciliation" {
|
||||
err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "triggerExplicitTaskReconciliation failed: wrong method name")
|
||||
return
|
||||
}
|
||||
if p.SeqId != seqId {
|
||||
err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "triggerExplicitTaskReconciliation failed: out of sequence response")
|
||||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error346 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error347 error
|
||||
error347, err = error346.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error347
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "triggerExplicitTaskReconciliation failed: invalid message type")
|
||||
return
|
||||
}
|
||||
result := AuroraAdminTriggerExplicitTaskReconciliationResult{}
|
||||
if err = result.Read(iprot); err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
value = result.GetSuccess()
|
||||
return
|
||||
}
|
||||
|
||||
// Tell scheduler to trigger an implicit task reconciliation.
|
||||
func (p *AuroraAdminClient) TriggerImplicitTaskReconciliation() (r *Response, err error) {
|
||||
if err = p.sendTriggerImplicitTaskReconciliation(); err != nil {
|
||||
return
|
||||
}
|
||||
return p.recvTriggerImplicitTaskReconciliation()
|
||||
}
|
||||
|
||||
func (p *AuroraAdminClient) sendTriggerImplicitTaskReconciliation() (err error) {
|
||||
oprot := p.OutputProtocol
|
||||
if oprot == nil {
|
||||
oprot = p.ProtocolFactory.GetProtocol(p.Transport)
|
||||
p.OutputProtocol = oprot
|
||||
}
|
||||
p.SeqId++
|
||||
if err = oprot.WriteMessageBegin("triggerImplicitTaskReconciliation", thrift.CALL, p.SeqId); err != nil {
|
||||
return
|
||||
}
|
||||
args := AuroraAdminTriggerImplicitTaskReconciliationArgs{}
|
||||
if err = args.Write(oprot); err != nil {
|
||||
return
|
||||
}
|
||||
if err = oprot.WriteMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
return oprot.Flush()
|
||||
}
|
||||
|
||||
func (p *AuroraAdminClient) recvTriggerImplicitTaskReconciliation() (value *Response, 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 != "triggerImplicitTaskReconciliation" {
|
||||
err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "triggerImplicitTaskReconciliation failed: wrong method name")
|
||||
return
|
||||
}
|
||||
if p.SeqId != seqId {
|
||||
err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "triggerImplicitTaskReconciliation failed: out of sequence response")
|
||||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error348 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error349 error
|
||||
error349, err = error348.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error349
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "triggerImplicitTaskReconciliation failed: invalid message type")
|
||||
return
|
||||
}
|
||||
result := AuroraAdminTriggerImplicitTaskReconciliationResult{}
|
||||
if err = result.Read(iprot); err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
value = result.GetSuccess()
|
||||
return
|
||||
}
|
||||
|
||||
type AuroraAdminProcessor struct {
|
||||
*AuroraSchedulerManagerProcessor
|
||||
}
|
||||
|
||||
func NewAuroraAdminProcessor(handler AuroraAdmin) *AuroraAdminProcessor {
|
||||
self343 := &AuroraAdminProcessor{NewAuroraSchedulerManagerProcessor(handler)}
|
||||
self343.AddToProcessorMap("setQuota", &auroraAdminProcessorSetQuota{handler: handler})
|
||||
self343.AddToProcessorMap("forceTaskState", &auroraAdminProcessorForceTaskState{handler: handler})
|
||||
self343.AddToProcessorMap("performBackup", &auroraAdminProcessorPerformBackup{handler: handler})
|
||||
self343.AddToProcessorMap("listBackups", &auroraAdminProcessorListBackups{handler: handler})
|
||||
self343.AddToProcessorMap("stageRecovery", &auroraAdminProcessorStageRecovery{handler: handler})
|
||||
self343.AddToProcessorMap("queryRecovery", &auroraAdminProcessorQueryRecovery{handler: handler})
|
||||
self343.AddToProcessorMap("deleteRecoveryTasks", &auroraAdminProcessorDeleteRecoveryTasks{handler: handler})
|
||||
self343.AddToProcessorMap("commitRecovery", &auroraAdminProcessorCommitRecovery{handler: handler})
|
||||
self343.AddToProcessorMap("unloadRecovery", &auroraAdminProcessorUnloadRecovery{handler: handler})
|
||||
self343.AddToProcessorMap("startMaintenance", &auroraAdminProcessorStartMaintenance{handler: handler})
|
||||
self343.AddToProcessorMap("drainHosts", &auroraAdminProcessorDrainHosts{handler: handler})
|
||||
self343.AddToProcessorMap("maintenanceStatus", &auroraAdminProcessorMaintenanceStatus{handler: handler})
|
||||
self343.AddToProcessorMap("endMaintenance", &auroraAdminProcessorEndMaintenance{handler: handler})
|
||||
self343.AddToProcessorMap("snapshot", &auroraAdminProcessorSnapshot{handler: handler})
|
||||
self343.AddToProcessorMap("rewriteConfigs", &auroraAdminProcessorRewriteConfigs{handler: handler})
|
||||
return self343
|
||||
self350 := &AuroraAdminProcessor{NewAuroraSchedulerManagerProcessor(handler)}
|
||||
self350.AddToProcessorMap("setQuota", &auroraAdminProcessorSetQuota{handler: handler})
|
||||
self350.AddToProcessorMap("forceTaskState", &auroraAdminProcessorForceTaskState{handler: handler})
|
||||
self350.AddToProcessorMap("performBackup", &auroraAdminProcessorPerformBackup{handler: handler})
|
||||
self350.AddToProcessorMap("listBackups", &auroraAdminProcessorListBackups{handler: handler})
|
||||
self350.AddToProcessorMap("stageRecovery", &auroraAdminProcessorStageRecovery{handler: handler})
|
||||
self350.AddToProcessorMap("queryRecovery", &auroraAdminProcessorQueryRecovery{handler: handler})
|
||||
self350.AddToProcessorMap("deleteRecoveryTasks", &auroraAdminProcessorDeleteRecoveryTasks{handler: handler})
|
||||
self350.AddToProcessorMap("commitRecovery", &auroraAdminProcessorCommitRecovery{handler: handler})
|
||||
self350.AddToProcessorMap("unloadRecovery", &auroraAdminProcessorUnloadRecovery{handler: handler})
|
||||
self350.AddToProcessorMap("startMaintenance", &auroraAdminProcessorStartMaintenance{handler: handler})
|
||||
self350.AddToProcessorMap("drainHosts", &auroraAdminProcessorDrainHosts{handler: handler})
|
||||
self350.AddToProcessorMap("maintenanceStatus", &auroraAdminProcessorMaintenanceStatus{handler: handler})
|
||||
self350.AddToProcessorMap("endMaintenance", &auroraAdminProcessorEndMaintenance{handler: handler})
|
||||
self350.AddToProcessorMap("snapshot", &auroraAdminProcessorSnapshot{handler: handler})
|
||||
self350.AddToProcessorMap("rewriteConfigs", &auroraAdminProcessorRewriteConfigs{handler: handler})
|
||||
self350.AddToProcessorMap("triggerExplicitTaskReconciliation", &auroraAdminProcessorTriggerExplicitTaskReconciliation{handler: handler})
|
||||
self350.AddToProcessorMap("triggerImplicitTaskReconciliation", &auroraAdminProcessorTriggerImplicitTaskReconciliation{handler: handler})
|
||||
return self350
|
||||
}
|
||||
|
||||
type auroraAdminProcessorSetQuota struct {
|
||||
|
@ -2013,6 +2175,102 @@ func (p *auroraAdminProcessorRewriteConfigs) Process(seqId int32, iprot, oprot t
|
|||
return true, err
|
||||
}
|
||||
|
||||
type auroraAdminProcessorTriggerExplicitTaskReconciliation struct {
|
||||
handler AuroraAdmin
|
||||
}
|
||||
|
||||
func (p *auroraAdminProcessorTriggerExplicitTaskReconciliation) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
|
||||
args := AuroraAdminTriggerExplicitTaskReconciliationArgs{}
|
||||
if err = args.Read(iprot); err != nil {
|
||||
iprot.ReadMessageEnd()
|
||||
x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
|
||||
oprot.WriteMessageBegin("triggerExplicitTaskReconciliation", thrift.EXCEPTION, seqId)
|
||||
x.Write(oprot)
|
||||
oprot.WriteMessageEnd()
|
||||
oprot.Flush()
|
||||
return false, err
|
||||
}
|
||||
|
||||
iprot.ReadMessageEnd()
|
||||
result := AuroraAdminTriggerExplicitTaskReconciliationResult{}
|
||||
var retval *Response
|
||||
var err2 error
|
||||
if retval, err2 = p.handler.TriggerExplicitTaskReconciliation(args.Settings); err2 != nil {
|
||||
x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing triggerExplicitTaskReconciliation: "+err2.Error())
|
||||
oprot.WriteMessageBegin("triggerExplicitTaskReconciliation", thrift.EXCEPTION, seqId)
|
||||
x.Write(oprot)
|
||||
oprot.WriteMessageEnd()
|
||||
oprot.Flush()
|
||||
return true, err2
|
||||
} else {
|
||||
result.Success = retval
|
||||
}
|
||||
if err2 = oprot.WriteMessageBegin("triggerExplicitTaskReconciliation", thrift.REPLY, seqId); err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err2 = result.Write(oprot); err == nil && err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err2 = oprot.Flush(); err == nil && err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
return true, err
|
||||
}
|
||||
|
||||
type auroraAdminProcessorTriggerImplicitTaskReconciliation struct {
|
||||
handler AuroraAdmin
|
||||
}
|
||||
|
||||
func (p *auroraAdminProcessorTriggerImplicitTaskReconciliation) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
|
||||
args := AuroraAdminTriggerImplicitTaskReconciliationArgs{}
|
||||
if err = args.Read(iprot); err != nil {
|
||||
iprot.ReadMessageEnd()
|
||||
x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
|
||||
oprot.WriteMessageBegin("triggerImplicitTaskReconciliation", thrift.EXCEPTION, seqId)
|
||||
x.Write(oprot)
|
||||
oprot.WriteMessageEnd()
|
||||
oprot.Flush()
|
||||
return false, err
|
||||
}
|
||||
|
||||
iprot.ReadMessageEnd()
|
||||
result := AuroraAdminTriggerImplicitTaskReconciliationResult{}
|
||||
var retval *Response
|
||||
var err2 error
|
||||
if retval, err2 = p.handler.TriggerImplicitTaskReconciliation(); err2 != nil {
|
||||
x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing triggerImplicitTaskReconciliation: "+err2.Error())
|
||||
oprot.WriteMessageBegin("triggerImplicitTaskReconciliation", thrift.EXCEPTION, seqId)
|
||||
x.Write(oprot)
|
||||
oprot.WriteMessageEnd()
|
||||
oprot.Flush()
|
||||
return true, err2
|
||||
} else {
|
||||
result.Success = retval
|
||||
}
|
||||
if err2 = oprot.WriteMessageBegin("triggerImplicitTaskReconciliation", thrift.REPLY, seqId); err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err2 = result.Write(oprot); err == nil && err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err2 = oprot.Flush(); err == nil && err2 != nil {
|
||||
err = err2
|
||||
}
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
return true, err
|
||||
}
|
||||
|
||||
// HELPER FUNCTIONS AND STRUCTURES
|
||||
|
||||
// Attributes:
|
||||
|
@ -4839,3 +5097,357 @@ func (p *AuroraAdminRewriteConfigsResult) String() string {
|
|||
}
|
||||
return fmt.Sprintf("AuroraAdminRewriteConfigsResult(%+v)", *p)
|
||||
}
|
||||
|
||||
// Attributes:
|
||||
// - Settings
|
||||
type AuroraAdminTriggerExplicitTaskReconciliationArgs struct {
|
||||
Settings *ExplicitReconciliationSettings `thrift:"settings,1" json:"settings"`
|
||||
}
|
||||
|
||||
func NewAuroraAdminTriggerExplicitTaskReconciliationArgs() *AuroraAdminTriggerExplicitTaskReconciliationArgs {
|
||||
return &AuroraAdminTriggerExplicitTaskReconciliationArgs{}
|
||||
}
|
||||
|
||||
var AuroraAdminTriggerExplicitTaskReconciliationArgs_Settings_DEFAULT *ExplicitReconciliationSettings
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationArgs) GetSettings() *ExplicitReconciliationSettings {
|
||||
if !p.IsSetSettings() {
|
||||
return AuroraAdminTriggerExplicitTaskReconciliationArgs_Settings_DEFAULT
|
||||
}
|
||||
return p.Settings
|
||||
}
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationArgs) IsSetSettings() bool {
|
||||
return p.Settings != nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationArgs) Read(iprot thrift.TProtocol) error {
|
||||
if _, err := iprot.ReadStructBegin(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
|
||||
}
|
||||
|
||||
for {
|
||||
_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
|
||||
if err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
|
||||
}
|
||||
if fieldTypeId == thrift.STOP {
|
||||
break
|
||||
}
|
||||
switch fieldId {
|
||||
case 1:
|
||||
if err := p.readField1(iprot); err != nil {
|
||||
return err
|
||||
}
|
||||
default:
|
||||
if err := iprot.Skip(fieldTypeId); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err := iprot.ReadFieldEnd(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err := iprot.ReadStructEnd(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationArgs) readField1(iprot thrift.TProtocol) error {
|
||||
p.Settings = &ExplicitReconciliationSettings{}
|
||||
if err := p.Settings.Read(iprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Settings), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationArgs) Write(oprot thrift.TProtocol) error {
|
||||
if err := oprot.WriteStructBegin("triggerExplicitTaskReconciliation_args"); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
|
||||
}
|
||||
if err := p.writeField1(oprot); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := oprot.WriteFieldStop(); err != nil {
|
||||
return thrift.PrependError("write field stop error: ", err)
|
||||
}
|
||||
if err := oprot.WriteStructEnd(); err != nil {
|
||||
return thrift.PrependError("write struct stop error: ", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationArgs) writeField1(oprot thrift.TProtocol) (err error) {
|
||||
if err := oprot.WriteFieldBegin("settings", thrift.STRUCT, 1); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:settings: ", p), err)
|
||||
}
|
||||
if err := p.Settings.Write(oprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Settings), err)
|
||||
}
|
||||
if err := oprot.WriteFieldEnd(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field end error 1:settings: ", p), err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationArgs) String() string {
|
||||
if p == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return fmt.Sprintf("AuroraAdminTriggerExplicitTaskReconciliationArgs(%+v)", *p)
|
||||
}
|
||||
|
||||
// Attributes:
|
||||
// - Success
|
||||
type AuroraAdminTriggerExplicitTaskReconciliationResult struct {
|
||||
Success *Response `thrift:"success,0" json:"success,omitempty"`
|
||||
}
|
||||
|
||||
func NewAuroraAdminTriggerExplicitTaskReconciliationResult() *AuroraAdminTriggerExplicitTaskReconciliationResult {
|
||||
return &AuroraAdminTriggerExplicitTaskReconciliationResult{}
|
||||
}
|
||||
|
||||
var AuroraAdminTriggerExplicitTaskReconciliationResult_Success_DEFAULT *Response
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationResult) GetSuccess() *Response {
|
||||
if !p.IsSetSuccess() {
|
||||
return AuroraAdminTriggerExplicitTaskReconciliationResult_Success_DEFAULT
|
||||
}
|
||||
return p.Success
|
||||
}
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationResult) IsSetSuccess() bool {
|
||||
return p.Success != nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationResult) Read(iprot thrift.TProtocol) error {
|
||||
if _, err := iprot.ReadStructBegin(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
|
||||
}
|
||||
|
||||
for {
|
||||
_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
|
||||
if err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
|
||||
}
|
||||
if fieldTypeId == thrift.STOP {
|
||||
break
|
||||
}
|
||||
switch fieldId {
|
||||
case 0:
|
||||
if err := p.readField0(iprot); err != nil {
|
||||
return err
|
||||
}
|
||||
default:
|
||||
if err := iprot.Skip(fieldTypeId); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err := iprot.ReadFieldEnd(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err := iprot.ReadStructEnd(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationResult) readField0(iprot thrift.TProtocol) error {
|
||||
p.Success = &Response{}
|
||||
if err := p.Success.Read(iprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationResult) Write(oprot thrift.TProtocol) error {
|
||||
if err := oprot.WriteStructBegin("triggerExplicitTaskReconciliation_result"); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
|
||||
}
|
||||
if err := p.writeField0(oprot); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := oprot.WriteFieldStop(); err != nil {
|
||||
return thrift.PrependError("write field stop error: ", err)
|
||||
}
|
||||
if err := oprot.WriteStructEnd(); err != nil {
|
||||
return thrift.PrependError("write struct stop error: ", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationResult) writeField0(oprot thrift.TProtocol) (err error) {
|
||||
if p.IsSetSuccess() {
|
||||
if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
|
||||
}
|
||||
if err := p.Success.Write(oprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
|
||||
}
|
||||
if err := oprot.WriteFieldEnd(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
|
||||
}
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerExplicitTaskReconciliationResult) String() string {
|
||||
if p == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return fmt.Sprintf("AuroraAdminTriggerExplicitTaskReconciliationResult(%+v)", *p)
|
||||
}
|
||||
|
||||
type AuroraAdminTriggerImplicitTaskReconciliationArgs struct {
|
||||
}
|
||||
|
||||
func NewAuroraAdminTriggerImplicitTaskReconciliationArgs() *AuroraAdminTriggerImplicitTaskReconciliationArgs {
|
||||
return &AuroraAdminTriggerImplicitTaskReconciliationArgs{}
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationArgs) Read(iprot thrift.TProtocol) error {
|
||||
if _, err := iprot.ReadStructBegin(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
|
||||
}
|
||||
|
||||
for {
|
||||
_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
|
||||
if err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
|
||||
}
|
||||
if fieldTypeId == thrift.STOP {
|
||||
break
|
||||
}
|
||||
if err := iprot.Skip(fieldTypeId); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := iprot.ReadFieldEnd(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err := iprot.ReadStructEnd(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationArgs) Write(oprot thrift.TProtocol) error {
|
||||
if err := oprot.WriteStructBegin("triggerImplicitTaskReconciliation_args"); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
|
||||
}
|
||||
if err := oprot.WriteFieldStop(); err != nil {
|
||||
return thrift.PrependError("write field stop error: ", err)
|
||||
}
|
||||
if err := oprot.WriteStructEnd(); err != nil {
|
||||
return thrift.PrependError("write struct stop error: ", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationArgs) String() string {
|
||||
if p == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return fmt.Sprintf("AuroraAdminTriggerImplicitTaskReconciliationArgs(%+v)", *p)
|
||||
}
|
||||
|
||||
// Attributes:
|
||||
// - Success
|
||||
type AuroraAdminTriggerImplicitTaskReconciliationResult struct {
|
||||
Success *Response `thrift:"success,0" json:"success,omitempty"`
|
||||
}
|
||||
|
||||
func NewAuroraAdminTriggerImplicitTaskReconciliationResult() *AuroraAdminTriggerImplicitTaskReconciliationResult {
|
||||
return &AuroraAdminTriggerImplicitTaskReconciliationResult{}
|
||||
}
|
||||
|
||||
var AuroraAdminTriggerImplicitTaskReconciliationResult_Success_DEFAULT *Response
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationResult) GetSuccess() *Response {
|
||||
if !p.IsSetSuccess() {
|
||||
return AuroraAdminTriggerImplicitTaskReconciliationResult_Success_DEFAULT
|
||||
}
|
||||
return p.Success
|
||||
}
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationResult) IsSetSuccess() bool {
|
||||
return p.Success != nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationResult) Read(iprot thrift.TProtocol) error {
|
||||
if _, err := iprot.ReadStructBegin(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
|
||||
}
|
||||
|
||||
for {
|
||||
_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
|
||||
if err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
|
||||
}
|
||||
if fieldTypeId == thrift.STOP {
|
||||
break
|
||||
}
|
||||
switch fieldId {
|
||||
case 0:
|
||||
if err := p.readField0(iprot); err != nil {
|
||||
return err
|
||||
}
|
||||
default:
|
||||
if err := iprot.Skip(fieldTypeId); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err := iprot.ReadFieldEnd(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err := iprot.ReadStructEnd(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationResult) readField0(iprot thrift.TProtocol) error {
|
||||
p.Success = &Response{}
|
||||
if err := p.Success.Read(iprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationResult) Write(oprot thrift.TProtocol) error {
|
||||
if err := oprot.WriteStructBegin("triggerImplicitTaskReconciliation_result"); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
|
||||
}
|
||||
if err := p.writeField0(oprot); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := oprot.WriteFieldStop(); err != nil {
|
||||
return thrift.PrependError("write field stop error: ", err)
|
||||
}
|
||||
if err := oprot.WriteStructEnd(); err != nil {
|
||||
return thrift.PrependError("write struct stop error: ", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationResult) writeField0(oprot thrift.TProtocol) (err error) {
|
||||
if p.IsSetSuccess() {
|
||||
if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
|
||||
}
|
||||
if err := p.Success.Write(oprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
|
||||
}
|
||||
if err := oprot.WriteFieldEnd(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
|
||||
}
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (p *AuroraAdminTriggerImplicitTaskReconciliationResult) String() string {
|
||||
if p == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return fmt.Sprintf("AuroraAdminTriggerImplicitTaskReconciliationResult(%+v)", *p)
|
||||
}
|
||||
|
|
|
@ -170,16 +170,16 @@ func (p *AuroraSchedulerManagerClient) recvCreateJob() (value *Response, err err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error129 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error130 error
|
||||
error130, err = error129.Read(iprot)
|
||||
error132 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error133 error
|
||||
error133, err = error132.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error130
|
||||
err = error133
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -251,16 +251,16 @@ func (p *AuroraSchedulerManagerClient) recvScheduleCronJob() (value *Response, e
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error131 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error132 error
|
||||
error132, err = error131.Read(iprot)
|
||||
error134 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error135 error
|
||||
error135, err = error134.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error132
|
||||
err = error135
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -331,16 +331,16 @@ func (p *AuroraSchedulerManagerClient) recvDescheduleCronJob() (value *Response,
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error133 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error134 error
|
||||
error134, err = error133.Read(iprot)
|
||||
error136 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error137 error
|
||||
error137, err = error136.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error134
|
||||
err = error137
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -411,16 +411,16 @@ func (p *AuroraSchedulerManagerClient) recvStartCronJob() (value *Response, err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error135 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error136 error
|
||||
error136, err = error135.Read(iprot)
|
||||
error138 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error139 error
|
||||
error139, err = error138.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error136
|
||||
err = error139
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -492,16 +492,16 @@ func (p *AuroraSchedulerManagerClient) recvRestartShards() (value *Response, err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error137 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error138 error
|
||||
error138, err = error137.Read(iprot)
|
||||
error140 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error141 error
|
||||
error141, err = error140.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error138
|
||||
err = error141
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -573,16 +573,16 @@ func (p *AuroraSchedulerManagerClient) recvKillTasks() (value *Response, err err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error139 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error140 error
|
||||
error140, err = error139.Read(iprot)
|
||||
error142 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error143 error
|
||||
error143, err = error142.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error140
|
||||
err = error143
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -654,16 +654,16 @@ func (p *AuroraSchedulerManagerClient) recvAddInstances() (value *Response, err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error141 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error142 error
|
||||
error142, err = error141.Read(iprot)
|
||||
error144 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error145 error
|
||||
error145, err = error144.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error142
|
||||
err = error145
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -734,16 +734,16 @@ func (p *AuroraSchedulerManagerClient) recvReplaceCronTemplate() (value *Respons
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error143 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error144 error
|
||||
error144, err = error143.Read(iprot)
|
||||
error146 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error147 error
|
||||
error147, err = error146.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error144
|
||||
err = error147
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -815,16 +815,16 @@ func (p *AuroraSchedulerManagerClient) recvStartJobUpdate() (value *Response, er
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error145 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error146 error
|
||||
error146, err = error145.Read(iprot)
|
||||
error148 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error149 error
|
||||
error149, err = error148.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error146
|
||||
err = error149
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -896,16 +896,16 @@ func (p *AuroraSchedulerManagerClient) recvPauseJobUpdate() (value *Response, er
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error147 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error148 error
|
||||
error148, err = error147.Read(iprot)
|
||||
error150 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error151 error
|
||||
error151, err = error150.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error148
|
||||
err = error151
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -977,16 +977,16 @@ func (p *AuroraSchedulerManagerClient) recvResumeJobUpdate() (value *Response, e
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error149 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error150 error
|
||||
error150, err = error149.Read(iprot)
|
||||
error152 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error153 error
|
||||
error153, err = error152.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error150
|
||||
err = error153
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1058,16 +1058,16 @@ func (p *AuroraSchedulerManagerClient) recvAbortJobUpdate() (value *Response, er
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error151 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error152 error
|
||||
error152, err = error151.Read(iprot)
|
||||
error154 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error155 error
|
||||
error155, err = error154.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error152
|
||||
err = error155
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1139,16 +1139,16 @@ func (p *AuroraSchedulerManagerClient) recvRollbackJobUpdate() (value *Response,
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error153 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error154 error
|
||||
error154, err = error153.Read(iprot)
|
||||
error156 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error157 error
|
||||
error157, err = error156.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error154
|
||||
err = error157
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1220,16 +1220,16 @@ func (p *AuroraSchedulerManagerClient) recvPulseJobUpdate() (value *Response, er
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error155 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error156 error
|
||||
error156, err = error155.Read(iprot)
|
||||
error158 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error159 error
|
||||
error159, err = error158.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error156
|
||||
err = error159
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1252,22 +1252,22 @@ type AuroraSchedulerManagerProcessor struct {
|
|||
}
|
||||
|
||||
func NewAuroraSchedulerManagerProcessor(handler AuroraSchedulerManager) *AuroraSchedulerManagerProcessor {
|
||||
self157 := &AuroraSchedulerManagerProcessor{NewReadOnlySchedulerProcessor(handler)}
|
||||
self157.AddToProcessorMap("createJob", &auroraSchedulerManagerProcessorCreateJob{handler: handler})
|
||||
self157.AddToProcessorMap("scheduleCronJob", &auroraSchedulerManagerProcessorScheduleCronJob{handler: handler})
|
||||
self157.AddToProcessorMap("descheduleCronJob", &auroraSchedulerManagerProcessorDescheduleCronJob{handler: handler})
|
||||
self157.AddToProcessorMap("startCronJob", &auroraSchedulerManagerProcessorStartCronJob{handler: handler})
|
||||
self157.AddToProcessorMap("restartShards", &auroraSchedulerManagerProcessorRestartShards{handler: handler})
|
||||
self157.AddToProcessorMap("killTasks", &auroraSchedulerManagerProcessorKillTasks{handler: handler})
|
||||
self157.AddToProcessorMap("addInstances", &auroraSchedulerManagerProcessorAddInstances{handler: handler})
|
||||
self157.AddToProcessorMap("replaceCronTemplate", &auroraSchedulerManagerProcessorReplaceCronTemplate{handler: handler})
|
||||
self157.AddToProcessorMap("startJobUpdate", &auroraSchedulerManagerProcessorStartJobUpdate{handler: handler})
|
||||
self157.AddToProcessorMap("pauseJobUpdate", &auroraSchedulerManagerProcessorPauseJobUpdate{handler: handler})
|
||||
self157.AddToProcessorMap("resumeJobUpdate", &auroraSchedulerManagerProcessorResumeJobUpdate{handler: handler})
|
||||
self157.AddToProcessorMap("abortJobUpdate", &auroraSchedulerManagerProcessorAbortJobUpdate{handler: handler})
|
||||
self157.AddToProcessorMap("rollbackJobUpdate", &auroraSchedulerManagerProcessorRollbackJobUpdate{handler: handler})
|
||||
self157.AddToProcessorMap("pulseJobUpdate", &auroraSchedulerManagerProcessorPulseJobUpdate{handler: handler})
|
||||
return self157
|
||||
self160 := &AuroraSchedulerManagerProcessor{NewReadOnlySchedulerProcessor(handler)}
|
||||
self160.AddToProcessorMap("createJob", &auroraSchedulerManagerProcessorCreateJob{handler: handler})
|
||||
self160.AddToProcessorMap("scheduleCronJob", &auroraSchedulerManagerProcessorScheduleCronJob{handler: handler})
|
||||
self160.AddToProcessorMap("descheduleCronJob", &auroraSchedulerManagerProcessorDescheduleCronJob{handler: handler})
|
||||
self160.AddToProcessorMap("startCronJob", &auroraSchedulerManagerProcessorStartCronJob{handler: handler})
|
||||
self160.AddToProcessorMap("restartShards", &auroraSchedulerManagerProcessorRestartShards{handler: handler})
|
||||
self160.AddToProcessorMap("killTasks", &auroraSchedulerManagerProcessorKillTasks{handler: handler})
|
||||
self160.AddToProcessorMap("addInstances", &auroraSchedulerManagerProcessorAddInstances{handler: handler})
|
||||
self160.AddToProcessorMap("replaceCronTemplate", &auroraSchedulerManagerProcessorReplaceCronTemplate{handler: handler})
|
||||
self160.AddToProcessorMap("startJobUpdate", &auroraSchedulerManagerProcessorStartJobUpdate{handler: handler})
|
||||
self160.AddToProcessorMap("pauseJobUpdate", &auroraSchedulerManagerProcessorPauseJobUpdate{handler: handler})
|
||||
self160.AddToProcessorMap("resumeJobUpdate", &auroraSchedulerManagerProcessorResumeJobUpdate{handler: handler})
|
||||
self160.AddToProcessorMap("abortJobUpdate", &auroraSchedulerManagerProcessorAbortJobUpdate{handler: handler})
|
||||
self160.AddToProcessorMap("rollbackJobUpdate", &auroraSchedulerManagerProcessorRollbackJobUpdate{handler: handler})
|
||||
self160.AddToProcessorMap("pulseJobUpdate", &auroraSchedulerManagerProcessorPulseJobUpdate{handler: handler})
|
||||
return self160
|
||||
}
|
||||
|
||||
type auroraSchedulerManagerProcessorCreateJob struct {
|
||||
|
@ -2829,13 +2829,13 @@ func (p *AuroraSchedulerManagerRestartShardsArgs) readField3(iprot thrift.TProto
|
|||
tSet := make(map[int32]bool, size)
|
||||
p.ShardIds = tSet
|
||||
for i := 0; i < size; i++ {
|
||||
var _elem158 int32
|
||||
var _elem161 int32
|
||||
if v, err := iprot.ReadI32(); err != nil {
|
||||
return thrift.PrependError("error reading field 0: ", err)
|
||||
} else {
|
||||
_elem158 = v
|
||||
_elem161 = v
|
||||
}
|
||||
p.ShardIds[_elem158] = true
|
||||
p.ShardIds[_elem161] = true
|
||||
}
|
||||
if err := iprot.ReadSetEnd(); err != nil {
|
||||
return thrift.PrependError("error reading set end: ", err)
|
||||
|
@ -3086,13 +3086,13 @@ func (p *AuroraSchedulerManagerKillTasksArgs) readField5(iprot thrift.TProtocol)
|
|||
tSet := make(map[int32]bool, size)
|
||||
p.Instances = tSet
|
||||
for i := 0; i < size; i++ {
|
||||
var _elem159 int32
|
||||
var _elem162 int32
|
||||
if v, err := iprot.ReadI32(); err != nil {
|
||||
return thrift.PrependError("error reading field 0: ", err)
|
||||
} else {
|
||||
_elem159 = v
|
||||
_elem162 = v
|
||||
}
|
||||
p.Instances[_elem159] = true
|
||||
p.Instances[_elem162] = true
|
||||
}
|
||||
if err := iprot.ReadSetEnd(); err != nil {
|
||||
return thrift.PrependError("error reading set end: ", err)
|
||||
|
|
|
@ -30,7 +30,7 @@ func Usage() {
|
|||
fmt.Fprintln(os.Stderr, " Response getQuota(string ownerRole)")
|
||||
fmt.Fprintln(os.Stderr, " Response populateJobConfig(JobConfiguration description)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateSummaries(JobUpdateQuery jobUpdateQuery)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDetails(JobUpdateKey key)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDetails(JobUpdateQuery query)")
|
||||
fmt.Fprintln(os.Stderr, " Response getJobUpdateDiff(JobUpdateRequest request)")
|
||||
fmt.Fprintln(os.Stderr, " Response getTierConfigs()")
|
||||
fmt.Fprintln(os.Stderr)
|
||||
|
@ -150,19 +150,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetTasksStatus requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg79 := flag.Arg(1)
|
||||
mbTrans80 := thrift.NewTMemoryBufferLen(len(arg79))
|
||||
defer mbTrans80.Close()
|
||||
_, err81 := mbTrans80.WriteString(arg79)
|
||||
if err81 != nil {
|
||||
arg82 := flag.Arg(1)
|
||||
mbTrans83 := thrift.NewTMemoryBufferLen(len(arg82))
|
||||
defer mbTrans83.Close()
|
||||
_, err84 := mbTrans83.WriteString(arg82)
|
||||
if err84 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory82 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt83 := factory82.GetProtocol(mbTrans80)
|
||||
factory85 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt86 := factory85.GetProtocol(mbTrans83)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err84 := argvalue0.Read(jsProt83)
|
||||
if err84 != nil {
|
||||
err87 := argvalue0.Read(jsProt86)
|
||||
if err87 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -175,19 +175,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetTasksWithoutConfigs requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg85 := flag.Arg(1)
|
||||
mbTrans86 := thrift.NewTMemoryBufferLen(len(arg85))
|
||||
defer mbTrans86.Close()
|
||||
_, err87 := mbTrans86.WriteString(arg85)
|
||||
if err87 != nil {
|
||||
arg88 := flag.Arg(1)
|
||||
mbTrans89 := thrift.NewTMemoryBufferLen(len(arg88))
|
||||
defer mbTrans89.Close()
|
||||
_, err90 := mbTrans89.WriteString(arg88)
|
||||
if err90 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory88 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt89 := factory88.GetProtocol(mbTrans86)
|
||||
factory91 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt92 := factory91.GetProtocol(mbTrans89)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err90 := argvalue0.Read(jsProt89)
|
||||
if err90 != nil {
|
||||
err93 := argvalue0.Read(jsProt92)
|
||||
if err93 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -200,19 +200,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetPendingReason requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg91 := flag.Arg(1)
|
||||
mbTrans92 := thrift.NewTMemoryBufferLen(len(arg91))
|
||||
defer mbTrans92.Close()
|
||||
_, err93 := mbTrans92.WriteString(arg91)
|
||||
if err93 != nil {
|
||||
arg94 := flag.Arg(1)
|
||||
mbTrans95 := thrift.NewTMemoryBufferLen(len(arg94))
|
||||
defer mbTrans95.Close()
|
||||
_, err96 := mbTrans95.WriteString(arg94)
|
||||
if err96 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory94 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt95 := factory94.GetProtocol(mbTrans92)
|
||||
factory97 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt98 := factory97.GetProtocol(mbTrans95)
|
||||
argvalue0 := aurora.NewTaskQuery()
|
||||
err96 := argvalue0.Read(jsProt95)
|
||||
if err96 != nil {
|
||||
err99 := argvalue0.Read(jsProt98)
|
||||
if err99 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -225,19 +225,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetConfigSummary requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg97 := flag.Arg(1)
|
||||
mbTrans98 := thrift.NewTMemoryBufferLen(len(arg97))
|
||||
defer mbTrans98.Close()
|
||||
_, err99 := mbTrans98.WriteString(arg97)
|
||||
if err99 != nil {
|
||||
arg100 := flag.Arg(1)
|
||||
mbTrans101 := thrift.NewTMemoryBufferLen(len(arg100))
|
||||
defer mbTrans101.Close()
|
||||
_, err102 := mbTrans101.WriteString(arg100)
|
||||
if err102 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory100 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt101 := factory100.GetProtocol(mbTrans98)
|
||||
factory103 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt104 := factory103.GetProtocol(mbTrans101)
|
||||
argvalue0 := aurora.NewJobKey()
|
||||
err102 := argvalue0.Read(jsProt101)
|
||||
if err102 != nil {
|
||||
err105 := argvalue0.Read(jsProt104)
|
||||
if err105 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -270,19 +270,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "PopulateJobConfig requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg105 := flag.Arg(1)
|
||||
mbTrans106 := thrift.NewTMemoryBufferLen(len(arg105))
|
||||
defer mbTrans106.Close()
|
||||
_, err107 := mbTrans106.WriteString(arg105)
|
||||
if err107 != nil {
|
||||
arg108 := flag.Arg(1)
|
||||
mbTrans109 := thrift.NewTMemoryBufferLen(len(arg108))
|
||||
defer mbTrans109.Close()
|
||||
_, err110 := mbTrans109.WriteString(arg108)
|
||||
if err110 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory108 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt109 := factory108.GetProtocol(mbTrans106)
|
||||
factory111 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt112 := factory111.GetProtocol(mbTrans109)
|
||||
argvalue0 := aurora.NewJobConfiguration()
|
||||
err110 := argvalue0.Read(jsProt109)
|
||||
if err110 != nil {
|
||||
err113 := argvalue0.Read(jsProt112)
|
||||
if err113 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -295,19 +295,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateSummaries requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg111 := flag.Arg(1)
|
||||
mbTrans112 := thrift.NewTMemoryBufferLen(len(arg111))
|
||||
defer mbTrans112.Close()
|
||||
_, err113 := mbTrans112.WriteString(arg111)
|
||||
if err113 != nil {
|
||||
arg114 := flag.Arg(1)
|
||||
mbTrans115 := thrift.NewTMemoryBufferLen(len(arg114))
|
||||
defer mbTrans115.Close()
|
||||
_, err116 := mbTrans115.WriteString(arg114)
|
||||
if err116 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory114 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt115 := factory114.GetProtocol(mbTrans112)
|
||||
factory117 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt118 := factory117.GetProtocol(mbTrans115)
|
||||
argvalue0 := aurora.NewJobUpdateQuery()
|
||||
err116 := argvalue0.Read(jsProt115)
|
||||
if err116 != nil {
|
||||
err119 := argvalue0.Read(jsProt118)
|
||||
if err119 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -320,19 +320,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateDetails requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg117 := flag.Arg(1)
|
||||
mbTrans118 := thrift.NewTMemoryBufferLen(len(arg117))
|
||||
defer mbTrans118.Close()
|
||||
_, err119 := mbTrans118.WriteString(arg117)
|
||||
if err119 != nil {
|
||||
arg120 := flag.Arg(1)
|
||||
mbTrans121 := thrift.NewTMemoryBufferLen(len(arg120))
|
||||
defer mbTrans121.Close()
|
||||
_, err122 := mbTrans121.WriteString(arg120)
|
||||
if err122 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory120 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt121 := factory120.GetProtocol(mbTrans118)
|
||||
argvalue0 := aurora.NewJobUpdateKey()
|
||||
err122 := argvalue0.Read(jsProt121)
|
||||
if err122 != nil {
|
||||
factory123 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt124 := factory123.GetProtocol(mbTrans121)
|
||||
argvalue0 := aurora.NewJobUpdateQuery()
|
||||
err125 := argvalue0.Read(jsProt124)
|
||||
if err125 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
@ -345,19 +345,19 @@ func main() {
|
|||
fmt.Fprintln(os.Stderr, "GetJobUpdateDiff requires 1 args")
|
||||
flag.Usage()
|
||||
}
|
||||
arg123 := flag.Arg(1)
|
||||
mbTrans124 := thrift.NewTMemoryBufferLen(len(arg123))
|
||||
defer mbTrans124.Close()
|
||||
_, err125 := mbTrans124.WriteString(arg123)
|
||||
if err125 != nil {
|
||||
arg126 := flag.Arg(1)
|
||||
mbTrans127 := thrift.NewTMemoryBufferLen(len(arg126))
|
||||
defer mbTrans127.Close()
|
||||
_, err128 := mbTrans127.WriteString(arg126)
|
||||
if err128 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
factory126 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt127 := factory126.GetProtocol(mbTrans124)
|
||||
factory129 := thrift.NewTSimpleJSONProtocolFactory()
|
||||
jsProt130 := factory129.GetProtocol(mbTrans127)
|
||||
argvalue0 := aurora.NewJobUpdateRequest()
|
||||
err128 := argvalue0.Read(jsProt127)
|
||||
if err128 != nil {
|
||||
err131 := argvalue0.Read(jsProt130)
|
||||
if err131 != nil {
|
||||
Usage()
|
||||
return
|
||||
}
|
||||
|
|
|
@ -68,8 +68,8 @@ type ReadOnlyScheduler interface {
|
|||
// Gets job update details.
|
||||
//
|
||||
// Parameters:
|
||||
// - Key
|
||||
GetJobUpdateDetails(key *JobUpdateKey) (r *Response, err error)
|
||||
// - Query
|
||||
GetJobUpdateDetails(query *JobUpdateQuery) (r *Response, err error)
|
||||
// Gets the diff between client (desired) and server (current) job states.
|
||||
//
|
||||
// Parameters:
|
||||
|
@ -152,16 +152,16 @@ func (p *ReadOnlySchedulerClient) recvGetRoleSummary() (value *Response, err err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error50 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error51 error
|
||||
error51, err = error50.Read(iprot)
|
||||
error53 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error54 error
|
||||
error54, err = error53.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error51
|
||||
err = error54
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -231,16 +231,16 @@ func (p *ReadOnlySchedulerClient) recvGetJobSummary() (value *Response, err erro
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error52 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error53 error
|
||||
error53, err = error52.Read(iprot)
|
||||
error55 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error56 error
|
||||
error56, err = error55.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error53
|
||||
err = error56
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -310,16 +310,16 @@ func (p *ReadOnlySchedulerClient) recvGetTasksStatus() (value *Response, err err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error54 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error55 error
|
||||
error55, err = error54.Read(iprot)
|
||||
error57 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error58 error
|
||||
error58, err = error57.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error55
|
||||
err = error58
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -390,16 +390,16 @@ func (p *ReadOnlySchedulerClient) recvGetTasksWithoutConfigs() (value *Response,
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error56 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error57 error
|
||||
error57, err = error56.Read(iprot)
|
||||
error59 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error60 error
|
||||
error60, err = error59.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error57
|
||||
err = error60
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -469,16 +469,16 @@ func (p *ReadOnlySchedulerClient) recvGetPendingReason() (value *Response, err e
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error58 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error59 error
|
||||
error59, err = error58.Read(iprot)
|
||||
error61 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error62 error
|
||||
error62, err = error61.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error59
|
||||
err = error62
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -548,16 +548,16 @@ func (p *ReadOnlySchedulerClient) recvGetConfigSummary() (value *Response, err e
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error60 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error61 error
|
||||
error61, err = error60.Read(iprot)
|
||||
error63 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error64 error
|
||||
error64, err = error63.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error61
|
||||
err = error64
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -628,16 +628,16 @@ func (p *ReadOnlySchedulerClient) recvGetJobs() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error62 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error63 error
|
||||
error63, err = error62.Read(iprot)
|
||||
error65 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error66 error
|
||||
error66, err = error65.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error63
|
||||
err = error66
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -707,16 +707,16 @@ func (p *ReadOnlySchedulerClient) recvGetQuota() (value *Response, err error) {
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error64 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error65 error
|
||||
error65, err = error64.Read(iprot)
|
||||
error67 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error68 error
|
||||
error68, err = error67.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error65
|
||||
err = error68
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -787,16 +787,16 @@ func (p *ReadOnlySchedulerClient) recvPopulateJobConfig() (value *Response, err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error66 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error67 error
|
||||
error67, err = error66.Read(iprot)
|
||||
error69 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error70 error
|
||||
error70, err = error69.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error67
|
||||
err = error70
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -866,16 +866,16 @@ func (p *ReadOnlySchedulerClient) recvGetJobUpdateSummaries() (value *Response,
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error68 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error69 error
|
||||
error69, err = error68.Read(iprot)
|
||||
error71 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error72 error
|
||||
error72, err = error71.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error69
|
||||
err = error72
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -896,15 +896,15 @@ func (p *ReadOnlySchedulerClient) recvGetJobUpdateSummaries() (value *Response,
|
|||
// Gets job update details.
|
||||
//
|
||||
// Parameters:
|
||||
// - Key
|
||||
func (p *ReadOnlySchedulerClient) GetJobUpdateDetails(key *JobUpdateKey) (r *Response, err error) {
|
||||
if err = p.sendGetJobUpdateDetails(key); err != nil {
|
||||
// - Query
|
||||
func (p *ReadOnlySchedulerClient) GetJobUpdateDetails(query *JobUpdateQuery) (r *Response, err error) {
|
||||
if err = p.sendGetJobUpdateDetails(query); err != nil {
|
||||
return
|
||||
}
|
||||
return p.recvGetJobUpdateDetails()
|
||||
}
|
||||
|
||||
func (p *ReadOnlySchedulerClient) sendGetJobUpdateDetails(key *JobUpdateKey) (err error) {
|
||||
func (p *ReadOnlySchedulerClient) sendGetJobUpdateDetails(query *JobUpdateQuery) (err error) {
|
||||
oprot := p.OutputProtocol
|
||||
if oprot == nil {
|
||||
oprot = p.ProtocolFactory.GetProtocol(p.Transport)
|
||||
|
@ -915,7 +915,7 @@ func (p *ReadOnlySchedulerClient) sendGetJobUpdateDetails(key *JobUpdateKey) (er
|
|||
return
|
||||
}
|
||||
args := ReadOnlySchedulerGetJobUpdateDetailsArgs{
|
||||
Key: key,
|
||||
Query: query,
|
||||
}
|
||||
if err = args.Write(oprot); err != nil {
|
||||
return
|
||||
|
@ -945,16 +945,16 @@ func (p *ReadOnlySchedulerClient) recvGetJobUpdateDetails() (value *Response, er
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error70 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error71 error
|
||||
error71, err = error70.Read(iprot)
|
||||
error73 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error74 error
|
||||
error74, err = error73.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error71
|
||||
err = error74
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1024,16 +1024,16 @@ func (p *ReadOnlySchedulerClient) recvGetJobUpdateDiff() (value *Response, err e
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error72 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error73 error
|
||||
error73, err = error72.Read(iprot)
|
||||
error75 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error76 error
|
||||
error76, err = error75.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error73
|
||||
err = error76
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1098,16 +1098,16 @@ func (p *ReadOnlySchedulerClient) recvGetTierConfigs() (value *Response, err err
|
|||
return
|
||||
}
|
||||
if mTypeId == thrift.EXCEPTION {
|
||||
error74 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error75 error
|
||||
error75, err = error74.Read(iprot)
|
||||
error77 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
|
||||
var error78 error
|
||||
error78, err = error77.Read(iprot)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if err = iprot.ReadMessageEnd(); err != nil {
|
||||
return
|
||||
}
|
||||
err = error75
|
||||
err = error78
|
||||
return
|
||||
}
|
||||
if mTypeId != thrift.REPLY {
|
||||
|
@ -1145,21 +1145,21 @@ func (p *ReadOnlySchedulerProcessor) ProcessorMap() map[string]thrift.TProcessor
|
|||
|
||||
func NewReadOnlySchedulerProcessor(handler ReadOnlyScheduler) *ReadOnlySchedulerProcessor {
|
||||
|
||||
self76 := &ReadOnlySchedulerProcessor{handler: handler, processorMap: make(map[string]thrift.TProcessorFunction)}
|
||||
self76.processorMap["getRoleSummary"] = &readOnlySchedulerProcessorGetRoleSummary{handler: handler}
|
||||
self76.processorMap["getJobSummary"] = &readOnlySchedulerProcessorGetJobSummary{handler: handler}
|
||||
self76.processorMap["getTasksStatus"] = &readOnlySchedulerProcessorGetTasksStatus{handler: handler}
|
||||
self76.processorMap["getTasksWithoutConfigs"] = &readOnlySchedulerProcessorGetTasksWithoutConfigs{handler: handler}
|
||||
self76.processorMap["getPendingReason"] = &readOnlySchedulerProcessorGetPendingReason{handler: handler}
|
||||
self76.processorMap["getConfigSummary"] = &readOnlySchedulerProcessorGetConfigSummary{handler: handler}
|
||||
self76.processorMap["getJobs"] = &readOnlySchedulerProcessorGetJobs{handler: handler}
|
||||
self76.processorMap["getQuota"] = &readOnlySchedulerProcessorGetQuota{handler: handler}
|
||||
self76.processorMap["populateJobConfig"] = &readOnlySchedulerProcessorPopulateJobConfig{handler: handler}
|
||||
self76.processorMap["getJobUpdateSummaries"] = &readOnlySchedulerProcessorGetJobUpdateSummaries{handler: handler}
|
||||
self76.processorMap["getJobUpdateDetails"] = &readOnlySchedulerProcessorGetJobUpdateDetails{handler: handler}
|
||||
self76.processorMap["getJobUpdateDiff"] = &readOnlySchedulerProcessorGetJobUpdateDiff{handler: handler}
|
||||
self76.processorMap["getTierConfigs"] = &readOnlySchedulerProcessorGetTierConfigs{handler: handler}
|
||||
return self76
|
||||
self79 := &ReadOnlySchedulerProcessor{handler: handler, processorMap: make(map[string]thrift.TProcessorFunction)}
|
||||
self79.processorMap["getRoleSummary"] = &readOnlySchedulerProcessorGetRoleSummary{handler: handler}
|
||||
self79.processorMap["getJobSummary"] = &readOnlySchedulerProcessorGetJobSummary{handler: handler}
|
||||
self79.processorMap["getTasksStatus"] = &readOnlySchedulerProcessorGetTasksStatus{handler: handler}
|
||||
self79.processorMap["getTasksWithoutConfigs"] = &readOnlySchedulerProcessorGetTasksWithoutConfigs{handler: handler}
|
||||
self79.processorMap["getPendingReason"] = &readOnlySchedulerProcessorGetPendingReason{handler: handler}
|
||||
self79.processorMap["getConfigSummary"] = &readOnlySchedulerProcessorGetConfigSummary{handler: handler}
|
||||
self79.processorMap["getJobs"] = &readOnlySchedulerProcessorGetJobs{handler: handler}
|
||||
self79.processorMap["getQuota"] = &readOnlySchedulerProcessorGetQuota{handler: handler}
|
||||
self79.processorMap["populateJobConfig"] = &readOnlySchedulerProcessorPopulateJobConfig{handler: handler}
|
||||
self79.processorMap["getJobUpdateSummaries"] = &readOnlySchedulerProcessorGetJobUpdateSummaries{handler: handler}
|
||||
self79.processorMap["getJobUpdateDetails"] = &readOnlySchedulerProcessorGetJobUpdateDetails{handler: handler}
|
||||
self79.processorMap["getJobUpdateDiff"] = &readOnlySchedulerProcessorGetJobUpdateDiff{handler: handler}
|
||||
self79.processorMap["getTierConfigs"] = &readOnlySchedulerProcessorGetTierConfigs{handler: handler}
|
||||
return self79
|
||||
}
|
||||
|
||||
func (p *ReadOnlySchedulerProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
|
||||
|
@ -1172,12 +1172,12 @@ func (p *ReadOnlySchedulerProcessor) Process(iprot, oprot thrift.TProtocol) (suc
|
|||
}
|
||||
iprot.Skip(thrift.STRUCT)
|
||||
iprot.ReadMessageEnd()
|
||||
x77 := thrift.NewTApplicationException(thrift.UNKNOWN_METHOD, "Unknown function "+name)
|
||||
x80 := thrift.NewTApplicationException(thrift.UNKNOWN_METHOD, "Unknown function "+name)
|
||||
oprot.WriteMessageBegin(name, thrift.EXCEPTION, seqId)
|
||||
x77.Write(oprot)
|
||||
x80.Write(oprot)
|
||||
oprot.WriteMessageEnd()
|
||||
oprot.Flush()
|
||||
return false, x77
|
||||
return false, x80
|
||||
|
||||
}
|
||||
|
||||
|
@ -1681,7 +1681,7 @@ func (p *readOnlySchedulerProcessorGetJobUpdateDetails) Process(seqId int32, ipr
|
|||
result := ReadOnlySchedulerGetJobUpdateDetailsResult{}
|
||||
var retval *Response
|
||||
var err2 error
|
||||
if retval, err2 = p.handler.GetJobUpdateDetails(args.Key); err2 != nil {
|
||||
if retval, err2 = p.handler.GetJobUpdateDetails(args.Query); err2 != nil {
|
||||
x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing getJobUpdateDetails: "+err2.Error())
|
||||
oprot.WriteMessageBegin("getJobUpdateDetails", thrift.EXCEPTION, seqId)
|
||||
x.Write(oprot)
|
||||
|
@ -3738,25 +3738,26 @@ func (p *ReadOnlySchedulerGetJobUpdateSummariesResult) String() string {
|
|||
}
|
||||
|
||||
// Attributes:
|
||||
// - Key
|
||||
// - Query
|
||||
type ReadOnlySchedulerGetJobUpdateDetailsArgs struct {
|
||||
Key *JobUpdateKey `thrift:"key,1" json:"key"`
|
||||
// unused field # 1
|
||||
Query *JobUpdateQuery `thrift:"query,2" json:"query"`
|
||||
}
|
||||
|
||||
func NewReadOnlySchedulerGetJobUpdateDetailsArgs() *ReadOnlySchedulerGetJobUpdateDetailsArgs {
|
||||
return &ReadOnlySchedulerGetJobUpdateDetailsArgs{}
|
||||
}
|
||||
|
||||
var ReadOnlySchedulerGetJobUpdateDetailsArgs_Key_DEFAULT *JobUpdateKey
|
||||
var ReadOnlySchedulerGetJobUpdateDetailsArgs_Query_DEFAULT *JobUpdateQuery
|
||||
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) GetKey() *JobUpdateKey {
|
||||
if !p.IsSetKey() {
|
||||
return ReadOnlySchedulerGetJobUpdateDetailsArgs_Key_DEFAULT
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) GetQuery() *JobUpdateQuery {
|
||||
if !p.IsSetQuery() {
|
||||
return ReadOnlySchedulerGetJobUpdateDetailsArgs_Query_DEFAULT
|
||||
}
|
||||
return p.Key
|
||||
return p.Query
|
||||
}
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) IsSetKey() bool {
|
||||
return p.Key != nil
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) IsSetQuery() bool {
|
||||
return p.Query != nil
|
||||
}
|
||||
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) Read(iprot thrift.TProtocol) error {
|
||||
|
@ -3773,8 +3774,8 @@ func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) Read(iprot thrift.TProtocol)
|
|||
break
|
||||
}
|
||||
switch fieldId {
|
||||
case 1:
|
||||
if err := p.readField1(iprot); err != nil {
|
||||
case 2:
|
||||
if err := p.readField2(iprot); err != nil {
|
||||
return err
|
||||
}
|
||||
default:
|
||||
|
@ -3792,10 +3793,10 @@ func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) Read(iprot thrift.TProtocol)
|
|||
return nil
|
||||
}
|
||||
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) readField1(iprot thrift.TProtocol) error {
|
||||
p.Key = &JobUpdateKey{}
|
||||
if err := p.Key.Read(iprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Key), err)
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) readField2(iprot thrift.TProtocol) error {
|
||||
p.Query = &JobUpdateQuery{}
|
||||
if err := p.Query.Read(iprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Query), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -3804,7 +3805,7 @@ func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) Write(oprot thrift.TProtocol)
|
|||
if err := oprot.WriteStructBegin("getJobUpdateDetails_args"); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
|
||||
}
|
||||
if err := p.writeField1(oprot); err != nil {
|
||||
if err := p.writeField2(oprot); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := oprot.WriteFieldStop(); err != nil {
|
||||
|
@ -3816,15 +3817,15 @@ func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) Write(oprot thrift.TProtocol)
|
|||
return nil
|
||||
}
|
||||
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) writeField1(oprot thrift.TProtocol) (err error) {
|
||||
if err := oprot.WriteFieldBegin("key", thrift.STRUCT, 1); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:key: ", p), err)
|
||||
func (p *ReadOnlySchedulerGetJobUpdateDetailsArgs) writeField2(oprot thrift.TProtocol) (err error) {
|
||||
if err := oprot.WriteFieldBegin("query", thrift.STRUCT, 2); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:query: ", p), err)
|
||||
}
|
||||
if err := p.Key.Write(oprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Key), err)
|
||||
if err := p.Query.Write(oprot); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Query), err)
|
||||
}
|
||||
if err := oprot.WriteFieldEnd(); err != nil {
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field end error 1:key: ", p), err)
|
||||
return thrift.PrependError(fmt.Sprintf("%T write field end error 2:query: ", p), err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue