NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Monitor.Server.TextCommand.ActivityCommand Class Reference
Inheritance diagram for Ntp.Analyzer.Monitor.Server.TextCommand.ActivityCommand:
Collaboration diagram for Ntp.Analyzer.Monitor.Server.TextCommand.ActivityCommand:

Public Member Functions

 ActivityCommand (string[] args)
 Initializes a new instance of the ActivityCommand class. More...
 
- Public Member Functions inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
override object Execute ()
 

Protected Member Functions

override string ExecuteTextCommand ()
 List recent activity. More...
 
- Protected Member Functions inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
 MonitorTextCommand (string[] args)
 
 MonitorTextCommand ()
 

Private Attributes

const int LineCount = 200
 

Additional Inherited Members

- Public Attributes inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
override CommandType CommandType => CommandType.Text
 
- Properties inherited from Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand
string[] Args [get]
 
- Properties inherited from Ntp.Analyzer.Monitor.Server.Command
abstract CommandType CommandType [get]
 

Detailed Description

Definition at line 27 of file ActivityCommand.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Monitor.Server.TextCommand.ActivityCommand.ActivityCommand ( string[]  args)
inline

Initializes a new instance of the ActivityCommand class.

Parameters
argsArguments.

Definition at line 33 of file ActivityCommand.cs.

34  : base(args)
35  {
36  }

Member Function Documentation

override string Ntp.Analyzer.Monitor.Server.TextCommand.ActivityCommand.ExecuteTextCommand ( )
inlineprotectedvirtual

List recent activity.

Implements Ntp.Analyzer.Monitor.Server.TextCommand.MonitorTextCommand.

Definition at line 43 of file ActivityCommand.cs.

References Ntp.Analyzer.Monitor.Server.ApplicationState.Scheduler.

44  {
45  var builder = new StringBuilder();
46 
47  builder.AppendFormat("Listing {0} lines ...", LineCount);
48 
49  foreach (string entry in ApplicationState.Scheduler.ActivityLog.Reverse().Take(LineCount).Reverse())
50  {
51  builder.AppendLine(entry);
52  }
53 
54  return builder.ToString();
55  }

Member Data Documentation

const int Ntp.Analyzer.Monitor.Server.TextCommand.ActivityCommand.LineCount = 200
private

Definition at line 38 of file ActivityCommand.cs.


The documentation for this class was generated from the following file: