MCPcopy Index your code
hub / github.com/cubefs/cubefs / newCmdFlashNodeHTTPStatAll

Function newCmdFlashNodeHTTPStatAll

cli/cmd/flashnode.go:209–228  ·  view source on GitHub ↗
(client *master.MasterClient)

Source from the content-addressed store, hash-verified

207}
208
209func newCmdFlashNodeHTTPStatAll(client *master.MasterClient) *cobra.Command {
210 return &cobra.Command{
211 Use: "httpStatAll" + _flashnodeAddr,
212 Short: "show flashnode stat all(key with expired time)",
213 Args: cobra.MinimumNArgs(1),
214 RunE: func(_ *cobra.Command, args []string) (err error) {
215 // check flashnode whether exist
216 _, err = client.NodeAPI().GetFlashNode(args[0])
217 if err != nil {
218 return
219 }
220 stat, err := httpclient.New().Addr(addr2Prof(args[0])).FlashNode().StatAll()
221 if err != nil {
222 return
223 }
224 stdoutln(formatIndent(stat))
225 return
226 },
227 }
228}
229
230func newCmdFlashNodeHTTPSlotStat(client *master.MasterClient) *cobra.Command {
231 return &cobra.Command{

Callers 1

newFlashNodeCmdFunction · 0.70

Calls 9

NewFunction · 0.92
NodeAPIMethod · 0.80
FlashNodeMethod · 0.80
addr2ProfFunction · 0.70
stdoutlnFunction · 0.70
formatIndentFunction · 0.70
StatAllMethod · 0.65
GetFlashNodeMethod · 0.45
AddrMethod · 0.45

Tested by

no test coverage detected