MCPcopy Create free account
hub / github.com/apache/incubator-pegasus / GetPerfSession

Method GetPerfSession

admin-cli/util/pegasus_node.go:206–213  ·  view source on GitHub ↗
(addr string, ntype session.NodeType)

Source from the content-addressed store, hash-verified

204}
205
206func (m *PegasusNodeManager) GetPerfSession(addr string, ntype session.NodeType) *aggregate.PerfSession {
207 node, err := m.GetNode(addr, ntype)
208 if err != nil {
209 panic(fmt.Sprintf("Get PerfSession %s error %s", addr, err))
210 }
211
212 return aggregate.WrapPerf(addr, node.session)
213}

Callers 2

fillDiskCapacityFunction · 0.80
MigrateTableFunction · 0.80

Calls 1

GetNodeMethod · 0.95

Tested by

no test coverage detected