|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.simongibbs.scoof.CodeBase
Manages the execution of a search process and co-ordinates all related activities.
Field Summary | |
static int |
DEFAULT_BLOCK_SIZE
|
Constructor Summary | |
CodeBase(java.lang.String name,
java.io.File root)
Constructor for CodeBase. |
Method Summary | |
void |
announceTarget(Target newTarget)
|
java.util.Collection |
getBadFiles()
Provides access to the bag of files which could not be opened or processed sucessfully. |
int |
getBlockSize()
Retrieves the number of normalised lines to use to form a block for hash generation. |
java.util.Collection |
getHits()
Returns the final prepared data, although there is no guarantee of completeness unless the spider and worker threads have been checked. |
java.lang.String |
getName()
Returns the name. |
java.util.Collection |
getPassages()
Provides access to the individual code passages built in audit mode. |
Spider |
getSpider()
Returns a reference to the associated Spider. |
java.util.List |
getTargets()
Provides access to the new file queue. |
java.util.Collection |
getTaskList()
Obtain a collection of outstanding tasks. |
boolean |
isInAuditMode()
Audit mode signals to collaborating classes to append identified passages to the passages collection. |
static void |
main(java.lang.String[] args)
|
SearchTask |
nextTask()
|
void |
search()
Triggers a spider thread and starts work on the queue. |
void |
setBlockSize(int i)
Sets a new block size, hashes will be generated for this number of consecutive lines. |
void |
setInAuditMode(boolean inAuditMode)
Specify audit modality. |
void |
setSpider(Spider spider)
Supplies a Spider so that Spidering can occur. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_BLOCK_SIZE
Constructor Detail |
public CodeBase(java.lang.String name, java.io.File root)
name
- the name of the product under analysis.root
- a starting point for a Spider.Method Detail |
public boolean isInAuditMode()
public void setInAuditMode(boolean inAuditMode)
inAuditMode
- public java.util.Collection getPassages()
public java.util.Collection getHits()
public java.lang.String getName()
public java.util.Collection getBadFiles()
public java.util.List getTargets()
public void search()
public void announceTarget(Target newTarget)
public SearchTask nextTask()
public static void main(java.lang.String[] args)
public int getBlockSize()
public void setBlockSize(int i)
i
- public Spider getSpider()
public java.util.Collection getTaskList()
public void setSpider(Spider spider)
spider
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |