public class PrometheusMonitor extends java.lang.Object implements IMonitor
| Constructor and Description |
|---|
PrometheusMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
CategoryDefinitionsLoaded()
The category definition file finished loading
New in build 595.
|
void |
Initialize(java.lang.String configFileName)
Initialize using the parameter from the config file.
|
void |
LogError(java.lang.String sMessage)
Log an error
|
void |
LogError(java.lang.String sMessage,
java.lang.Throwable e)
Log an error from a Throwable
Changed to Throwable (from Exception) and overload with Error was removed in build 606
|
void |
LogSystem(java.lang.String sMessage)
Log a system message
|
void |
LogTrace(java.lang.String sMessage)
Log a tracing message
If the logging level is Errors or Warnings, this doesn't do anything
|
void |
LogTrace(java.lang.String sMessage,
java.lang.Throwable e)
Log a tracing message from a Throwable
If the logging level is Errors or Warnings, this doesn't do anything
Changed to Throwable (from Exception) in build 606
|
void |
LogWarning(java.lang.String sMessage)
Log a warning
If the logging level is Errors, this doesn't do anything
|
void |
LogWarning(java.lang.String sMessage,
java.lang.Throwable e)
Log a warning from a Throwable
If the logging level is Errors, this doesn't do anything
Changed to Throwable (from Exception) in build 606
|
void |
MailboxEmpty(java.lang.String sMailboxName)
This is fired every time we check the mailbox for
messages, and we find that it is empty.
|
void |
MailboxInitializationBegun(java.lang.String sMailboxName)
The mailbox initialization process started for a particular mailbox
New in build 627
|
void |
MailboxInitializationFinished(java.lang.String sMailboxName)
The mailbox initialization process completed for a particular mailbox
New in build 627
|
void |
MailboxShutdownBegun(java.lang.String sMailboxName)
The mailbox shutdown process began for a particular mailbox
New in build 627
|
void |
MailboxShutdownFinished(java.lang.String sMailboxName)
The mailbox shutdown process finished for a particular mailbox
New in build 627
|
void |
MessageCategorized(java.lang.String sMailboxName,
int CategoryID)
A message was categorized into a particular category.
|
void |
MessageCount(java.lang.String sMailboxName,
int nMessageCount)
We just refreshed the mailbox and this is the message count
New in 811
|
void |
MessageFetched(java.lang.String sMailboxName,
int nMessageNumber,
long nFetchTimeNs)
We just fetched a message from the mail server.
|
void |
MessageProcessed(java.lang.String sMailboxName,
CMessage oMessage,
long nProcessingTimeNs)
A message was processed
Changed in build 595
MailboxName added in 811.
|
void |
MessageSkipped(java.lang.String sMailboxName)
A message was deleted without processing because the headers could not be loaded.
|
void |
Shutdown()
Cleanup any resources you allocated during construction
or operation.
|
void |
SkippedRemovedMessage(java.lang.String sMailboxName)
We tried to process a message, but it was removed from the mailbox or marked as deleted.
|
void |
ThreadKilled(java.lang.String sMailboxName,
int nThreadNumber,
java.util.Date dtLastUpdate)
A thread was killed because it was inactive for too long
New in build 595
MailboxName added in 811.
|
public void Initialize(java.lang.String configFileName)
throws ResponseMasterException
IConfigurableItemInitialize in interface IConfigurableItemconfigFileName - The parameter from the config file, Frequently, the parameter will be a file name.ResponseMasterException - for invalid parameters (and potentially other issues).public void Shutdown()
IConfigurableItemShutdown in interface IConfigurableItempublic void LogError(java.lang.String sMessage)
IMonitorpublic void LogError(java.lang.String sMessage,
java.lang.Throwable e)
IMonitorpublic void LogWarning(java.lang.String sMessage)
IMonitorLogWarning in interface IMonitorsMessage - The message to logpublic void LogWarning(java.lang.String sMessage,
java.lang.Throwable e)
IMonitorLogWarning in interface IMonitorsMessage - The message to loge - The Throwable to logpublic void LogTrace(java.lang.String sMessage)
IMonitorpublic void LogTrace(java.lang.String sMessage,
java.lang.Throwable e)
IMonitorpublic void LogSystem(java.lang.String sMessage)
IMonitorpublic void MessageCategorized(java.lang.String sMailboxName,
int CategoryID)
IMonitorMessageCategorized in interface IMonitorsMailboxName - The name of the mailbox that the message was fromCategoryID - The category that the message was placed intopublic void MessageCount(java.lang.String sMailboxName,
int nMessageCount)
IMonitorMessageCount in interface IMonitorsMailboxName - The name of the mailboxnMessageCount - The number of messages in the mailboxpublic void ThreadKilled(java.lang.String sMailboxName,
int nThreadNumber,
java.util.Date dtLastUpdate)
IMonitorThreadKilled in interface IMonitorsMailboxName - The name of the mailbox that the thread was processingnThreadNumber - The number of the thread that was killeddtLastUpdate - The last time the thread did something.public void MessageSkipped(java.lang.String sMailboxName)
IMonitorMessageSkipped in interface IMonitorsMailboxName - The name of the mailbox that the message was frompublic void MessageProcessed(java.lang.String sMailboxName,
CMessage oMessage,
long nProcessingTimeNs)
IMonitorMessageProcessed in interface IMonitorsMailboxName - The name of the mailbox that the message was fromoMessage - The message that was processed.nProcessingTimeNs - The total time taken to process the message in nanoseconds (includes fetch time)public void MessageFetched(java.lang.String sMailboxName,
int nMessageNumber,
long nFetchTimeNs)
IMonitorMessageFetched in interface IMonitorsMailboxName - The name of the mailbox the message was fetched from.nMessageNumber - The number of the message (as in "Getting message #12345..."), primarily used for reporting.nFetchTimeNs - The time taken to fetch the message in nanoseconds.public void SkippedRemovedMessage(java.lang.String sMailboxName)
IMonitorSkippedRemovedMessage in interface IMonitorsMailboxName - The name of the mailbox the message was from.public void CategoryDefinitionsLoaded()
IMonitorCategoryDefinitionsLoaded in interface IMonitorpublic void MailboxInitializationBegun(java.lang.String sMailboxName)
IMonitorMailboxInitializationBegun in interface IMonitorsMailboxName - The name of the mailboxpublic void MailboxInitializationFinished(java.lang.String sMailboxName)
IMonitorMailboxInitializationFinished in interface IMonitorsMailboxName - The name of the mailboxpublic void MailboxShutdownBegun(java.lang.String sMailboxName)
IMonitorMailboxShutdownBegun in interface IMonitorsMailboxName - The name of the mailboxpublic void MailboxShutdownFinished(java.lang.String sMailboxName)
IMonitorMailboxShutdownFinished in interface IMonitorsMailboxName - The name of the mailboxpublic void MailboxEmpty(java.lang.String sMailboxName)
IMonitorMailboxEmpty in interface IMonitorsMailboxName - The name of the mailbox