List of usage examples for org.apache.commons.vfs2 FileSystemConfigBuilder getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
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(); } }