jdk.jfr.events.FileForceEvent Java Examples

The following examples show how to use jdk.jfr.events.FileForceEvent. 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: FileChannelImplInstrumentor.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
@SuppressWarnings("deprecation")
@JIInstrumentationMethod
public void force(boolean metaData) throws IOException {
    FileForceEvent event = FileForceEvent.EVENT.get();
    if (!event.isEnabled()) {
        force(metaData);
        return;
    }
    try {
        event.begin();
        force(metaData);
    } finally {
        event.path = path;
        event.metaData = metaData;
        event.commit();
        event.reset();
    }
}
 
Example #2
Source File: FileChannelImplInstrumentor.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
@SuppressWarnings("deprecation")
@JIInstrumentationMethod
public void force(boolean metaData) throws IOException {
    FileForceEvent event = FileForceEvent.EVENT.get();
    if (!event.isEnabled()) {
        force(metaData);
        return;
    }
    try {
        event.begin();
        force(metaData);
    } finally {
        event.path = path;
        event.metaData = metaData;
        event.commit();
        event.reset();
    }
}
 
Example #3
Source File: FileChannelImplInstrumentor.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
@SuppressWarnings("deprecation")
@JIInstrumentationMethod
public void force(boolean metaData) throws IOException {
    FileForceEvent event = FileForceEvent.EVENT.get();
    if (!event.isEnabled()) {
        force(metaData);
        return;
    }
    try {
        event.begin();
        force(metaData);
    } finally {
        event.path = path;
        event.metaData = metaData;
        event.commit();
        event.reset();
    }
}