类 MailMonitor
java.lang.Object
com.sh.mail.monitor.MailMonitor
- 所有已实现的接口:
Runnable
Description: 邮件监控
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
-
字段概要
字段修饰符和类型字段说明static intprotected org.apache.logging.log4j.Loggerstatic boolean -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleancheckReceiveServer(String mailAddr) 判断接收服务是否启动static booleancheckSendServer(String userId) 判断是发送服务是否启动static void清空附件static void通知刷新帐户信息voidrun()static voidstatic voidstartMailMonitor(int sendInterval, int receiveInterval) 启动邮件服务器static void启动发送邮件服务 20120801添加static voidstopSendServer(String[] mailAddrs) 停止服务
-
字段详细资料
-
MailServerIsRunning
public static boolean MailServerIsRunning -
log4j
protected org.apache.logging.log4j.Logger log4j -
dbAttachTimes
public static int dbAttachTimes
-
-
构造器详细资料
-
MailMonitor
public MailMonitor(int sendInterval, int receiveInterval) 构造函数- 参数:
sendInterval- 发送间隔时间receiveInterval- 接收间隔时间 V20120731强化发送帐户信息
-
MailMonitor
public MailMonitor()
-
-
方法详细资料
-
run
public void run() -
stopSendServer
停止服务- 参数:
mailAddrs- String[]
-
checkSendServer
判断是发送服务是否启动- 参数:
userId- String- 返回:
- boolean
-
checkReceiveServer
判断接收服务是否启动- 参数:
mailAddr- String- 返回:
- boolean
-
clearAttach
清空附件- 参数:
dc- DataCenter
-
refreshAccount
public static void refreshAccount()通知刷新帐户信息 -
startMailMonitor
public static void startMailMonitor(int sendInterval, int receiveInterval) 启动邮件服务器- 参数:
sendInterval- 邮件发送间隔时间receiveInterval- 邮件接收间隔时间 保留为了兼容原有版本
-
startMailMonitor
public static void startMailMonitor() -
startMailMonitor2
public static void startMailMonitor2()启动发送邮件服务 20120801添加
-