26 namespace Ntp.Common.Log
33 "Error in scheduler module. Aborting.",
42 $
"Cluster node {request} is active.",
49 $
"Cluster node {request} is alive.",
56 $
"Cluster node {request} is dead.",
63 $
"Error while contacting cluster node {request}.",
72 "Starting cluster module.",
79 $
"Heartbeat started with {interval} minutes interval.",
86 $
"Heartbeat: Uptime is {time}.",
93 $
"Error while executing {job}.",
111 $
"Received signal {signal}",
118 $
"Aborting thread {thread.Name}.",
125 "Behind schedule. Trying to catch up.",
132 $
"Unexpected error in thread {name}.",
141 "All threads finished.",
152 :
" " + description.
Name;
160 ? $
"{type} job{desc} added to scheduler with {fix}{freq} minutes run interval." 161 : $
"{type} job{desc} added to scheduler for a single run.",
168 $
"{next.Job} started.",
174 string re = scheduledJob.
Job.
RunCount == 0 ?
string.Empty :
"re";
177 $
"{scheduledJob.Job} {re}scheduled to run {scheduledJob.Run.ToString("HH:mm:ss
")}",
184 $
"Starting scheduler with {count} jobs.",
191 $
"Waiting for {count} threads to finish.",
198 $
"{message} {error}",
205 $
"Executing: {command} {arguments}",
219 "Unrecoverable error in UnixSignal.WaitAny()",
228 "Unrecoverable error in SignalHandler: {e.Message}",
237 "Error in inter-process communication.",
251 "Reloading configuration.",
258 "Unexpected inter-process signal.",
265 $
"Received unknown signal {signal}",
static void ClusterNodeActive(this LogBase log, IRequest request)
abstract void WriteLine(string text, Severity severity)
static void SchedulerJobStatus(this LogBase log, ScheduledJob scheduledJob)
static void UnexpectedSignal(this LogBase log)
static void SchedulerFinished(this LogBase log)
static void SchedulerBehind(this LogBase log)
static void ClusterNodeError(this LogBase log, IRequest request, Exception e)
static void HeartbeatUptime(this LogBase log, string time)
static void JobExecutionStatus(this LogBase log, Job job, bool error)
Job Job
Gets the job to execute.
static void ClusterNodeDead(this LogBase log, IRequest request)
static void JobError(this LogBase log, Job job, Exception e)
static void UnknownSignal(this LogBase log, string signal)
static void SchedulerJobExecuting(this LogBase log, ScheduledJob next)
static void SchedulerJobAdded(this LogBase log, JobDescription description, Job job)
JobScheduleDescription Schedule
Gets the schedule.
static void SchedulerAbort(this LogBase log, Thread thread)
abstract string JobType
Gets the type of the job as text.
int RunCount
Gets the number of times this Job have been executed.
A job which have been scheduled for execution.
static void ShellCommandError(this LogBase log, string message, string error)
static void ClusterError(this LogBase log, Exception e)
int Frequency
Gets the schedule frequency in minutes.
static void SchedulerStart(this LogBase log, int count)
static void SignalRefreshing(this LogBase log)
static void ReceivedSignal(this LogBase log, string signal)
static void SchedulerError(this LogBase log, string name, Exception e)
static void ClusterStart(this LogBase log)
Base class for jobs following the GoF Command Pattern.
static void SignalReloading(this LogBase log)
string Name
Gets the name.
bool FixedRun
Gets a value indicating whether this JobScheduleDescription has a fixed schedule frequency, eg. cannot be moved.
static void SchedulerWaiting(this LogBase log, int count)
static void ClusterNodeAlive(this LogBase log, IRequest request)
static void HeartbeatStarted(this LogBase log, int interval)
static void SignalClosing(this LogBase log)
static void ShellCommandExecuting(this LogBase log, string command, string arguments)
JobDescription Description
Gets the description.
static void SignalError(this LogBase log, Exception e)
static void SignalInterProcError(this LogBase log)
static void SignalHandlerError(this LogBase log, Exception e)