Java Code Examples for jdk.jfr.events.FileForceEvent

The following examples show how to use jdk.jfr.events.FileForceEvent. These examples are extracted from open source projects. 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
@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
@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
@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();
    }
}