Class MailMBean

All Implemented Interfaces:
MBeanService, MonitorCallback, Closeable, AutoCloseable, Runnable

public class MailMBean extends MBeanRepository<ecmwf.common.ecaccess.MailMessage>
The Class MailMBean.
  • Constructor Details

    • MailMBean

      public MailMBean(String name)
      Instantiates a new mail m bean.
      Parameters:
      name - the name
    • MailMBean

      public MailMBean(String group, String name)
      Instantiates a new mail m bean.
      Parameters:
      group - the group
      name - the name
  • Method Details

    • getStatus

      public String getStatus(ecmwf.common.ecaccess.MailMessage message)
      Gets the status. Gets the status.
      Overrides:
      getStatus in class MBeanRepository<ecmwf.common.ecaccess.MailMessage>
      Parameters:
      message - the object
      Returns:
      the status
    • getMailInterfaces

      public MailInterface[] getMailInterfaces()
      Gets the mail interfaces.
      Returns:
      the mail interfaces
    • sendMail

      public void sendMail(String from, String to, String subject, String content)
      Send mail.
      Parameters:
      from - the from
      to - the to
      subject - the subject
      content - the content
    • sendMail

      public void sendMail(String from, String to, String cc, String subject, String content, String attachmentName, String attachmentContent)
      Send mail.
      Parameters:
      from - the from
      to - the to
      cc - the cc
      subject - the subject
      content - the content
      attachmentName - the attachment name
      attachmentContent - the attachment content
    • initialize

      public void initialize()
      Initialize. Initialize.
      Overrides:
      initialize in class ECaccessScheduler
    • nextStep

      public int nextStep()
      Next step. Next step.
      Specified by:
      nextStep in class ECaccessScheduler
      Returns:
      the int
    • shutdown

      public void shutdown()
      Shutdown. Shutdown. Shutdown.
      Overrides:
      shutdown in class MBeanScheduler
    • shutdown

      public void shutdown(boolean graceful)
      Shutdown.
      Parameters:
      graceful - the graceful