()
| 119 | } |
| 120 | |
| 121 | func (a *orgRouterAdapter) BeginDrain() { |
| 122 | a.metadataSessions.KillAll() |
| 123 | a.router.BeginDrain() |
| 124 | } |
| 125 | |
| 126 | func (a *orgRouterAdapter) ShutdownAll() { |
| 127 | a.metadataSessions.KillAll() |
| 128 | a.router.ShutdownAll() |
| 129 | } |
| 130 | |
| 131 | func (a *orgRouterAdapter) ReleaseIdleHotWorkers() int { |
| 132 | return a.router.ReleaseIdleHotWorkers() |
| 133 | } |
| 134 | |
| 135 | func (a *orgRouterAdapter) AllOrgStats() []admin.OrgStatus { |
| 136 | stacks := a.router.AllStacks() |
| 137 | stats := make([]admin.OrgStatus, 0, len(stacks)) |
| 138 | for name, stack := range stacks { |
| 139 | sessionCount := stack.Sessions.SessionCount() |
nothing calls this directly
no test coverage detected