Documentation Home
> Java Dynamic Management Kit 4.2 Tutorial
Java Dynamic Management Kit 4.2 Tutorial
Book Information
Preface
Part I Instrumentation through MBeans
Chapter 1 Standard MBeans
Exposing the MBean Interface
Attributes
Operations
Implementing the MBean
Running the Standard MBean Example
Chapter 2 Dynamic MBeans
Exposing the Management Interface
The DynamicMBean Interface
The MBean Metadata Classes
Implementing a Dynamic MBean
Dynamic Programming Issues
The getMBeanInfo Method
Generic Attribute Getters and Setters
Bulk Getters and Setters
Generic Operation Invoker
Running the Dynamic MBean Example
Comparison with the SimpleStandard Example
Dynamic MBean Execution Time
Chapter 3 Model MBeans
The RequiredModelMBean Class
Model MBean Metadata
The Target Object(s)
Creating the Model MBean
Running the Model MBean Example
Part II Agent Applications
Chapter 4 The MBean Server in a Minimal Agent
MBean Server Classes
The MBeanServer Interface
The MBean Server Implementation and Factory
The Minimal Agent
Referencing MBeans
Object Names
Domains
Key Properties
Usage
The ObjectInstance of an MBean
A Minimalist Agent
Running the Minimal Agent Example
Chapter 5 The HTML Protocol Adaptor
The Agent View
The MBean List
The MBean Server Delegate
The MBean View
The Header and Description
The Table of Attributes
The Operations
Agent Administration
Instantiating and Managing MBeans
Filtering MBeans
Chapter 6 The Base Agent
The Agent Application
Creating an MBean (Method 1)
Creating an MBean (Method 2)
Creating an MBean (Method 3)
Managing MBeans
Filtering MBeans
Running the Base Agent Example
Setting Trace Messages
Agent Output
Chapter 7 The Notification Mechanism
Overview
MBean Server Delegate Notifications
The NotificationBroadcaster Interface
The NotificationListener Interface
Adding a Listener Through the MBean Server
Attribute Change Notifications
The NotificationBroadcasterSupport Class
The Attribute Change Listener
Adding a Listener Directly to an MBean
Running the Agent Notification Example
Part III Remote Management Applications
Chapter 8 Protocol Connectors
Connector Servers
Instantiating an RMI Connector Server
Connector States
Connector Clients
The RemoteMBeanServer Interface
Establishing a Connection
Managing MBeans Remotely
Creating and Unregistering MBeans in the Agent
Accessing MBean Attributes and Operations
Creating and Accessing Dynamic MBeans
Running the Simple Client Example
The Heartbeat Mechanism
Configuring the Heartbeat
Receiving Heartbeat Notifications
Running the Heartbeat Example
Chapter 9 MBean Proxies
The Proxy Mechanism
Local and Remote Proxies
The Proxy Interface
Standard MBean Proxies
Generating Proxies for Standard MBeans
Using Standard MBean Proxies
Running the Standard Proxy Example
Generic Proxies
Running the Generic Proxy Example
Proxies for Java DMK Components
Proxy Packages
Compiling the Proxy Classes
Chapter 10 Notification Forwarding
Registering Manager-Side Listeners
The Agent-Side Broadcaster
The Manager-Side Listener
Adding a Listener Through the Connector
Push Mode
Pull Mode
Periodic Forwarding
On-Demand Forwarding
Agent-Side Buffering
Buffering Specifics
Buffering Generalities
Running the Notification Forwarding Example
Chapter 11 Access Control and Security
Password-Based Authentication
Running the Example with Authentication
Context Checking
The Filter Mechanism
The Context Implementation
Running the Example with Context Checking
The HTTPS Connector
1. Install All Software
2. Extend Your Java Runtime Libraries
3. Designate your Security Provider
4. Generate Public and Private Keys
5. Export a Local Certificate
6. Import all Remote Certificates
7. Run Your Java Dynamic Management Agent
8. Run Your Management Application
Part IV Agent Services
Chapter 12 The M-Let Class Loader
The M-Let Loader (JDK 1.1)
Loading MBeans from a URL
Shortcut for Loading MBeans
Running the M-Let Agent Example
M-Let Loading from a Manager (JDK1.1)
Asking the Agent to Load Classes
Running the M-Let Manager Example
The M-Let Loader (Java 2)
Loading MBeans from a URL
Shortcut for Loading MBeans
Loading MBeans Directly
Running the M-Let Agent Example
M-Let Loading from a Manager (Java 2)
Asking the Agent to Load Classes
Running the M-Let Manager Example
Secure Class Loading
Security Manager (JDK 1.1)
Code Signing (JDK 1.1)
Code Signing (Java 2)
Chapter 13 The Relation Service
Defining Relations
Defining Role Information
Defining Relation Types
Creating Relations
Operations of the Relation Service
Query Operations
Accessing Roles
Maintaining Consistency
Relation Service Notifications
Objects Representing Relations
The RelationTypeSupport Class
The RelationSupport Class
Running the Relation Service Example
Chapter 14 Cascading Agents
The CascadingAgent MBean
The Mirror MBeans in the Master Agent
The Class of a Mirror MBean
Cascading Issues
Dynamic Mirroring
MBean Filtering
Naming in Cascading Agents
Running the Cascading Example
Chapter 15 The Discovery Service
Active Discovery
The Discovery Client
Performing a Discovery Operation
Unicast Response Mode
Multicast Response Mode
Passive Discovery
The Discovery Responder
Discovery Monitor
Discovery Responder Notifications
Running the Discovery Example
Part V SNMP Interoperability
Chapter 16 Creating an SNMP Agent
MIB Development Process
Generating MIB MBeans
Implementing the MIB
Compiling the MBeans and Agents
The SNMP Protocol Adaptor
Launching the SNMP Adaptor
Creating MIB MBeans
Binding the MIB MBeans
Accessing a MIB MBean
Managing the SNMP Adaptor
Running the SNMP Agent Example
Sending Traps
Specifying the Trap Destination
Using an ACL Trap Group
Specifying the Hostname Directly
Traps in the Agent Example
Stand-Alone SNMP Agents
Running the Stand-Alone Agent Example
Chapter 17 Developing an SNMP Manager
The Synchronous Manager Example
SNMP Trap Handler
Running the SyncManager Example
The Asynchronous Manager Example
The Response Handler
Running the AsyncManager Example
The Inform Request Example
Sending an Inform Request
Receiving Inform Requests
Running the Inform Request Example
Chapter 18 Security Mechanisms in the SNMP Toolkit
Access Control Lists (ACL)
ACL File Format
Format of the acl Group
Format of the trap Group
Enabling Access Control
Custom Access Control
Message-Level Security
Implementing the SnmpPduFactory Interface
Using a Custom PDU Factory
Running the Secure Agent Example
SNMP Manager Security
Chapter 19 Implementing an SNMP Proxy
The Proxy Roles
The Master Agent
The Sub-Agent
The Manager Application
The SNMP Proxy Implementation
Running the SNMP Proxy Example
© 2010, Oracle Corporation and/or its affiliates