xmlBlaster 2.2.0 API

org.xmlBlaster.engine
Interface EventPluginMBean

All Superinterfaces:
I_AdminPlugin, I_AdminService, I_AdminUsage
All Known Implementing Classes:
EventPlugin

public interface EventPluginMBean
extends I_AdminService

JMX control for the native EventPlugin.

Author:
Marcel Ruff

Method Summary
 int clearPendingEmails()
          Depending on the configuration setting mail.collectMillis emails are collected to not send too many emails in too short period of time.
 java.lang.String dumpPendingEmails()
          Depending on the configuration setting mail.collectMillis emails are collected to not send too many emails in too short period of time.
 java.lang.String getEventTypes()
          The comma separated list of active events.
 java.lang.String getJmxDestinationConfiguration()
          The JMX configuration setup from xmlBlasterPlugins.xml
 long getMailCollectMillis()
          How long to collect outgoing emails?
 int getNumOfPendingEmails()
           
 java.lang.String getPublishDestinationConfiguration()
          The publish-message configuration setup from xmlBlasterPlugins.xml
 java.lang.String getSmtpDestinationConfiguration()
          Configuration properties of the email sink.
 java.lang.String sendPendingEmails()
          Depending on the configuration setting mail.collectMillis emails are collected to not send too many emails in too short period of time.
 java.lang.String sendTestEmail()
          Triggers a default email to test the configuration.
 void setEventTypes(java.lang.String eventTypes)
          A comma separated list of active events.
 void setMailCollectMillis(long mailCollectMillis)
           
 void setSmtpDestinationConfiguration(java.lang.String smtpDestinationConfiguration)
          Configuration properties of the email sink.
 java.lang.String triggerHeartbeatNotification()
          Manually trigger a heart beat message.
 java.lang.String triggerTestLogSevere()
          Triggers a log.severe to test the configuration.
 java.lang.String triggerTestLogWarning()
          Triggers a log.warning to test the configuration.
 
Methods inherited from interface org.xmlBlaster.util.admin.I_AdminService
activate, deActivate, isActive
 
Methods inherited from interface org.xmlBlaster.util.admin.I_AdminPlugin
getType, getVersion, isShutdown, shutdown
 
Methods inherited from interface org.xmlBlaster.util.admin.I_AdminUsage
getUsageUrl, setUsageUrl, usage
 

Method Detail

dumpPendingEmails

java.lang.String dumpPendingEmails()
Depending on the configuration setting mail.collectMillis emails are collected to not send too many emails in too short period of time. Here it is possible to look into such emails.

The default collection time is 12 hours.

Returns:
The XML dump of the pending emails.

clearPendingEmails

int clearPendingEmails()
Depending on the configuration setting mail.collectMillis emails are collected to not send too many emails in too short period of time. Here it is possible to look into such emails.

The default collection time is 12 hours.

Returns:
Number of removed emails, usually 1 as all events are collected to one mail

getNumOfPendingEmails

int getNumOfPendingEmails()

sendTestEmail

java.lang.String sendTestEmail()
Triggers a default email to test the configuration.

Returns:
A comment about the send mail

triggerTestLogSevere

java.lang.String triggerTestLogSevere()
Triggers a log.severe to test the configuration.

Returns:
A comment about the test

triggerTestLogWarning

java.lang.String triggerTestLogWarning()
Triggers a log.warning to test the configuration.

Returns:
A comment about the test

sendPendingEmails

java.lang.String sendPendingEmails()
Depending on the configuration setting mail.collectMillis emails are collected to not send too many emails in too short period of time. Here it is possible to send such emails now.

The default collection time is 12 hours.

Returns:
Comment about send emails, usually all events are collected to one mail

getMailCollectMillis

long getMailCollectMillis()
How long to collect outgoing emails?

Returns:
Returns the mailCollectMillis or -1 if no email sink is configured

setMailCollectMillis

void setMailCollectMillis(long mailCollectMillis)
Parameters:
mailCollectMillis - The mailCollectMillis to set.

getEventTypes

java.lang.String getEventTypes()
The comma separated list of active events.

Returns:
Returns the eventTypes.

setEventTypes

void setEventTypes(java.lang.String eventTypes)
A comma separated list of active events.

Parameters:
eventTypes - A comma separated list of active events

getSmtpDestinationConfiguration

java.lang.String getSmtpDestinationConfiguration()
Configuration properties of the email sink.

Returns:
Returns the comma separated properties

setSmtpDestinationConfiguration

void setSmtpDestinationConfiguration(java.lang.String smtpDestinationConfiguration)
Configuration properties of the email sink.

Parameters:
smtpDestinationConfiguration - The comma separated properties to set.

getJmxDestinationConfiguration

java.lang.String getJmxDestinationConfiguration()
The JMX configuration setup from xmlBlasterPlugins.xml

Returns:

getPublishDestinationConfiguration

java.lang.String getPublishDestinationConfiguration()
The publish-message configuration setup from xmlBlasterPlugins.xml

Returns:
Returns the publishDestinationConfiguration.

triggerHeartbeatNotification

java.lang.String triggerHeartbeatNotification()
Manually trigger a heart beat message.

Returns:
Success text

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.