|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAgent
An agent is an active entity associated to a Project
that does
periodic maintenance tasks.
Implementations of this class do specific actions, as populating the repository from files on disc or in a mailbox, removing old and unused contents, or just moving contents that match a query to a specific category.
Method Summary | |
---|---|
java.lang.String |
getName()
Returns agent id |
long |
getPeriod()
Returns the time between two consecutive task executions, in miliseconds. |
void |
run(Project prj)
Method to be called every getPeriod() miliseconds. |
void |
setActor(User actor)
Sets the actor that will be used to do actions |
void |
setName(java.lang.String name)
Sets the agent id. |
void |
setPeriod(long period)
Sets the time lapse between two consecutive task executions, in miliseconds. |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
id
- The new agent idlong getPeriod()
void setPeriod(long period)
period
- Time period for executionvoid run(Project prj)
getPeriod()
miliseconds. This method
performs the agent task.
prj
- The project this agent is working onvoid setActor(User actor)
actor
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |