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.void
Initialize.int
nextStep()
Next step.void
Send mail.void
sendMail
(String from, String to, String cc, String subject, String content, String attachmentName, String attachmentContent) Send mail.void
shutdown()
Shutdown.void
shutdown
(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, sort
Methods inherited from class ecmwf.common.ecaccess.MBeanScheduler
close, getMonitorName, setAttribute
Methods 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, wakeup
Methods inherited from class ecmwf.common.technical.WakeupThread
isSleeping, waitFor
Methods 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:
getStatus
in 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:
nextStep
in classECaccessScheduler
- Returns:
- the int
-
shutdown
-
shutdown
public void shutdown(boolean graceful) Shutdown.- Parameters:
graceful
- the graceful
-