|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.semoa.agent.RoundtripAgent examples.distcontrol.SearchAgent
An agents which is intended to wander round and check for critical files
on different storages. The search-engine is provided by
the DistControlService
, which is expected at the visited
servers.
Field Summary | |
private List |
files_
An ordered list of critical files the agent has collected yet. |
private FileHandler |
handler_
DOCUMENT ME! |
private static String |
LOGFILE
Defines where the log file is stored in the agent's corpus. |
private static int |
state_
Represents the state of the agent's lifecycle. |
Fields inherited from class de.fhg.igd.semoa.agent.RoundtripAgent |
debug_, env_, MAX_RETRIES, mob_, start_, time_, vars_ |
Constructor Summary | |
SearchAgent(FileHandler handler)
Creates the agent and initializes the member fields properly. |
Method Summary | |
private String |
currentLocation()
DOCUMENT ME! |
private String |
currentURL()
DOCUMENT ME! |
protected void |
finish()
DOCUMENT ME! |
String |
getLog()
DOCUMENT ME! |
void |
log(String message)
Appends at message line at the end of the log file in the agent's corpus. |
protected void |
perform()
DOCUMENT ME! |
private void |
searchfiles()
DOCUMENT ME! |
Methods inherited from class de.fhg.igd.semoa.agent.RoundtripAgent |
getHopNumber, onRunning, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private List files_
private static int state_
private static final String LOGFILE
mutable/log.txt
private FileHandler handler_
Constructor Detail |
public SearchAgent(FileHandler handler)
handler
- DOCUMENT ME!Method Detail |
protected void perform()
perform
in class RoundtripAgent
protected void finish()
finish
in class RoundtripAgent
private void searchfiles()
private String currentLocation()
private String currentURL()
public String getLog()
public void log(String message)
LOGFILE
.
message
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |