Microagent List Monitoring
Each agent contains a collection of objects called microagents. Microagents have methods through which monitoring and management is performed. Microagents represent managed entities such as the operating system's subsystems, log files, event logs, or applications. A newly launched application instrumented with AMI will dynamically appear as a microagent on its managing agent (by default, the one located on the same processor). When the instrumented application terminates, the corresponding microagent will also be removed.
Microagent list monitoring is used to track the dynamic list of microagents in an agent. Events are delivered when microagents are added and removed.
To perform this type of monitoring you simply register a MicroAgentListMonitorListener
with the AgentMonitor
. Events of type MicroAgentListMonitorEvent
are then delivered to either the onMicroAgentAdded()
or onMicroAgentRemoved()
method of the listener. The event contains an AgentInstance
object, which identifies the agent, and a MicroAgentID
object, which identifies the microagent.