MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / SetState

Method SetState

pkg/controller/rtctrl/runtimeinfo.go:51–54  ·  view source on GitHub ↗
(s RuntimeStateType)

Source from the content-addressed store, hash-verified

49}
50
51func (info *RuntimeInfo) SetState(s RuntimeStateType) {
52 logs.V(3).Infof("update runtime %s state %s to %s", info.RuntimeID, info.State, s)
53 info.State = s
54}
55
56func (info *RuntimeInfo) SetResource(mem uint64, cpu int64) {
57 logs.V(3).Infof("update runtime %s memory size %d to %d; cpu size %d to %d", info.RuntimeID,

Callers 15

opOccupySetMethod · 0.95
opMergedSetMethod · 0.95
opRetrieveSetMethod · 0.95
opRollbackSetMethod · 0.95
opStopSetMethod · 0.95
initRunnerMethod · 0.95
stopRunnerMethod · 0.95
NewRuntimeInfoFunction · 0.95
initRuntimeMethod · 0.95
stopRuntimeMethod · 0.95
TestHandleRuntimeInitFunction · 0.95

Calls 2

VFunction · 0.92
InfofMethod · 0.80

Tested by 12

TestHandleRuntimeInitFunction · 0.76
TestSendHTTPRequestLoopFunction · 0.64
initRuntimeListFunction · 0.64
TestCoolDownRuntimeFunction · 0.64
TestInvocationFunction · 0.64
TestInvocationWithStreamFunction · 0.64
TestEventOccupyFunction · 0.64
TestEventMergedFunction · 0.64
TestEventMarkFunction · 0.64
TestEventStopFunction · 0.64