Java Dynamic Management Kit 3.2 Programming Guide
[ Previous ][ Fast Back ]Chapter 6. C-Beans[ Fast Forward ][ Next ]

Overview of the mogen Compiler

The mogen compiler takes the compiled Java class of an m-bean and generates the Java interface and Java stubs of a c-bean. The Java stubs consist of Java source code that implements the interface. To develop a Java manager with code generated by mogen, you call the methods of the c-bean's interface. This allows you to manipulate the corresponding m-bean on an agent. For more information, see Operations on an Agent in Chapter 7.

Options of the mogen compiler enable you to modify the characteristics of the stubs you generate from an m-bean. For example, options are available that enable you to generate read-only or read-write stubs. By generating from the same m-bean a set of stubs with different characteristics, you can develop a Java manager whose behavior is modified at runtime, depending on which stubs are loaded. For example, when the read-only stubs are loaded, the Java manager will not be able to modify properties in the m-bean.


[ Previous ][ Home ][ Next ]
Interface and Stub of a C-Bean[ Up ]Command for Starting mogen