SpideringStoppedEvent.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
- package net.javacoding.jspider.api.event.engine;
- import net.javacoding.jspider.api.event.EventVisitor;
- import net.javacoding.jspider.api.model.Resource;
- import net.javacoding.jspider.api.model.Site;
- import net.javacoding.jspider.core.storage.Storage;
- /**
- *
- * $Id: SpideringStoppedEvent.java,v 1.3 2003/03/28 17:26:25 vanrogu Exp $
- *
- * @author G黱ther Van Roey
- */
- public class SpideringStoppedEvent extends EngineRelatedEvent {
- protected Storage storage;
- public SpideringStoppedEvent(Storage storage) {
- this.storage = storage;
- }
- public boolean isFilterable() {
- return false;
- }
- public String getComment() {
- return "Spidering stopped";
- }
- public void accept(EventVisitor visitor) {
- visitor.visit(this);
- }
- public Resource[] getResources ( ) {
- return storage.getResourceDAO().getAllResources ( );
- }
- public Site[] getSites ( ) {
- return storage.getSiteDAO().findAll ( );
- }
- }