![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| ||
At all three levels, the modularity also means the simple designs can be implemented rapidly, and then additional functionality can be added as needed. You can have a prototype running after your first day of development, because of the programming examples provided in the product. 1.3.2 Protocol IndependenceThe design of MBeans, agents, and managers does not depend in any way on the protocol that an agent uses for communicating with external applications. All interactions with MBeans are handled by the MBean server and are thus defined by the JMX APIs. The provided connectors rely on the API and do not expose any communication details. A connector server, connector client pair can be replaced by another pair without loss of functionality, assuming both protocols are in the network environment. Applications can thus switch protocols according to real-time conditions. For example, if a manager must access an agent behind a firewall, it can instantiate and use an HTTP connector. Because MBeans and agents are protocol independent, they can be accessed simultaneously through any number of protocols. Connector servers and protocol adaptors can handle multiple connections, so your agent needs only one of them for each protocol to which it responds. The MBean server also supports simultaneous requests, although MBeans are responsible for their own synchronization issues. New connectors for new protocols can be developed and be used without rewriting existing MBeans or external applications. All that is required is that the new connector client expose the remote API. The Java DMK 5.1 supports multihome interfaces, allowing you to work in environments where multiple network protocols are available. The multihome interface service means that Java DMK 5.1 offers complete support of the internet protocol version 6 (IPv6), provided it is running on a platform that is IPv6 compatible, namely JDK version 1.4 and higher. 1.3.3 Dynamic Extensibility and ScalabilityBy definition, all agents and manager applications developed with the Java DMK 5.1 are extensible and scalable. The library of agent services is always available. Managers can instantiate new services when needed and later remove them to minimize memory usage. This is especially useful for running agents on small footprint devices. In the same way, MBeans can be registered and be unregistered with the MBean server in an agent while the agent is running. This is useful to represent application resources that can come and go on a given host. The scalability enables an agent to adapt to the size and complexity of its managed resources, without having to be restarted or be reinstalled. The dynamic loading service can download and instantiate MBeans from an arbitrary location. Therefore, you can extend the functionality of a running agent by making new classes available at an arbitrary location and requesting that the agent load and instantiate them. This is effectively a push mechanism that can be used to deploy services and applications to customers. In addition, open MBeans contribute to the flexibility and scalability of management systems by enabling management applications to use new managed objects as the objects are created. Finally, conformance to the JMX specification ensures that all components that are compatible with the JMX specification can be incorporated into Java dynamic management agents, whether they are manageable resources, new services, or new communication components. 1.3.4 SNMPv3 ProtocolJava DMK 5.1 provides an implementation of the SNMPv3 protocol. This means that Java DMK benefits from the security and administration services offered by SNMPv3. Java DMK supports SNMPv1 and v2 fully, and implements much of SNMPv3. A single agent can respond to requests from any version of SNMP. For more information about security using the SNMPv3 protocol, see 2.6 Security. 1.3.5 SNMP Master AgentThe SNMP support in Java DMK 5.1 allows you to build a master agent. An SNMP master agent groups together several SNMP subagents and exports their information through a single point of access. The master agent performs the following two main functions.
1.4 Overview of the Product DocumentationJava DMK includes both printable and online documentation, as well as a set of programming examples. 1.4.1 Online HTML FilesYou can view HTML documentation after installation of the product. On the machine where you installed the product, open one of the following URLs in any browser: installDir/SUNWjdmk/5.1/doc/index.html The page contains links to all the product documentation that is supplied online with Java DMK. 1.4.2 Printable DocumentsComplete PDF versions of the books listed in the preceding section are also supplied with the CD--ROM release of Java DMK 5.1. These files are also located in the /doc directory on the CD-ROM. The documents are formatted for U.S. Letter paper size (8.5 × 11 inches), but they can be loaded by any appropriate document viewer or printed directly to any printer. The text area on each page fits on most standard paper sizes. 1.4.3 Programming ExamplesSample applications that demonstrate most of the functionality of the Java DMK are provided in the examples package of the product. If you installed this package, the Java source files and README text files for these applications are located in subdirectories:
The examples in the /legacy subdirectory demonstrate the features that have been deprecated in Java DMK version 5.1, but retained for reasons of backwards compatibility. Note - In the Solaris operating environment, you need to be root user to write to this directory. To compile the example programs, users should copy the examples hierarchy to a more accessible location. The README file for each example gives a brief explanation of the source files and the instructions for running its application. Further explanation for most examples is available in the Java Dynamic Management Kit 5.1 Tutorial. 1.4.4 API DocumentationThe API documentation generated by the Javadoc utility provides the full description of all classes, interfaces, and methods in the Java DMK APIs. The generated API documentation for the Java DMK is found in the following location after installation: installDir/SUNWjdmk/5.1/doc/index.html | ||
| ||
![]() |