protected static class

JvmMemGCTableMetaImpl.GCTableFilter

extends Object
java.lang.Object
   ↳ sun.management.snmp.jvminstr.JvmMemGCTableMetaImpl.GCTableFilter

Class Overview

This class acts as a filter over the SnmpTableHandler used for the JvmMemoryManagerTable. It filters out (skip) all MemoryManagerMXBean that are not instances of GarbageCollectorMXBean so that only Garbage Collectors are seen. This is a better solution than relying on ManagementFactory.getGarbageCollectorMXBeans() because it makes it possible to guarantee the consistency betwen the MemoryManager table and the GCTable since both will be sharing the same cache.

Summary

Protected Constructors
JvmMemGCTableMetaImpl.GCTableFilter()
Public Methods
boolean contains(SnmpTableHandler handler, SnmpOid index)
Returns true if the given index is present.
Object getData(SnmpTableHandler handler, SnmpOid index)
Returns the data associated with the given index.
SnmpOid getNext(SnmpCachedData datas, SnmpOid index)
Returns the index that immediately follows the given index.
SnmpOid getNext(SnmpTableHandler handler, SnmpOid index)
Returns the index that immediately follows the given index.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected JvmMemGCTableMetaImpl.GCTableFilter ()

Public Methods

public boolean contains (SnmpTableHandler handler, SnmpOid index)

Returns true if the given index is present.

public Object getData (SnmpTableHandler handler, SnmpOid index)

Returns the data associated with the given index. If the given index is not found, null is returned. Note that returning null does not necessarily means that the index was not found.

public SnmpOid getNext (SnmpCachedData datas, SnmpOid index)

Returns the index that immediately follows the given index. The returned index is strictly greater than the given index, and is contained in the table.
If the given index is null, returns the first index in the table.
If there are no index after the given index, returns null. This method is an optimization for the case where the SnmpTableHandler is in fact an instance of SnmpCachedData.

public SnmpOid getNext (SnmpTableHandler handler, SnmpOid index)

Returns the index that immediately follows the given index. The returned index is strictly greater than the given index, and is contained in the table.
If the given index is null, returns the first index in the table.
If there are no index after the given index, returns null.