public class EmailAction extends AbstractWorkflowAction
WorkflowToken for the ETLBatchApplication run will be appended to the message),
a host and port (defaults to localhost:25), a protocol (defaults to SMTP), and a username and password.
The action must be specified as a the only action in a list of actions in the
ETLBatchConfig. It must have the name "Email"
or an IllegalArgumentException will be thrown.
| Modifier and Type | Field and Description |
|---|---|
static String |
FROM_ADDRESS |
static String |
HOST |
static String |
MESSAGE |
static String |
PASSWORD |
static String |
PORT |
static String |
PROTOCOL |
static String |
RECIPIENT_EMAIL_ADDRESS |
static String |
SUBJECT |
static String |
USERNAME |
| Constructor and Description |
|---|
EmailAction(ETLStage action) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(WorkflowActionConfigurer configurer) |
void |
initialize(WorkflowContext context) |
void |
run() |
configure, destroy, getContext, getDescription, getName, setDescription, setName, setProperties, useDatasets, useDatasetspublic static final String RECIPIENT_EMAIL_ADDRESS
public static final String FROM_ADDRESS
public static final String MESSAGE
public static final String SUBJECT
public static final String USERNAME
public static final String PASSWORD
public static final String PROTOCOL
public static final String HOST
public static final String PORT
public EmailAction(ETLStage action)
public void initialize(WorkflowContext context) throws Exception
initialize in interface WorkflowActioninitialize in class AbstractWorkflowActionExceptionpublic void configure(WorkflowActionConfigurer configurer)
configure in class AbstractWorkflowActionpublic void run()
Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.