|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.scape_project.watch.notification.LogNotificationAdaptor
public class LogNotificationAdaptor
Dummy adaptor that simply writes every notification to log.
Field Summary | |
---|---|
static String |
PARAM_MESSAGE
Message parameter key. |
Constructor Summary | |
---|---|
LogNotificationAdaptor()
|
Method Summary | |
---|---|
String |
getDescription()
Retrieves a short human readable description of this plugin. |
String |
getName()
Retrieves the name of this plugin. |
Map<String,DataType> |
getParametersInfo()
Get list of parameters and their type. |
PluginType |
getPluginType()
Retrieves the type of the plugin. |
Set<String> |
getSupportedTypes()
Get Notification types this adaptors supports. |
String |
getVersion()
Retrieves the version of this plugin. |
void |
init()
Initializes the plugin. |
boolean |
send(Notification notification)
Send a notification. |
void |
shutdown()
This method is called exactly once before the system shuts down or when the component decides this plugin is not needed anymore. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PARAM_MESSAGE
Constructor Detail |
---|
public LogNotificationAdaptor()
Method Detail |
---|
public Set<String> getSupportedTypes()
NotificationAdaptorInterface
getSupportedTypes
in interface NotificationAdaptorInterface
public boolean send(Notification notification)
NotificationAdaptorInterface
send
in interface NotificationAdaptorInterface
notification
- The notification to send
true
if notification should be consumed, i.e. should
not be relayed to any other adaptorpublic void init() throws PluginException
PluginInterface
init
in interface PluginInterface
PluginException
- if something goes wrong during the initialization process.public void shutdown() throws PluginException
PluginInterface
shutdown
in interface PluginInterface
PluginException
- if something goes wrong.public String getName()
PluginInterface
getName
in interface PluginInterface
public String getVersion()
PluginInterface
getVersion
in interface PluginInterface
public String getDescription()
PluginInterface
getDescription
in interface PluginInterface
public PluginType getPluginType()
PluginInterface
getPluginType
in interface PluginInterface
public Map<String,DataType> getParametersInfo()
NotificationAdaptorInterface
getParametersInfo
in interface NotificationAdaptorInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |