java类javax.management.openmbean.CompositeData的实例源码

GcInfoCompositeData.java 文件源码 项目:jdk8u-jdk 阅读 22 收藏 0 点赞 0 评论 0
/**
 * Returns true if the input CompositeData has the expected
 * CompositeType (i.e. contain all attributes with expected
 * names and types).  Otherwise, return false.
 */
public static void validateCompositeData(CompositeData cd) {
    if (cd == null) {
        throw new NullPointerException("Null CompositeData");
    }

    if (!isTypeMatched(getBaseGcInfoCompositeType(),
                       cd.getCompositeType())) {
       throw new IllegalArgumentException(
            "Unexpected composite type for GcInfo");
    }
}
DefaultMXBeanMappingFactory.java 文件源码 项目:jdk8u-jdk 阅读 31 收藏 0 点赞 0 评论 0
@Override
final Object fromNonNullOpenValue(Object value)
        throws InvalidObjectException {
    makeCompositeBuilder();
    return compositeBuilder.fromCompositeData((CompositeData) value,
                                              itemNames,
                                              getterMappings);
}
LockInfoCompositeData.java 文件源码 项目:openjdk-jdk10 阅读 33 收藏 0 点赞 0 评论 0
public static CompositeData toCompositeData(LockInfo li) {
    if (li == null) {
        return null;
    }

    LockInfoCompositeData licd = new LockInfoCompositeData(li);
    return licd.getCompositeData();
}
JobDetailSupport.java 文件源码 项目:lams 阅读 25 收藏 0 点赞 0 评论 0
public static TabularData toTabularData(JobDetail[] jobDetails) {
    TabularData tData = new TabularDataSupport(TABULAR_TYPE);
    if (jobDetails != null) {
        ArrayList<CompositeData> list = new ArrayList<CompositeData>();
        for (JobDetail jobDetail : jobDetails) {
            list.add(toCompositeData(jobDetail));
        }
        tData.putAll(list.toArray(new CompositeData[list.size()]));
    }
    return tData;
}
LockInfoCompositeData.java 文件源码 项目:jdk8u-jdk 阅读 30 收藏 0 点赞 0 评论 0
public static CompositeData toCompositeData(LockInfo li) {
    if (li == null) {
        return null;
    }

    LockInfoCompositeData licd = new LockInfoCompositeData(li);
    return licd.getCompositeData();
}
CronTriggerSupport.java 文件源码 项目:lams 阅读 23 收藏 0 点赞 0 评论 0
public static TabularData toTabularData(List<? extends CronTrigger> triggers) {
    TabularData tData = new TabularDataSupport(TABULAR_TYPE);
    if (triggers != null) {
        ArrayList<CompositeData> list = new ArrayList<CompositeData>();
        for (CronTrigger trigger : triggers) {
            list.add(toCompositeData(trigger));
        }
        tData.putAll(list.toArray(new CompositeData[list.size()]));
    }
    return tData;
}
MemoryUsageCompositeData.java 文件源码 项目:OpenJSharp 阅读 24 收藏 0 点赞 0 评论 0
/** Validate if the input CompositeData has the expected
 * CompositeType (i.e. contain all attributes with expected
 * names and types).
 */
public static void validateCompositeData(CompositeData cd) {
    if (cd == null) {
        throw new NullPointerException("Null CompositeData");
    }

    if (!isTypeMatched(memoryUsageCompositeType, cd.getCompositeType())) {
        throw new IllegalArgumentException(
            "Unexpected composite type for MemoryUsage");
    }
}
ThreadInfoCompositeData.java 文件源码 项目:openjdk-jdk10 阅读 23 收藏 0 点赞 0 评论 0
public static boolean isCurrentVersion(CompositeData cd) {
    if (cd == null) {
        throw new NullPointerException("Null CompositeData");
    }

    return isTypeMatched(threadInfoCompositeType, cd.getCompositeType());
}
SimpleTriggerSupport.java 文件源码 项目:lams 阅读 25 收藏 0 点赞 0 评论 0
public static TabularData toTabularData(List<? extends SimpleTrigger> triggers) {
    TabularData tData = new TabularDataSupport(TABULAR_TYPE);
    if (triggers != null) {
        ArrayList<CompositeData> list = new ArrayList<CompositeData>();
        for (SimpleTrigger trigger : triggers) {
            list.add(toCompositeData(trigger));
        }
        tData.putAll(list.toArray(new CompositeData[list.size()]));
    }
    return tData;
}
SimpleTriggerSupport.java 文件源码 项目:lams 阅读 22 收藏 0 点赞 0 评论 0
public static OperableTrigger newTrigger(CompositeData cData) throws ParseException {
    SimpleTriggerImpl result = new SimpleTriggerImpl();
    result.setRepeatCount(((Integer) cData.get("repeatCount")).intValue());
    result.setRepeatInterval(((Long) cData.get("repeatInterval")).longValue());
    result.setTimesTriggered(((Integer) cData.get("timesTriggered")).intValue());
    TriggerSupport.initializeTrigger(result, cData);
    return result;
}


问题


面经


文章

微信
公众号

扫码关注公众号