public abstract class GridEmailProcessorAdapter extends GridProcessorAdapter
ctx, log| Modifier | Constructor and Description |
|---|---|
protected |
GridEmailProcessorAdapter(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
abstract GridFuture<Boolean> |
schedule(String subj,
String body,
boolean html)
Schedules sending of given email to all admin emails, if any.
|
abstract GridFuture<Boolean> |
schedule(String subj,
String body,
boolean html,
Collection<String> addrs)
Schedules sending of given email.
|
abstract void |
sendNow(String subj,
String body,
boolean html)
Sends given email to all admin emails, if any, in the current thread blocking until it's either
successfully sent or failed.
|
abstract void |
sendNow(String subj,
String body,
boolean html,
Collection<String> addrs)
Sends given email in the current thread blocking until it's either successfully sent or failed.
|
addAttributes, assertParameter, collectDiscoveryData, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, toString, validateNodeprotected GridEmailProcessorAdapter(GridKernalContext ctx)
ctx - Kernal context.public abstract void sendNow(String subj, String body, boolean html) throws GridException
subj - Email subject.body - Email body.html - HTML format flag.GridException - Thrown in case of any failure on sending.public abstract void sendNow(String subj, String body, boolean html, Collection<String> addrs) throws GridException
subj - Email subject.body - Email body.html - HTML format flag.addrs - Addresses.GridException - Thrown in case of any failure on sending.public abstract GridFuture<Boolean> schedule(String subj, String body, boolean html)
subj - Email subject.body - Email body.html - HTML format flag.public abstract GridFuture<Boolean> schedule(String subj, String body, boolean html, Collection<String> addrs)
subj - Email subject.body - Email body.html - HTML format flag.addrs - Addresses.Copyright © 2014. All rights reserved.