public final class

AdaptorBootstrap

extends Object
java.lang.Object
   ↳ sun.management.snmp.AdaptorBootstrap

Class Overview

This class initializes and starts the SNMP Adaptor for JSR 163 SNMP Monitoring.

Summary

Nested Classes
interface AdaptorBootstrap.DefaultValues Default values for SNMP configuration properties. 
interface AdaptorBootstrap.PropertyNames Names of SNMP configuration properties. 
Public Methods
synchronized int getPort()
Get the port on which the adaptor is bound.
synchronized static AdaptorBootstrap initialize(String portStr, Properties props)
Initializes and starts the SNMP Adaptor Server.
synchronized static AdaptorBootstrap initialize()
Initializes and starts the SNMP Adaptor Server.
synchronized void terminate()
Stops the adaptor server.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public synchronized int getPort ()

Get the port on which the adaptor is bound. Returns 0 if the adaptor is already terminated.

public static synchronized AdaptorBootstrap initialize (String portStr, Properties props)

Initializes and starts the SNMP Adaptor Server.

public static synchronized AdaptorBootstrap initialize ()

Initializes and starts the SNMP Adaptor Server. If the com.sun.management.snmp.port property is not defined, simply return. Otherwise, attempts to load the config file, and then calls initialize(java.lang.String, java.util.Properties).

public synchronized void terminate ()

Stops the adaptor server.