Contents:
This is a simple example to illustrate the usage of Cascading
service
provided by the WebNMS JMX implementation. This creates a
Master-Sub
agent architecture in Multi-Protocol Agent.
__________________________________________________________________________________________________________________________
Cascader Service helps to obtain the Master-SubAgent
architecture in the Multi-Protocol Agent. This example contains two
agents, one containing the Cascader Service (DynamicJmxAgent.java)
which acts as the Master Agent and the other agent
(StandardJmxAgent.java) acts as the SubAgent.
Master Agent:
The
protocol adaptor supported are HTML at port 8030
Sub Agent:
The
protocol adaptor supported are RMI at port 1099.
This example starts both the Master and Sub Agents and the cascader
service is used to cascade and mirror the MBeans available in the Sub
Agent on the Master Agent side.
__________________________________________________________________________________________________________________________
Source files
Following are the generated source files,
Go to WebNMS/JavaAgent/examples/jmx/cascader directory in the command prompt and type,
compile *.java [Windows] (or)
sh compile.sh *.java [Linux/Solaris]
This compiles the source files and puts it in the respective directory.
To start the agent, go to WebNMS/JavaAgent/examples/jmx/cascader directory in the command prompt and
1. Run the startMasterAgent.bat (for Windows) or startMasterAgent.sh (for Linux/Solaris) from the command prompt
By default,
(a) the HTML Adaptor Server will be running on 8030
2. Similarly, run the startSubAgent.bat or startSubAgent.sh from the command prompt
By default,
(a)
the RMI Connector Server will be started at port 1099
Testing the Agents and Inferring the
Output

Copyright (c) 2009 ZOHO Corp. All Rights Reserved.