|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sconman.agents.AbstractAgent net.sourceforge.sconman.agents.FileAdderAgent
public class FileAdderAgent
This class is an IAgent
implementation that
checks periodically in a filesystem directory for contents to be added to
the project.
Field Summary |
---|
Fields inherited from class net.sourceforge.sconman.agents.AbstractAgent |
---|
actor |
Constructor Summary | |
---|---|
FileAdderAgent()
Constructor for FileAdderAgent. |
Method Summary | |
---|---|
java.lang.String |
getDirPath()
Returns the dirPath. |
boolean |
isDelete()
Returns the delete. |
void |
run(Project prj)
When this agent runs, the directory at getDirPath() is traversed
looking for files on it that are added to the project's contents
repository and deleted if
|
void |
setDelete(boolean delete)
Sets the delete. |
void |
setDirPath(java.lang.String dirPath)
Sets the dirPath. |
Methods inherited from class net.sourceforge.sconman.agents.AbstractAgent |
---|
getActor, getName, getPeriod, setActor, setName, setPeriod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileAdderAgent()
Method Detail |
---|
public void run(Project prj)
getDirPath()
is traversed
looking for files on it that are added to the project's contents
repository and deleted if #getDelete
==true
run
in interface IAgent
run
in class AbstractAgent
prj
- The project where the contents will be addedpublic java.lang.String getDirPath()
public void setDirPath(java.lang.String dirPath)
dirPath
- The dirPath to setpublic boolean isDelete()
public void setDelete(boolean delete)
delete
- The delete to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |