Java Code Examples for javax.management.openmbean.TabularData#putAll()

The following examples show how to use javax.management.openmbean.TabularData#putAll() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JobDetailSupport.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example 2
Source File: CronTriggerSupport.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example 3
Source File: SimpleTriggerSupport.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
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;
}
 
Example 4
Source File: JobDataMapSupport.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param jobDataMap
 * @return TabularData
 */
public static TabularData toTabularData(JobDataMap jobDataMap) {
    TabularData tData = new TabularDataSupport(TABULAR_TYPE);
    ArrayList<CompositeData> list = new ArrayList<CompositeData>();
    Iterator<String> iter = jobDataMap.keySet().iterator();
    while (iter.hasNext()) {
        String key = iter.next();
        list.add(toCompositeData(key, String.valueOf(jobDataMap.get(key))));
    }
    tData.putAll(list.toArray(new CompositeData[list.size()]));
    return tData;
}
 
Example 5
Source File: JobExecutionContextSupport.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @return array of region statistics
 */
public static TabularData toTabularData(
        final List<JobExecutionContext> executingJobs)
        throws SchedulerException {
    List<CompositeData> list = new ArrayList<CompositeData>();
    for (JobExecutionContext executingJob : executingJobs) {
        list.add(toCompositeData(executingJob));
    }
    TabularData td = new TabularDataSupport(TABULAR_TYPE);
    td.putAll(list.toArray(new CompositeData[list.size()]));
    return td;
}
 
Example 6
Source File: TriggerSupport.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public static TabularData toTabularData(List<? extends Trigger> triggers) {
    TabularData tData = new TabularDataSupport(TABULAR_TYPE);
    if (triggers != null) {
        ArrayList<CompositeData> list = new ArrayList<CompositeData>();
        for (Trigger trigger : triggers) {
            list.add(toCompositeData(trigger));
        }
        tData.putAll(list.toArray(new CompositeData[list.size()]));
    }
    return tData;
}
 
Example 7
Source File: JobDetailSupport.java    From AsuraFramework with Apache License 2.0 5 votes vote down vote up
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;
}
 
Example 8
Source File: JobDataMapSupport.java    From AsuraFramework with Apache License 2.0 5 votes vote down vote up
/**
 * @param jobDataMap
 * @return TabularData
 */
public static TabularData toTabularData(JobDataMap jobDataMap) {
	TabularData tData = new TabularDataSupport(TABULAR_TYPE);
	ArrayList<CompositeData> list = new ArrayList<CompositeData>();
	Iterator<String> iter = jobDataMap.keySet().iterator();
	while (iter.hasNext()) {
		String key = iter.next();
		list.add(toCompositeData(key, String.valueOf(jobDataMap.get(key))));
	}
	tData.putAll(list.toArray(new CompositeData[list.size()]));
	return tData;
}
 
Example 9
Source File: JobExecutionContextSupport.java    From AsuraFramework with Apache License 2.0 5 votes vote down vote up
/**
 * @param tabularData
 * @return array of region statistics
 */
public static TabularData toTabularData(
		final List<JobExecutionContext> executingJobs)
		throws SchedulerException {
	List<CompositeData> list = new ArrayList<CompositeData>();
	for (final Iterator<JobExecutionContext> iter = executingJobs
			.iterator(); iter.hasNext();) {
		list.add(toCompositeData(iter.next()));
	}
	TabularData td = new TabularDataSupport(TABULAR_TYPE);
	td.putAll(list.toArray(new CompositeData[list.size()]));
	return td;
}
 
Example 10
Source File: TriggerSupport.java    From AsuraFramework with Apache License 2.0 5 votes vote down vote up
public static TabularData toTabularData(Trigger[] triggers) {
	TabularData tData = new TabularDataSupport(TABULAR_TYPE);
	if (triggers != null) {
		ArrayList<CompositeData> list = new ArrayList<CompositeData>();
		for (Trigger trigger : triggers) {
			list.add(toCompositeData(trigger));
		}
		tData.putAll(list.toArray(new CompositeData[list.size()]));
	}
	return tData;
}