public class EstimateMonitor
extends java.lang.Object
implements java.lang.Runnable
限定符和类型 | 方法和说明 |
---|---|
java.util.List<HistorySessionBean> |
getAllHistorySessionInfo()
获取所有节点的历史session信息
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllLiveSessionInfo(int timeInterval,
java.lang.String keyword)
获取存活session信息
|
java.util.List<HistorySessionBean> |
getCurrentHistorySessionInfo()
获取历史session信息
|
long |
getDiskFreeSpace() |
static EstimateMonitor |
getInstance() |
int |
getKillSessionCount(int timeInterval)
获取{timeInterval}分钟内关闭的session数目
|
long |
getMemory()
获取内存大小
|
double |
getPercent()
获取内存占用比
|
java.util.Map<java.lang.String,java.lang.Object> |
getSystemProposal()
获取磁盘临时目录等各项建议
|
boolean |
getTmpdirPrivilege() |
long |
getTmpdirSpace() |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getVisitInfoFromSession()
从Session中获取模板访问情况
|
void |
interruptIfConditionMet(java.lang.Object... targets) |
void |
killSessionById(java.lang.String[] ids,
java.lang.String username,
java.lang.String ip)
杀死session
|
void |
run() |
void |
startMonitor() |
public static EstimateMonitor getInstance()
public void run()
run
在接口中 java.lang.Runnable
public void interruptIfConditionMet(java.lang.Object... targets)
public void startMonitor()
public java.util.List<HistorySessionBean> getCurrentHistorySessionInfo() throws java.lang.Exception
java.lang.Exception
public java.util.List<HistorySessionBean> getAllHistorySessionInfo() throws java.lang.Exception
java.lang.Exception
public java.util.Map<java.lang.String,java.lang.Object> getAllLiveSessionInfo(int timeInterval, java.lang.String keyword) throws java.lang.Exception
timeInterval
- keyword
- java.lang.Exception
public int getKillSessionCount(int timeInterval) throws java.lang.Exception
java.lang.Exception
public void killSessionById(java.lang.String[] ids, java.lang.String username, java.lang.String ip) throws java.lang.Exception
ids
- username
- ip
- java.lang.Exception
public double getPercent() throws java.lang.Exception
java.lang.Exception
public long getMemory() throws java.lang.Exception
java.lang.Exception
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getVisitInfoFromSession() throws java.lang.Exception
java.lang.Exception
public java.util.Map<java.lang.String,java.lang.Object> getSystemProposal() throws java.lang.Exception
java.lang.Exception
public long getDiskFreeSpace()
public long getTmpdirSpace()
public boolean getTmpdirPrivilege()