mam.agent
Class AnalyzeAgent

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--mam.agent.Agent
              |
              +--mam.agent.AnalyzeAgent

public class AnalyzeAgent
extends Agent

Analyze Agent looks at the logs generated by the Listen Agent and tries to decipher them...


Inner Class Summary
 public classAnalyzeAgent.javaFilter
           
 public classAnalyzeAgent.myfileFilter
           

Field Summary
 private ArrayListallTimes
           
 private AgentTextUIf
           
 protected final static StringLISTEN_DIR
           
 protected final static StringLISTEN_LOG_FILENAME
           
 private intmode
           
 private javaFiltermyFilter
           
 private ElementparsedInfo
           
 private intparseMode
           
 private File[]perSessionFiles
           
 private intproblems
           
 private CalendartempTime
           

Fields inherited from class mam.agent.Agent
AGENT_ACCESS_STATISTICS_TAG_NAME, AGENT_PROPERTIES_TAG_NAME, AGENT_TRAITS_TAG_NAME, ALL_AGENTS_ROUTING_TAG, DEFAULT_TAG_NAME, m_accessStatisticsGroup, m_agentProperties, m_facility, m_incomingMessageQueue, m_shutdown, m_sleepManager, ROLE_TAG_NAME

Fields inherited from class java.lang.Thread
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY

Constructor Summary
AnalyzeAgent()
           

Method Summary
 private voidanalyzer(Element elem)
           
 private CalendarconvertTime(String time)
           
 private voiddoLoad()
           
 private voiddoSave()
           
 private voidfooter()
           
 voidhandleCommand(String command)
           
 voidhandleDoStartMissionMessage(AgentMessage m)
           
 private voidparse(Element elem)
           
 private voidprintAttrib(Element elem)
           
 private StringprintTime(String time)
           
 private voidreport()
           
 private intsetupAnalyze()
           

Methods inherited from class mam.agent.Agent
enqueueMessage, fromXmlElement, getAccessStatisticsGroup, getAccount, getAgentProperties, getAgentTraits, getDescription, getFacility, getMamId, getNickname, getQuote, getRole, getRoutingTagToSelf, getXmlSerializable, handleDoAgentShutdownMessage, handleGetAccessStatisticsMessage, handleGetAgentPropertiesMessage, handleGetAgentTraitsMessage, handleGetQuoteMessage, handleMessages, handleSetDescriptionMessage, handleSetNicknameMessage, idleActivity, invokeMessageHandler, registerRoutingTags, requiresPersistence, run, setAccount, setAgentTraits, setDescription, setFacility, setMamId, setNickname, setRole, setXmlSerializable, toString, toXmlElement, toXmlElement, unregisterRoutingTags

Methods inherited from class java.lang.Thread
currentThread, yield, sleep, sleep, start, stop, stop, interrupt, interrupted, isInterrupted, destroy, isAlive, suspend, resume, setPriority, getPriority, setName, getName, getThreadGroup, activeCount, enumerate, countStackFrames, join, join, join, dumpStack, setDaemon, isDaemon, checkAccess, getContextClassLoader, setContextClassLoader

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

allTimes

private ArrayList allTimes

f

private AgentTextUI f

LISTEN_DIR

protected final static String LISTEN_DIR

LISTEN_LOG_FILENAME

protected final static String LISTEN_LOG_FILENAME

mode

private int mode

myFilter

private javaFilter myFilter

parsedInfo

private Element parsedInfo

parseMode

private int parseMode

perSessionFiles

private File[] perSessionFiles

problems

private int problems

tempTime

private Calendar tempTime
Constructor Detail

AnalyzeAgent

public AnalyzeAgent()
Method Detail

analyzer

private void analyzer(Element elem)

convertTime

private Calendar convertTime(String time)

doLoad

private void doLoad()

doSave

private void doSave()

footer

private void footer()

handleCommand

public void handleCommand(String command)

handleDoStartMissionMessage

public void handleDoStartMissionMessage(AgentMessage m)

parse

private void parse(Element elem)

printAttrib

private void printAttrib(Element elem)

printTime

private String printTime(String time)

report

private void report()

setupAnalyze

private int setupAnalyze()