Example usage for org.apache.commons.vfs2 FileSystemConfigBuilder getClass

List of usage examples for org.apache.commons.vfs2 FileSystemConfigBuilder getClass

Introduction

In this page you can find the example usage for org.apache.commons.vfs2 FileSystemConfigBuilder getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.pentaho.big.data.impl.shim.mapreduce.PentahoMapReduceJobBuilderImpl.java

private void snapshotMetaStore(String metaStoreSnapshotDir) throws Exception {
    IMetaStore snapshot = new XmlMetaStore(metaStoreSnapshotDir);
    try {//  w w  w .j  a  v  a2  s  .c  o  m
        FileSystemConfigBuilder nc = KettleVFS.getInstance().getFileSystemManager()
                .getFileSystemConfigBuilder("hc");
        Method snapshotMethod = nc.getClass().getMethod("snapshotNamedClusterToMetaStore", IMetaStore.class);
        snapshotMethod.invoke(nc, snapshot);
    } catch (FileSystemException | NoSuchMethodException | IllegalAccessException
            | InvocationTargetException e) {
        e.printStackTrace();
    }
}