Java Code Examples for jdk.management.jfr.RecordingInfo#getId()

The following examples show how to use jdk.management.jfr.RecordingInfo#getId() . 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: JmxHelper.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static RecordingInfo getJmxRecording(long recId) {
    for (RecordingInfo r : getFlighteRecorderMXBean().getRecordings()) {
        if (r.getId() == recId) {
            return r;
        }
    }
    Asserts.fail("No RecordingInfo with id " + recId);
    return null;
}
 
Example 2
Source File: JmxHelper.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void verifyNotExists(long recId, List<RecordingInfo> recordings) {
    for (RecordingInfo r : recordings) {
        if (recId == r.getId()) {
            logRecordingInfos(recordings);
            Asserts.fail("Recording should not exist, id=" + recId);
        }
    }
}
 
Example 3
Source File: JmxHelper.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static RecordingInfo verifyExists(long recId, List<RecordingInfo> recordings) {
    for (RecordingInfo r : recordings) {
        if (recId == r.getId()) {
            return r;
        }
    }
    logRecordingInfos(recordings);
    Asserts.fail("Recording not found, id=" + recId);
    return null;
}
 
Example 4
Source File: TestGetRecordingsMultiple.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
private static RecordingInfo findRecording(TestRecording testRecording) {
    for (RecordingInfo r : JmxHelper.getFlighteRecorderMXBean().getRecordings()) {
        if (r.getId() == testRecording.id) {
            return r;
        }
    }
    return null;
}
 
Example 5
Source File: JmxHelper.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static RecordingInfo getJmxRecording(long recId) {
    for (RecordingInfo r : getFlighteRecorderMXBean().getRecordings()) {
        if (r.getId() == recId) {
            return r;
        }
    }
    Asserts.fail("No RecordingInfo with id " + recId);
    return null;
}
 
Example 6
Source File: JmxHelper.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void verifyNotExists(long recId, List<RecordingInfo> recordings) {
    for (RecordingInfo r : recordings) {
        if (recId == r.getId()) {
            logRecordingInfos(recordings);
            Asserts.fail("Recording should not exist, id=" + recId);
        }
    }
}
 
Example 7
Source File: JmxHelper.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static RecordingInfo verifyExists(long recId, List<RecordingInfo> recordings) {
    for (RecordingInfo r : recordings) {
        if (recId == r.getId()) {
            return r;
        }
    }
    logRecordingInfos(recordings);
    Asserts.fail("Recording not found, id=" + recId);
    return null;
}
 
Example 8
Source File: JmxHelper.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static RecordingInfo getJmxRecording(long recId) {
    for (RecordingInfo r : getFlighteRecorderMXBean().getRecordings()) {
        if (r.getId() == recId) {
            return r;
        }
    }
    Asserts.fail("No RecordingInfo with id " + recId);
    return null;
}
 
Example 9
Source File: JmxHelper.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void verifyNotExists(long recId, List<RecordingInfo> recordings) {
    for (RecordingInfo r : recordings) {
        if (recId == r.getId()) {
            logRecordingInfos(recordings);
            Asserts.fail("Recording should not exist, id=" + recId);
        }
    }
}
 
Example 10
Source File: JmxHelper.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static RecordingInfo verifyExists(long recId, List<RecordingInfo> recordings) {
    for (RecordingInfo r : recordings) {
        if (recId == r.getId()) {
            return r;
        }
    }
    logRecordingInfos(recordings);
    Asserts.fail("Recording not found, id=" + recId);
    return null;
}
 
Example 11
Source File: TestGetRecordingsMultiple.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static RecordingInfo findRecording(TestRecording testRecording) {
    for (RecordingInfo r : JmxHelper.getFlighteRecorderMXBean().getRecordings()) {
        if (r.getId() == testRecording.id) {
            return r;
        }
    }
    return null;
}
 
Example 12
Source File: JmxHelper.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static RecordingInfo getJmxRecording(long recId) {
    for (RecordingInfo r : getFlighteRecorderMXBean().getRecordings()) {
        if (r.getId() == recId) {
            return r;
        }
    }
    Asserts.fail("No RecordingInfo with id " + recId);
    return null;
}
 
Example 13
Source File: JmxHelper.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static void verifyNotExists(long recId, List<RecordingInfo> recordings) {
    for (RecordingInfo r : recordings) {
        if (recId == r.getId()) {
            logRecordingInfos(recordings);
            Asserts.fail("Recording should not exist, id=" + recId);
        }
    }
}
 
Example 14
Source File: JmxHelper.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static RecordingInfo verifyExists(long recId, List<RecordingInfo> recordings) {
    for (RecordingInfo r : recordings) {
        if (recId == r.getId()) {
            return r;
        }
    }
    logRecordingInfos(recordings);
    Asserts.fail("Recording not found, id=" + recId);
    return null;
}
 
Example 15
Source File: TestGetRecordingsMultiple.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static RecordingInfo findRecording(TestRecording testRecording) {
    for (RecordingInfo r : JmxHelper.getFlighteRecorderMXBean().getRecordings()) {
        if (r.getId() == testRecording.id) {
            return r;
        }
    }
    return null;
}