public class SpiderMonitor extends Object
Modifier and Type | Class and Description |
---|---|
class |
SpiderMonitor.MonitorSpiderListener |
Modifier | Constructor and Description |
---|---|
protected |
SpiderMonitor() |
Modifier and Type | Method and Description |
---|---|
protected SpiderStatusMXBean |
getSpiderStatusMBean(Spider spider,
SpiderMonitor.MonitorSpiderListener monitorSpiderListener) |
static SpiderMonitor |
instance() |
SpiderMonitor |
register(Spider... spiders)
Register spider for monitor.
|
protected void |
registerMBean(SpiderStatusMXBean spiderStatus) |
public SpiderMonitor register(Spider... spiders) throws JMException
spiders
- spidersJMException
- JMExceptionprotected SpiderStatusMXBean getSpiderStatusMBean(Spider spider, SpiderMonitor.MonitorSpiderListener monitorSpiderListener)
public static SpiderMonitor instance()
protected void registerMBean(SpiderStatusMXBean spiderStatus) throws MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
Copyright © 2017. All rights reserved.