本文整理汇总了Java中sun.management.MemoryNotifInfoCompositeData类的典型用法代码示例。如果您正苦于以下问题:Java MemoryNotifInfoCompositeData类的具体用法?Java MemoryNotifInfoCompositeData怎么用?Java MemoryNotifInfoCompositeData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MemoryNotifInfoCompositeData类属于sun.management包,在下文中一共展示了MemoryNotifInfoCompositeData类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MemoryNotificationInfo
import sun.management.MemoryNotifInfoCompositeData; //导入依赖的package包/类
MemoryNotificationInfo(CompositeData cd) {
MemoryNotifInfoCompositeData.validateCompositeData(cd);
this.poolName = MemoryNotifInfoCompositeData.getPoolName(cd);
this.usage = MemoryNotifInfoCompositeData.getUsage(cd);
this.count = MemoryNotifInfoCompositeData.getCount(cd);
}
示例2: from
import sun.management.MemoryNotifInfoCompositeData; //导入依赖的package包/类
/**
* Returns a <tt>MemoryNotificationInfo</tt> object represented by the
* given <tt>CompositeData</tt>.
* The given <tt>CompositeData</tt> must contain
* the following attributes:
* <blockquote>
* <table border summary="The attributes and the types the given CompositeData contains">
* <tr>
* <th align=left>Attribute Name</th>
* <th align=left>Type</th>
* </tr>
* <tr>
* <td>poolName</td>
* <td><tt>java.lang.String</tt></td>
* </tr>
* <tr>
* <td>usage</td>
* <td><tt>javax.management.openmbean.CompositeData</tt></td>
* </tr>
* <tr>
* <td>count</td>
* <td><tt>java.lang.Long</tt></td>
* </tr>
* </table>
* </blockquote>
*
* @param cd <tt>CompositeData</tt> representing a
* <tt>MemoryNotificationInfo</tt>
*
* @throws IllegalArgumentException if <tt>cd</tt> does not
* represent a <tt>MemoryNotificationInfo</tt> object.
*
* @return a <tt>MemoryNotificationInfo</tt> object represented
* by <tt>cd</tt> if <tt>cd</tt> is not <tt>null</tt>;
* <tt>null</tt> otherwise.
*/
public static MemoryNotificationInfo from(CompositeData cd) {
if (cd == null) {
return null;
}
if (cd instanceof MemoryNotifInfoCompositeData) {
return ((MemoryNotifInfoCompositeData) cd).getMemoryNotifInfo();
} else {
return new MemoryNotificationInfo(cd);
}
}
示例3: from
import sun.management.MemoryNotifInfoCompositeData; //导入依赖的package包/类
/**
* Returns a {@code MemoryNotificationInfo} object represented by the
* given {@code CompositeData}.
* The given {@code CompositeData} must contain
* the following attributes:
* <table class="striped" style="margin-left:2em">
* <caption style="display:none">The attributes and the types the given CompositeData contains</caption>
* <thead>
* <tr>
* <th scope="col">Attribute Name</th>
* <th scope="col">Type</th>
* </tr>
* </thead>
* <tbody style="text-align:left">
* <tr>
* <th scope="row">poolName</th>
* <td>{@code java.lang.String}</td>
* </tr>
* <tr>
* <th scope="row">usage</th>
* <td>{@code javax.management.openmbean.CompositeData}</td>
* </tr>
* <tr>
* <th scope="row">count</th>
* <td>{@code java.lang.Long}</td>
* </tr>
* </tbody>
* </table>
*
* @param cd {@code CompositeData} representing a
* {@code MemoryNotificationInfo}
*
* @throws IllegalArgumentException if {@code cd} does not
* represent a {@code MemoryNotificationInfo} object.
*
* @return a {@code MemoryNotificationInfo} object represented
* by {@code cd} if {@code cd} is not {@code null};
* {@code null} otherwise.
*/
public static MemoryNotificationInfo from(CompositeData cd) {
if (cd == null) {
return null;
}
if (cd instanceof MemoryNotifInfoCompositeData) {
return ((MemoryNotifInfoCompositeData) cd).getMemoryNotifInfo();
} else {
return new MemoryNotificationInfo(cd);
}
}
示例4: from
import sun.management.MemoryNotifInfoCompositeData; //导入依赖的package包/类
/**
* Returns a {@code MemoryNotificationInfo} object represented by the
* given {@code CompositeData}.
* The given {@code CompositeData} must contain
* the following attributes:
* <blockquote>
* <table border summary="The attributes and the types the given CompositeData contains">
* <tr>
* <th align=left>Attribute Name</th>
* <th align=left>Type</th>
* </tr>
* <tr>
* <td>poolName</td>
* <td>{@code java.lang.String}</td>
* </tr>
* <tr>
* <td>usage</td>
* <td>{@code javax.management.openmbean.CompositeData}</td>
* </tr>
* <tr>
* <td>count</td>
* <td>{@code java.lang.Long}</td>
* </tr>
* </table>
* </blockquote>
*
* @param cd {@code CompositeData} representing a
* {@code MemoryNotificationInfo}
*
* @throws IllegalArgumentException if {@code cd} does not
* represent a {@code MemoryNotificationInfo} object.
*
* @return a {@code MemoryNotificationInfo} object represented
* by {@code cd} if {@code cd} is not {@code null};
* {@code null} otherwise.
*/
public static MemoryNotificationInfo from(CompositeData cd) {
if (cd == null) {
return null;
}
if (cd instanceof MemoryNotifInfoCompositeData) {
return ((MemoryNotifInfoCompositeData) cd).getMemoryNotifInfo();
} else {
return new MemoryNotificationInfo(cd);
}
}
示例5: from
import sun.management.MemoryNotifInfoCompositeData; //导入依赖的package包/类
/**
* Returns a <tt>MemoryNotificationInfo</tt> object represented by the
* given <tt>CompositeData</tt>.
* The given <tt>CompositeData</tt> must contain
* the following attributes:
* <blockquote>
* <table border>
* <tr>
* <th align=left>Attribute Name</th>
* <th align=left>Type</th>
* </tr>
* <tr>
* <td>poolName</td>
* <td><tt>java.lang.String</tt></td>
* </tr>
* <tr>
* <td>usage</td>
* <td><tt>javax.management.openmbean.CompositeData</tt></td>
* </tr>
* <tr>
* <td>count</td>
* <td><tt>java.lang.Long</tt></td>
* </tr>
* </table>
* </blockquote>
*
* @param cd <tt>CompositeData</tt> representing a
* <tt>MemoryNotificationInfo</tt>
*
* @throws IllegalArgumentException if <tt>cd</tt> does not
* represent a <tt>MemoryNotificationInfo</tt> object.
*
* @return a <tt>MemoryNotificationInfo</tt> object represented
* by <tt>cd</tt> if <tt>cd</tt> is not <tt>null</tt>;
* <tt>null</tt> otherwise.
*/
public static MemoryNotificationInfo from(CompositeData cd) {
if (cd == null) {
return null;
}
if (cd instanceof MemoryNotifInfoCompositeData) {
return ((MemoryNotifInfoCompositeData) cd).getMemoryNotifInfo();
} else {
return new MemoryNotificationInfo(cd);
}
}
示例6: from
import sun.management.MemoryNotifInfoCompositeData; //导入依赖的package包/类
/**
* Returns a <tt>MemoryNotificationInfo</tt> object represented by the
* given <tt>CompositeData</tt>.
* The given <tt>CompositeData</tt> must contain
* the following attributes:
* <blockquote>
* <table border>
* <tr>
* <th align=left>Attribute Name</th>
* <th align=left>Type</th>
* </tr>
* <tr>
* <td>poolName</td>
* <td><tt>java.lang.String</tt></td>
* </tr>
* <tr>
* <td>usage</td>
* <td><tt>javax.management.openmbean.CompositeData</tt></td>
* </tr>
* <tr>
* <td>count</td>
* <td><tt>java.lang.Long</tt></td>
* </tr>
* </table>
* </blockquote>
*
* @param cd <tt>CompositeData</tt> representing a
* <tt>MemoryNotificationInfo</tt>
*
* @throws IllegalArgumentException if <tt>cd</tt> does not
* represent a <tt>MemoryNotificationInfo</tt> object.
*
* @return a <tt>MemoryNotificationInfo</tt> object represented
* by <tt>cd</tt> if <tt>cd</tt> is not <tt>null</tt>;
* <tt>null</tt> otherwise.
*/
public static MemoryNotificationInfo from(CompositeData cd) {
if (cd == null) {
return null;
}
if (cd instanceof MemoryNotifInfoCompositeData) {
return ((MemoryNotifInfoCompositeData) cd).getMemoryNotifInfo();
} else {
return new MemoryNotificationInfo(cd);
}
}