22 using System.Globalization;
27 namespace Ntp.Analyzer.Monitor.Server.TextCommand
38 var builder =
new StringBuilder();
40 builder.Append(
"Host".PadRight(18));
41 builder.Append(
"#HP".PadLeft(4));
42 builder.Append(
"#HG".PadLeft(4));
43 builder.Append(
"#GP".PadLeft(4));
44 builder.Append(
"#PP".PadLeft(4));
45 builder.Append(
"#PG".PadLeft(4));
46 builder.Append(
"#GP".PadLeft(4));
47 builder.Append(
"#PS".PadLeft(4));
48 builder.Append(
"#AB".PadLeft(4));
51 builder.AppendLine(
string.Empty.PadLeft(18 + 8*4 + 2,
'-'));
55 builder.Append(server.
ServerName.PadRight(18));
56 builder.Append(server.
HostPages.Count().ToString(CultureInfo.InvariantCulture).PadLeft(4));
57 builder.Append(server.
HostGraphs.Count().ToString(CultureInfo.InvariantCulture).PadLeft(4));
58 builder.Append((server.
HostGraphPage == null ?
"0" :
"1").PadLeft(4));
59 builder.Append(server.
PeerPages.Count().ToString(CultureInfo.InvariantCulture).PadLeft(4));
60 builder.Append(server.
PeerGraphs.Count().ToString(CultureInfo.InvariantCulture).PadLeft(4));
61 builder.Append((server.
PeerGraphPage == null ?
"0" :
"1").PadLeft(4));
62 builder.Append(server.
PeerSummaryPages.Count().ToString(CultureInfo.InvariantCulture).PadLeft(4));
63 builder.Append((server.
AboutPage == null ?
"0" :
"1").PadLeft(4));
67 return builder.ToString();
IEnumerable< PeerPageConfiguration > PeerPages
AboutPageConfiguration AboutPage
HostGraphPageConfiguration HostGraphPage
IEnumerable< HostPageConfiguration > HostPages
static Configuration Config
IEnumerable< PeerSummaryPageConfiguration > PeerSummaryPages
IEnumerable< HostConfiguration > Servers
ServerCommand(string[] args)
PeerGraphPageConfiguration PeerGraphPage
IEnumerable< HostGraphConfiguration > HostGraphs
IEnumerable< PeerGraphConfiguration > PeerGraphs
override string ExecuteTextCommand()