当前位置: 首页>>代码示例>>Java>>正文


Java MemoryUsageCompositeData类代码示例

本文整理汇总了Java中sun.management.MemoryUsageCompositeData的典型用法代码示例。如果您正苦于以下问题:Java MemoryUsageCompositeData类的具体用法?Java MemoryUsageCompositeData怎么用?Java MemoryUsageCompositeData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MemoryUsageCompositeData类属于sun.management包,在下文中一共展示了MemoryUsageCompositeData类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MemoryUsage

import sun.management.MemoryUsageCompositeData; //导入依赖的package包/类
/**
 * Constructs a <tt>MemoryUsage</tt> object from a
 * {@link CompositeData CompositeData}.
 */
private MemoryUsage(CompositeData cd) {
    // validate the input composite data
    MemoryUsageCompositeData.validateCompositeData(cd);

    this.init = MemoryUsageCompositeData.getInit(cd);
    this.used = MemoryUsageCompositeData.getUsed(cd);
    this.committed = MemoryUsageCompositeData.getCommitted(cd);
    this.max = MemoryUsageCompositeData.getMax(cd);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:MemoryUsage.java

示例2: MemoryUsage

import sun.management.MemoryUsageCompositeData; //导入依赖的package包/类
/**
 * Constructs a {@code MemoryUsage} object from a
 * {@link CompositeData CompositeData}.
 */
private MemoryUsage(CompositeData cd) {
    // validate the input composite data
    MemoryUsageCompositeData.validateCompositeData(cd);

    this.init = MemoryUsageCompositeData.getInit(cd);
    this.used = MemoryUsageCompositeData.getUsed(cd);
    this.committed = MemoryUsageCompositeData.getCommitted(cd);
    this.max = MemoryUsageCompositeData.getMax(cd);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:14,代码来源:MemoryUsage.java

示例3: MemoryUsage

import sun.management.MemoryUsageCompositeData; //导入依赖的package包/类
/**
 * Constructs a <tt>MemoryUsage</tt> object from a 
 * {@link CompositeData CompositeData}.  
 */
private MemoryUsage(CompositeData cd) {
    // validate the input composite data  
    MemoryUsageCompositeData.validateCompositeData(cd);

    this.init = MemoryUsageCompositeData.getInit(cd);
    this.used = MemoryUsageCompositeData.getUsed(cd);
    this.committed = MemoryUsageCompositeData.getCommitted(cd);
    this.max = MemoryUsageCompositeData.getMax(cd);
}
 
开发者ID:jgaltidor,项目名称:VarJ,代码行数:14,代码来源:MemoryUsage.java

示例4: from

import sun.management.MemoryUsageCompositeData; //导入依赖的package包/类
/**
 * Returns a <tt>MemoryUsage</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>init</td>
 *   <td><tt>java.lang.Long</tt></td>
 * </tr>
 * <tr>
 *   <td>used</td>
 *   <td><tt>java.lang.Long</tt></td>
 * </tr>
 * <tr>
 *   <td>committed</td>
 *   <td><tt>java.lang.Long</tt></td>
 * </tr>
 * <tr>
 *   <td>max</td>
 *   <td><tt>java.lang.Long</tt></td>
 * </tr>
 * </table>
 * </blockquote>
 *
 * @param cd <tt>CompositeData</tt> representing a <tt>MemoryUsage</tt>
 *
 * @throws IllegalArgumentException if <tt>cd</tt> does not
 *   represent a <tt>MemoryUsage</tt> with the attributes described
 *   above.
 *
 * @return a <tt>MemoryUsage</tt> object represented by <tt>cd</tt>
 *         if <tt>cd</tt> is not <tt>null</tt>;
 *         <tt>null</tt> otherwise.
 */
public static MemoryUsage from(CompositeData cd) {
    if (cd == null) {
        return null;
    }

    if (cd instanceof MemoryUsageCompositeData) {
        return ((MemoryUsageCompositeData) cd).getMemoryUsage();
    } else {
        return new MemoryUsage(cd);
    }

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:53,代码来源:MemoryUsage.java

示例5: from

import sun.management.MemoryUsageCompositeData; //导入依赖的package包/类
/**
 * Returns a {@code MemoryUsage} 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">init</th>
 *   <td>{@code java.lang.Long}</td>
 * </tr>
 * <tr>
 *   <th scope="row">used</th>
 *   <td>{@code java.lang.Long}</td>
 * </tr>
 * <tr>
 *   <th scope="row">committed</th>
 *   <td>{@code java.lang.Long}</td>
 * </tr>
 * <tr>
 *   <th scope="row">max</th>
 *   <td>{@code java.lang.Long}</td>
 * </tr>
 * </tbody>
 * </table>
 *
 * @param cd {@code CompositeData} representing a {@code MemoryUsage}
 *
 * @throws IllegalArgumentException if {@code cd} does not
 *   represent a {@code MemoryUsage} with the attributes described
 *   above.
 *
 * @return a {@code MemoryUsage} object represented by {@code cd}
 *         if {@code cd} is not {@code null};
 *         {@code null} otherwise.
 */
public static MemoryUsage from(CompositeData cd) {
    if (cd == null) {
        return null;
    }

    if (cd instanceof MemoryUsageCompositeData) {
        return ((MemoryUsageCompositeData) cd).getMemoryUsage();
    } else {
        return new MemoryUsage(cd);
    }

}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:56,代码来源:MemoryUsage.java

示例6: from

import sun.management.MemoryUsageCompositeData; //导入依赖的package包/类
/**
 * Returns a {@code MemoryUsage} 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>init</td>
 *   <td>{@code java.lang.Long}</td>
 * </tr>
 * <tr>
 *   <td>used</td>
 *   <td>{@code java.lang.Long}</td>
 * </tr>
 * <tr>
 *   <td>committed</td>
 *   <td>{@code java.lang.Long}</td>
 * </tr>
 * <tr>
 *   <td>max</td>
 *   <td>{@code java.lang.Long}</td>
 * </tr>
 * </table>
 * </blockquote>
 *
 * @param cd {@code CompositeData} representing a {@code MemoryUsage}
 *
 * @throws IllegalArgumentException if {@code cd} does not
 *   represent a {@code MemoryUsage} with the attributes described
 *   above.
 *
 * @return a {@code MemoryUsage} object represented by {@code cd}
 *         if {@code cd} is not {@code null};
 *         {@code null} otherwise.
 */
public static MemoryUsage from(CompositeData cd) {
    if (cd == null) {
        return null;
    }

    if (cd instanceof MemoryUsageCompositeData) {
        return ((MemoryUsageCompositeData) cd).getMemoryUsage();
    } else {
        return new MemoryUsage(cd);
    }

}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:53,代码来源:MemoryUsage.java

示例7: from

import sun.management.MemoryUsageCompositeData; //导入依赖的package包/类
/**
 * Returns a <tt>MemoryUsage</tt> object represented by the
 * given <tt>CompositeData</tt>. The given <tt>CompositeData</tt>
 * must contain the following attributes:
 * <p>
 * <blockquote>
 * <table border>
 * <tr>
 *   <th align=left>Attribute Name</th>
 *   <th align=left>Type</th>
 * </tr>
 * <tr>
 *   <td>init</td>
 *   <td><tt>java.lang.Long</tt></td>
 * </tr>
 * <tr>
 *   <td>used</td>
 *   <td><tt>java.lang.Long</tt></td>
 * </tr>
 * <tr>
 *   <td>committed</td>
 *   <td><tt>java.lang.Long</tt></td>
 * </tr>
 * <tr>
 *   <td>max</td>
 *   <td><tt>java.lang.Long</tt></td>
 * </tr>
 * </table>
 * </blockquote>
 *
 * @param cd <tt>CompositeData</tt> representing a <tt>MemoryUsage</tt>
 *
 * @throws IllegalArgumentException if <tt>cd</tt> does not
 *   represent a <tt>MemoryUsage</tt> with the attributes described
 *   above.
 *
 * @return a <tt>MemoryUsage</tt> object represented by <tt>cd</tt>
 *         if <tt>cd</tt> is not <tt>null</tt>;
 *         <tt>null</tt> otherwise.
 */
public static MemoryUsage from(CompositeData cd) {
    if (cd == null) {
        return null;
    }

    if (cd instanceof MemoryUsageCompositeData) {
        return ((MemoryUsageCompositeData) cd).getMemoryUsage();
    } else {
        return new MemoryUsage(cd);
    }

}
 
开发者ID:jgaltidor,项目名称:VarJ,代码行数:53,代码来源:MemoryUsage.java


注:本文中的sun.management.MemoryUsageCompositeData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。