jdk/src/java.management/share/classes/java/lang/management/MemoryManagerMXBean.java
equal
deleted
inserted
replaced
34 * An instance implementing this interface is |
34 * An instance implementing this interface is |
35 * an <a href="ManagementFactory.html#MXBean">MXBean</a> |
35 * an <a href="ManagementFactory.html#MXBean">MXBean</a> |
36 * that can be obtained by calling |
36 * that can be obtained by calling |
37 * the {@link ManagementFactory#getMemoryManagerMXBeans} method or |
37 * the {@link ManagementFactory#getMemoryManagerMXBeans} method or |
38 * from the {@link ManagementFactory#getPlatformMBeanServer |
38 * from the {@link ManagementFactory#getPlatformMBeanServer |
39 * platform <tt>MBeanServer</tt>} method. |
39 * platform MBeanServer} method. |
40 * |
40 * |
41 * <p>The <tt>ObjectName</tt> for uniquely identifying the MXBean for |
41 * <p>The {@code ObjectName} for uniquely identifying the MXBean for |
42 * a memory manager within an MBeanServer is: |
42 * a memory manager within an MBeanServer is: |
43 * <blockquote> |
43 * <blockquote> |
44 * {@link ManagementFactory#MEMORY_MANAGER_MXBEAN_DOMAIN_TYPE |
44 * {@link ManagementFactory#MEMORY_MANAGER_MXBEAN_DOMAIN_TYPE |
45 * <tt>java.lang:type=MemoryManager</tt>}<tt>,name=</tt><i>manager's name</i> |
45 * java.lang:type=MemoryManager}{@code ,name=}<i>manager's name</i> |
46 * </blockquote> |
46 * </blockquote> |
47 * |
47 * |
48 * It can be obtained by calling the |
48 * It can be obtained by calling the |
49 * {@link PlatformManagedObject#getObjectName} method. |
49 * {@link PlatformManagedObject#getObjectName} method. |
50 * |
50 * |
70 /** |
70 /** |
71 * Tests if this memory manager is valid in the Java virtual |
71 * Tests if this memory manager is valid in the Java virtual |
72 * machine. A memory manager becomes invalid once the Java virtual |
72 * machine. A memory manager becomes invalid once the Java virtual |
73 * machine removes it from the memory system. |
73 * machine removes it from the memory system. |
74 * |
74 * |
75 * @return <tt>true</tt> if the memory manager is valid in the |
75 * @return {@code true} if the memory manager is valid in the |
76 * Java virtual machine; |
76 * Java virtual machine; |
77 * <tt>false</tt> otherwise. |
77 * {@code false} otherwise. |
78 */ |
78 */ |
79 public boolean isValid(); |
79 public boolean isValid(); |
80 |
80 |
81 /** |
81 /** |
82 * Returns the name of memory pools that this memory manager manages. |
82 * Returns the name of memory pools that this memory manager manages. |
83 * |
83 * |
84 * @return an array of <tt>String</tt> objects, each is |
84 * @return an array of {@code String} objects, each is |
85 * the name of a memory pool that this memory manager manages. |
85 * the name of a memory pool that this memory manager manages. |
86 */ |
86 */ |
87 public String[] getMemoryPoolNames(); |
87 public String[] getMemoryPoolNames(); |
88 } |
88 } |