Class MailMBean
java.lang.Object
ecmwf.common.technical.ThreadService.ConfigurableRunnable
ecmwf.common.technical.WakeupThread
ecmwf.common.ecaccess.ECaccessScheduler
ecmwf.common.ecaccess.MBeanScheduler
ecmwf.common.ecaccess.MBeanRepository<ecmwf.common.ecaccess.MailMessage>
ecmwf.common.ecaccess.MailMBean
- All Implemented Interfaces:
MBeanService,MonitorCallback,Closeable,AutoCloseable,Runnable
The Class MailMBean.
-
Field Summary
Fields inherited from class ecmwf.common.ecaccess.ECaccessScheduler
NEXT_STEP_ABORT, NEXT_STEP_CONTINUE, NEXT_STEP_DELAY, NEXT_STEP_INIT, SCHEDULER_STATE_CLOSING, SCHEDULER_STATE_JAMMED, SCHEDULER_STATE_OFFLINE, SCHEDULER_STATE_ONHOLD, SCHEDULER_STATE_ONLINE, SCHEDULER_STATE_OPENING, states, steps -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the mail interfaces.getStatus(ecmwf.common.ecaccess.MailMessage message) Gets the status.voidInitialize.intnextStep()Next step.voidSend mail.voidsendMail(String from, String to, String cc, String subject, String content, String attachmentName, String attachmentContent) Send mail.voidshutdown()Shutdown.voidshutdown(boolean graceful) Shutdown.Methods inherited from class ecmwf.common.ecaccess.MBeanRepository
clear, containsKey, containsValue, getAttribute, getComparator, getKey, getList, getList, getMBeanInfo, getSize, getStatus, getValue, getWakeup, invoke, put, removeKey, removeValue, setComparator, setMaxAuthorisedSize, setWakeup, sortMethods inherited from class ecmwf.common.ecaccess.MBeanScheduler
close, getMonitorName, setAttributeMethods inherited from class ecmwf.common.ecaccess.ECaccessScheduler
configurableRun, deactivateMonitor, getActivity, getDelay, getJammedTimeout, getLastStepTime, getMonitorManager, getNextStep, getSchedulerState, getStartDate, getStepTime, isInitialized, isJammed, isOnHold, isRunning, onHold, setDelay, setJammedTimeout, setOnhold, setTimeRanges, start, wakeupMethods inherited from class ecmwf.common.technical.WakeupThread
isSleeping, waitForMethods inherited from class ecmwf.common.technical.ThreadService.ConfigurableRunnable
execute, execute, getContextClassLoader, getPriority, getThreadName, interrupt, interrupted, isAlive, isStarted, join, join, run, setContextClassLoader, setForceCookie, setInheritCookie, setPriority, setThreadNameAndCookie
-
Constructor Details
-
MailMBean
-
MailMBean
-
-
Method Details
-
getStatus
Gets the status. Gets the status.- Overrides:
getStatusin classMBeanRepository<ecmwf.common.ecaccess.MailMessage>- Parameters:
message- the object- Returns:
- the status
-
getMailInterfaces
-
sendMail
-
sendMail
public void sendMail(String from, String to, String cc, String subject, String content, String attachmentName, String attachmentContent) Send mail.- Parameters:
from- the fromto- the tocc- the ccsubject- the subjectcontent- the contentattachmentName- the attachment nameattachmentContent- the attachment content
-
initialize
-
nextStep
public int nextStep()Next step. Next step.- Specified by:
nextStepin classECaccessScheduler- Returns:
- the int
-
shutdown
-
shutdown
public void shutdown(boolean graceful) Shutdown.- Parameters:
graceful- the graceful
-