|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mulesoft.mmc.alert.builder.AlertActionBuilder
public class AlertActionBuilder
Creates a listener for alerts within the system which takes specified actions. Alerts can be
filtered by server name or through a custom AlertFilter. Actions can be taken through
an AlertAction class which are typically generated through builders like the
EmailActionBuilder or the SnmpActionBuilder.
| Constructor Summary | |
|---|---|
AlertActionBuilder()
|
|
| Method Summary | |
|---|---|
AlertActionBuilder |
doAction(AlertAction action)
The action to take when we receive an alert which makes it through the filter. |
AlertActionBuilder |
filter(AlertFilter filter)
An optional filter for alerts. |
AlertListener |
install(org.springframework.context.ApplicationContext context)
Installs an AlertListener which will listen for alerts within the system
and take a specified action according to the parameters specified when building this
class. |
AlertActionBuilder |
name(java.lang.String name)
The name of the alert action. |
AlertActionBuilder |
servers(java.lang.String... servers)
A list of server names which the action applies to. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlertActionBuilder()
| Method Detail |
|---|
public AlertActionBuilder name(java.lang.String name)
public AlertActionBuilder servers(java.lang.String... servers)
servers -
public AlertActionBuilder filter(AlertFilter filter)
filter -
public AlertActionBuilder doAction(AlertAction action)
action -
public AlertListener install(org.springframework.context.ApplicationContext context)
throws java.lang.Exception
AlertListener which will listen for alerts within the system
and take a specified action according to the parameters specified when building this
class.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||