public class SuiteCompletedMailNotifier extends AbstractMailNotifier implements ISuiteLifeCycleListener
Constructor and Description |
---|
SuiteCompletedMailNotifier(String host,
String sender,
String recipient) |
SuiteCompletedMailNotifier(String host,
String sender,
String[] recipients) |
Modifier and Type | Method and Description |
---|---|
void |
suiteAborted(JobSuite suite)
Invoked when a job suite is aborted.
|
void |
suiteCompleted(JobSuite suite)
Invoked when a job suite completes.
|
void |
suiteStarted(JobSuite suite)
Invoked when a job suite is started.
|
void |
suiteStopped(JobSuite suite)
Invoked when a job suite is stopped.
|
void |
suiteStopping(JobSuite suite)
Invoked when a job suite is stopping.
|
void |
suiteTerminatedPrematuraly(JobSuite suite)
Invoked when a job suite finished executing.
|
getLogTail, getMailer, getRecipients
public SuiteCompletedMailNotifier(String host, String sender, String recipient)
host
- mail server hostsender
- email address of sender ("From" field)recipient
- email address of recipient ("To" field)AbstractMailNotifier.AbstractMailNotifier(String, String, String)
public SuiteCompletedMailNotifier(String host, String sender, String[] recipients)
host
- mail server hostsender
- email address of sender ("From" field)recipients
- email address of recipients ("To" field)AbstractMailNotifier.AbstractMailNotifier(String, String, String[])
public void suiteAborted(JobSuite suite)
ISuiteLifeCycleListener
IJobErrorListener
for more options.suiteAborted
in interface ISuiteLifeCycleListener
suite
- job suitepublic void suiteStarted(JobSuite suite)
ISuiteLifeCycleListener
suiteStarted
in interface ISuiteLifeCycleListener
suite
- job suitepublic final void suiteCompleted(JobSuite suite)
ISuiteLifeCycleListener
true
and
progress is at 100%. Given that jobs are implemented correctly,
this is usually a good indication of success.suiteCompleted
in interface ISuiteLifeCycleListener
suite
- job suitepublic void suiteTerminatedPrematuraly(JobSuite suite)
ISuiteLifeCycleListener
suiteTerminatedPrematuraly
in interface ISuiteLifeCycleListener
suite
- job suitepublic void suiteStopped(JobSuite suite)
ISuiteLifeCycleListener
suiteStopped
in interface ISuiteLifeCycleListener
suite
- job suitepublic void suiteStopping(JobSuite suite)
ISuiteLifeCycleListener
suiteStopping
in interface ISuiteLifeCycleListener
suite
- job suiteCopyright © 2007–2021 Norconex Inc.. All rights reserved.