public class EventPoster extends java.lang.Object implements EventAction
ACTION_BALANCE, ACTION_CREATE, ACTION_DEPLOY, ACTION_DISABLE, ACTION_ENABLE, ACTION_FAILOVER, ACTION_LIST, ACTION_QUERY, ACTION_RELOAD, ACTION_REMOVE, ACTION_RENAME, ACTION_RESTART, ACTION_STANDBY, ACTION_STOP, ACTION_UNDEPLOY, ACTION_UPDATE| Constructor and Description |
|---|
EventPoster(java.util.Map props) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes or cleans up all the resources
|
java.lang.String |
doGet(Event event,
java.util.Map map) |
java.lang.String |
doPost(Event event,
java.util.Map map) |
protected void |
finalize() |
java.lang.String |
getName()
returns the name of the action
|
void |
invokeAction(long currentTime,
Event event)
invokes the action upon the event
|
boolean |
isActive(long currentTime,
Event event)
It applies the rules to the event and returns true if the action
is active and will be invoked upon the event, or false otherwise.
|
public java.lang.String doPost(Event event, java.util.Map map) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String doGet(Event event, java.util.Map map) throws java.io.IOException
java.io.IOExceptionpublic void invokeAction(long currentTime,
Event event)
EventActioninvokeAction in interface EventActionpublic boolean isActive(long currentTime,
Event event)
public java.lang.String getName()
EventActiongetName in interface EventActionpublic void close()
EventActionclose in interface EventActionprotected void finalize()
finalize in class java.lang.Object