Search in sources :

Example 1 with ProbeInfo

use of org.glassfish.api.monitoring.ProbeInfo in project Payara by payara.

the class FlashlightProbeProvider method getProbesInfo.

public ProbeInfo[] getProbesInfo() {
    // confusing -- the *map* of the probes is named "probes"
    Collection<FlashlightProbe> fprobes = getProbes();
    ProbeInfo[] infos = new ProbeInfo[fprobes.size()];
    int i = 0;
    for (FlashlightProbe fprobe : fprobes) {
        infos[i++] = (ProbeInfo) fprobe;
    }
    return infos;
}
Also used : FlashlightProbe(org.glassfish.flashlight.provider.FlashlightProbe) ProbeInfo(org.glassfish.api.monitoring.ProbeInfo)

Aggregations

ProbeInfo (org.glassfish.api.monitoring.ProbeInfo)1 FlashlightProbe (org.glassfish.flashlight.provider.FlashlightProbe)1