websphinx.workbench
Class MirrorAction

java.lang.Object
  |
  +--websphinx.workbench.MirrorAction
All Implemented Interfaces:
Action, CrawlListener, java.io.Serializable

public class MirrorAction
extends java.lang.Object
implements Action, CrawlListener

See Also:
Serialized Form

Field Summary
(package private)  java.io.File dir
           
(package private)  java.lang.String directory
           
(package private)  Mirror mirror
           
(package private)  boolean useBrowser
           
 
Constructor Summary
MirrorAction(java.lang.String directory, boolean useBrowser)
           
 
Method Summary
 void cleared(CrawlEvent event)
          Notify that the crawler's state was cleared.
 void connected(Crawler crawler)
           
 void disconnected(Crawler crawler)
           
 boolean equals(java.lang.Object object)
           
 java.lang.String getDirectory()
           
 boolean getUseBrowser()
           
 void paused(CrawlEvent event)
          Notify that the crawler is paused.
private  boolean same(java.lang.String s1, java.lang.String s2)
           
private  void showit()
           
 void started(CrawlEvent event)
          Notify that the crawler started.
 void stopped(CrawlEvent event)
          Notify that the crawler ran out of links to crawl
 void timedOut(CrawlEvent event)
          Notify that the crawler timed out.
 void visit(Page page)
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

directory

java.lang.String directory

useBrowser

boolean useBrowser

dir

transient java.io.File dir

mirror

transient Mirror mirror
Constructor Detail

MirrorAction

public MirrorAction(java.lang.String directory,
                    boolean useBrowser)
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

same

private boolean same(java.lang.String s1,
                     java.lang.String s2)

getDirectory

public java.lang.String getDirectory()

getUseBrowser

public boolean getUseBrowser()

showit

private void showit()

visit

public void visit(Page page)
Specified by:
visit in interface Action

connected

public void connected(Crawler crawler)
Specified by:
connected in interface Action

disconnected

public void disconnected(Crawler crawler)
Specified by:
disconnected in interface Action

started

public void started(CrawlEvent event)
Notify that the crawler started.
Specified by:
started in interface CrawlListener

stopped

public void stopped(CrawlEvent event)
Notify that the crawler ran out of links to crawl
Specified by:
stopped in interface CrawlListener

cleared

public void cleared(CrawlEvent event)
Notify that the crawler's state was cleared.
Specified by:
cleared in interface CrawlListener

timedOut

public void timedOut(CrawlEvent event)
Notify that the crawler timed out.
Specified by:
timedOut in interface CrawlListener

paused

public void paused(CrawlEvent event)
Notify that the crawler is paused.
Specified by:
paused in interface CrawlListener