public class MonitorClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
app |
private String |
cluster |
private boolean |
collectSpringMethodEnable |
private boolean |
collectSqlEnable |
private boolean |
collectSqlWallEnable |
private boolean |
collectWebAppEnable |
private boolean |
collectWebURIEnable |
private MonitorDao |
dao |
private static long |
DEFAULT_TIME_BETWEEN_COLLECT |
private String |
domain |
private String |
host |
private String |
ip |
private static Log |
LOG |
private int |
pid |
private ScheduledExecutorService |
scheduler |
private int |
schedulerThreadSize |
private long |
timeBetweenSpringCollect |
private long |
timeBetweenSqlCollect |
private long |
timeBetweenWebUriCollect |
private TimeUnit |
timeUnit |
| 构造器和说明 |
|---|
MonitorClient() |
private static final Log LOG
private static final long DEFAULT_TIME_BETWEEN_COLLECT
private ScheduledExecutorService scheduler
private int schedulerThreadSize
private long timeBetweenSqlCollect
private long timeBetweenSpringCollect
private long timeBetweenWebUriCollect
private TimeUnit timeUnit
private boolean collectSqlEnable
private boolean collectSqlWallEnable
private boolean collectSpringMethodEnable
private boolean collectWebAppEnable
private boolean collectWebURIEnable
private MonitorDao dao
private String domain
private String app
private String cluster
private String host
private String ip
private int pid
public void configFromProperty(Properties properties)
public void stop()
public void start()
public ScheduledExecutorService getScheduler()
public void setScheduler(ScheduledExecutorService scheduler)
public void checkInst()
public void collectSql()
private MonitorContext createContext()
private void collectSpringMethod()
private void collectWebURI()
public List<JdbcSqlStatValue> loadSqlList(Map<String,Object> filters)
public MonitorDao getDao()
public void setDao(MonitorDao dao)
public long getTimeBetweenSqlCollect()
public void setTimeBetweenSqlCollect(long timeBetweenSqlCollect)
public long getTimeBetweenSpringCollect()
public void setTimeBetweenSpringCollect(long timeBetweenSpringCollect)
public long getTimeBetweenWebUriCollect()
public void setTimeBetweenWebUriCollect(long timeBetweenWebUriCollect)
public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
public boolean isCollectSqlEnable()
public void setCollectSqlEnable(boolean collectSqlEnable)
public boolean isCollectSqlWallEnable()
public void setCollectSqlWallEnable(boolean collectSqlWallEnable)
public boolean isCollectSpringMethodEnable()
public void setCollectSpringMethodEnable(boolean collectSpringMethodEnable)
public boolean isCollectWebAppEnable()
public void setCollectWebAppEnable(boolean collectWebAppEnable)
public boolean isCollectWebURIEnable()
public void setCollectWebURIEnable(boolean collectWebURIEnable)
public int getSchedulerThreadSize()
public void setSchedulerThreadSize(int schedulerThreadSize)
public String getDomain()
public void setDomain(String domain)
public String getApp()
public void setApp(String app)
public String getCluster()
public void setCluster(String cluster)
public String getHost()
public void setHost(String host)
public int getPid()
public void setPid(int pid)
public static InetAddress getLocalIPAddress()
Copyright © 2013–2019 Alibaba Group. All rights reserved.