public class SpiderStatus extends Object implements SpiderStatusMXBean
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
protected SpiderMonitor.MonitorSpiderListener |
monitorSpiderListener |
protected Spider |
spider |
Constructor and Description |
---|
SpiderStatus(Spider spider,
SpiderMonitor.MonitorSpiderListener monitorSpiderListener) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorPageCount() |
List<String> |
getErrorPages() |
int |
getLeftPageCount() |
String |
getName() |
int |
getPagePerSecond() |
Date |
getStartTime() |
String |
getStatus() |
int |
getSuccessPageCount() |
int |
getThread() |
int |
getTotalPageCount() |
void |
start() |
void |
stop() |
protected final Spider spider
protected org.slf4j.Logger logger
protected final SpiderMonitor.MonitorSpiderListener monitorSpiderListener
public SpiderStatus(Spider spider, SpiderMonitor.MonitorSpiderListener monitorSpiderListener)
public String getName()
getName
in interface SpiderStatusMXBean
public int getLeftPageCount()
getLeftPageCount
in interface SpiderStatusMXBean
public int getTotalPageCount()
getTotalPageCount
in interface SpiderStatusMXBean
public int getSuccessPageCount()
getSuccessPageCount
in interface SpiderStatusMXBean
public int getErrorPageCount()
getErrorPageCount
in interface SpiderStatusMXBean
public List<String> getErrorPages()
getErrorPages
in interface SpiderStatusMXBean
public String getStatus()
getStatus
in interface SpiderStatusMXBean
public int getThread()
getThread
in interface SpiderStatusMXBean
public void start()
start
in interface SpiderStatusMXBean
public void stop()
stop
in interface SpiderStatusMXBean
public Date getStartTime()
getStartTime
in interface SpiderStatusMXBean
public int getPagePerSecond()
getPagePerSecond
in interface SpiderStatusMXBean
Copyright © 2017. All rights reserved.