ServletMXBean and Related Interfaces

Listing 1. This ServletMXBean interface complies with open types, which include primitive types (int, long, and boolean) and their wrapper classes, enumerations, CompositeData types, and Map and List types.

public interface ServletMXBean {
  public boolean isStateManageable();
  public boolean isStatisticsProvider();
  public boolean isEventProvider();
  public boolean isContainerMXBean();
  public List<String> getEventTypes();
  public Stats getStats();
  public String getImplClass();
}

public interface Stats {
  public Statistic getStatistic(String name);
  public Map<String, Statistic> getStatistics();
}

public interface Statistic {
  public String getName();
  public String getUnit();
  public String getDescription();
  public long getStartTime();
  public long getLastSampleTime();
}