NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Process.Description.StreamJob Class Reference
Inheritance diagram for Ntp.Analyzer.Process.Description.StreamJob:
Collaboration diagram for Ntp.Analyzer.Process.Description.StreamJob:

Protected Member Functions

 StreamJob (IJobConfiguration config, LogBase log)
 
void SaveStream (IStreamGenerator generator)
 
void SaveStream (IStreamGenerator generator, string file)
 
- Protected Member Functions inherited from Ntp.Common.Process.JobDescription
 JobDescription (IJobConfiguration config, LogBase log)
 Initializes a new instance of the JobDescription class. More...
 
abstract void InternalExecute ()
 Implementing method for descendants. More...
 

Additional Inherited Members

- Public Member Functions inherited from Ntp.Common.Process.JobDescription
override string ToString ()
 Returns a string that represents the current JobDescription. More...
 
- Public Attributes inherited from Ntp.Common.Process.JobDescription
string Name => Configuration.ConfigName
 Gets the name. More...
 
- Package Functions inherited from Ntp.Common.Process.JobDescription
void Execute ()
 Perform execution of this instance. More...
 
- Properties inherited from Ntp.Common.Process.JobDescription
IJobConfiguration Configuration [get]
 Gets the configuration for the job. More...
 
abstract string JobType [get]
 Gets the type of the job as text. More...
 
LogBase Log [get]
 Gets the log to use when registering events. More...
 
abstract int Priority [get]
 Gets the priority to use when scheduling jobs. More...
 
abstract ThreadType ThreadType [get]
 Gets a value indicating whether this JobDescription should run as a single thread. More...
 

Detailed Description

Definition at line 29 of file StreamJob.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Process.Description.StreamJob.StreamJob ( IJobConfiguration  config,
LogBase  log 
)
inlineprotected

Definition at line 31 of file StreamJob.cs.

32  : base(config, log)
33  {
34  }

Member Function Documentation

void Ntp.Analyzer.Process.Description.StreamJob.SaveStream ( IStreamGenerator  generator)
inlineprotected

Definition at line 36 of file StreamJob.cs.

References Ntp.Analyzer.Export.IStreamGenerator.Destinations, and Ntp.Analyzer.Export.IStreamGenerator.Generate().

37  {
38  Stream stream = null;
39  try
40  {
41  stream = generator.Generate();
42  foreach (var destination in generator.Destinations)
43  {
44  stream.Position = 0;
45  destination.Write(stream, Log);
46  }
47  }
48  finally
49  {
50  stream?.Dispose();
51  }
52  }
LogBase Log
Gets the log to use when registering events.
IEnumerable< StreamDestination > Destinations

Here is the call graph for this function:

void Ntp.Analyzer.Process.Description.StreamJob.SaveStream ( IStreamGenerator  generator,
string  file 
)
inlineprotected

Definition at line 54 of file StreamJob.cs.

References Ntp.Analyzer.Export.IStreamGenerator.Destinations, and Ntp.Analyzer.Export.IStreamGenerator.Generate().

55  {
56  Stream stream = null;
57  try
58  {
59  stream = generator.Generate();
60  foreach (var destination in generator.Destinations)
61  {
62  stream.Position = 0;
63  destination.Param = file;
64  destination.Write(stream, Log);
65  }
66  }
67  finally
68  {
69  stream?.Dispose();
70  }
71  }
LogBase Log
Gets the log to use when registering events.
IEnumerable< StreamDestination > Destinations

Here is the call graph for this function:


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