public class SimpleFormattedCompletionNotifier extends Object implements CompletionNotifier
Constructor and Description |
---|
SimpleFormattedCompletionNotifier() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
makeCompletionMessage(String name,
RemoteRunDelegate run,
int code)
Called to get the content of a message that a workflow run has finished.
|
String |
makeMessageSubject(String name,
RemoteRunDelegate run,
int code)
Called to get the subject of the message to dispatch.
|
void |
setMessageFormat(String messageFormat) |
void |
setName(String name) |
void |
setSubject(String subject) |
public void setName(String name)
public void setSubject(String subject)
subject
- The subject of the notification email.public void setMessageFormat(String messageFormat)
messageFormat
- The template for the body of the message to send. Parameter #0
will be substituted with the ID of the job, and parameter #1
will be substituted with the exit code.public String makeCompletionMessage(String name, RemoteRunDelegate run, int code)
CompletionNotifier
makeCompletionMessage
in interface CompletionNotifier
name
- The name of the run.run
- What run are we talking about.code
- What the exit code was.public String makeMessageSubject(String name, RemoteRunDelegate run, int code)
CompletionNotifier
makeMessageSubject
in interface CompletionNotifier
name
- The name of the run.run
- What run are we talking about.code
- What the exit code was.public String getName()
getName
in interface CompletionNotifier
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.