public class JavaMailJMSStatistics extends NotificationBroadcasterSupport implements JavaMailJMSStatisticsLocal, DynamicMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_MAIL_SEND_FAILURE |
static ObjectName |
JMX_OBJECT_NAME |
static String |
NOTIFICATION_TYPE_SUCCESS |
| Constructor and Description |
|---|
JavaMailJMSStatistics() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributeNames) |
MBeanInfo |
getMBeanInfo() |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
void |
onFailure(javax.mail.internet.MimeMessage mimeMessage,
javax.mail.Address[] addresses,
Exception ex) |
void |
onSuccess(javax.mail.internet.MimeMessage mimeMessage,
javax.mail.Address[] addresses) |
void |
registerInJMX() |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
void |
unregisterFromJMX() |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationpublic static final String NOTIFICATION_TYPE_SUCCESS
public static final String JAVA_MAIL_SEND_FAILURE
public static final ObjectName JMX_OBJECT_NAME
@PostConstruct public void registerInJMX()
@PreDestroy public void unregisterFromJMX()
public void onSuccess(javax.mail.internet.MimeMessage mimeMessage,
javax.mail.Address[] addresses)
onSuccess in interface JavaMailJMSStatisticsLocalpublic void onFailure(javax.mail.internet.MimeMessage mimeMessage,
javax.mail.Address[] addresses,
Exception ex)
onFailure in interface JavaMailJMSStatisticsLocalpublic AttributeList getAttributes(String[] attributeNames)
getAttributes in interface DynamicMBeanpublic Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanCopyright © 2016 jsoftware.org. All rights reserved.