Tabnine Logo
PluginInterface.getPluginDirectory
Code IndexAdd Tabnine to your IDE (free)

How to use
getPluginDirectory
method
in
org.pentaho.di.core.plugins.PluginInterface

Best Java code snippets using org.pentaho.di.core.plugins.PluginInterface.getPluginDirectory (Showing top 10 results out of 315)

origin: pentaho/pentaho-kettle

public List<PluginInterface> findPluginsByFolder( URL folder ) {
 String path = folder.getPath();
 try {
  path = folder.toURI().normalize().getPath();
 } catch ( URISyntaxException e ) {
  log.logError( e.getLocalizedMessage(), e );
 }
 if ( path.endsWith( "/" ) ) {
  path = path.substring( 0, path.length() - 1 );
 }
 List<PluginInterface> result = new ArrayList<PluginInterface>();
 lock.readLock().lock();
 try {
  for ( Set<PluginInterface> typeInterfaces : pluginMap.values() ) {
   for ( PluginInterface plugin : typeInterfaces ) {
    URL pluginFolder = plugin.getPluginDirectory();
    try {
     if ( pluginFolder != null && pluginFolder.toURI().normalize().getPath().startsWith( path ) ) {
      result.add( plugin );
     }
    } catch ( URISyntaxException e ) {
     log.logError( e.getLocalizedMessage(), e );
    }
   }
  }
 } finally {
  lock.readLock().unlock();
 }
 return result;
}
origin: pentaho/pentaho-kettle

if ( plugin.getPluginDirectory() != null ) {
 folderBasedClassLoaderMap.remove( plugin.getPluginDirectory().toString() );
origin: pentaho/pentaho-kettle

 ucl = classLoaderGroupsMap.get( plugin.getClassLoaderGroup() );
} else {
 ucl = folderBasedClassLoaderMap.get( plugin.getPluginDirectory().toString() );
origin: pentaho/pentaho-kettle

if ( plugin.getPluginDirectory() != null ) {
 ucl = folderBasedClassLoaderMap.get( plugin.getPluginDirectory().toString() );
 if ( ucl == null ) {
  ucl = createClassLoader( plugin );
  folderBasedClassLoaderMap.put( plugin.getPluginDirectory().toString(), ucl );
 } else {
origin: pentaho/big-data-plugin

 public String getVfsFilename( Configuration conf ) {
  return pluginInterface.getPluginDirectory().getPath() + Const.FILE_SEPARATOR
   + getProperty( conf, pmrProperties, PENTAHO_MAPREDUCE_PROPERTY_PMR_LIBRARIES_ARCHIVE_FILE, null );
 }
}
origin: twineworks/ruby-for-pentaho-kettle

public String getPluginDir() {
 URL pluginBaseURL = PluginRegistry.getInstance().findPluginWithId(StepPluginType.class, "TypeExitRubyStep").getPluginDirectory();
 File pluginBaseFile;
 try {
  pluginBaseFile = new File(pluginBaseURL.toURI());
 } catch (URISyntaxException e) {
  pluginBaseFile = new File(pluginBaseURL.getPath());
 }
 return pluginBaseFile.getAbsolutePath();
}
origin: pentaho/big-data-plugin

/**
 * Loads a properties file from the plugin directory for the plugin interface provided
 *
 * @param plugin
 * @return
 * @throws KettleFileException
 * @throws IOException
 */
protected Properties loadProperties( PluginInterface plugin, String relativeName ) throws KettleFileException,
 IOException {
 if ( plugin == null ) {
  throw new NullPointerException();
 }
 FileObject propFile =
  KettleVFS.getFileObject( plugin.getPluginDirectory().getPath() + Const.FILE_SEPARATOR + relativeName );
 if ( !propFile.exists() ) {
  throw new FileNotFoundException( propFile.toString() );
 }
 try {
  return new PropertiesConfigurationProperties( propFile );
 } catch ( Exception e ) {
  // Do not catch ConfigurationException. Different shims will use different
  // packages for this exception.
  throw new IOException( e );
 }
}
origin: pentaho/big-data-plugin

@VisibleForTesting PentahoMapReduceJobBuilderImpl( NamedCluster namedCluster,
                          HadoopConfiguration hadoopConfiguration,
                          LogChannelInterface log,
                          VariableSpace variableSpace, PluginInterface pluginInterface,
                          FileObject vfsPluginDirectory,
                          Properties pmrProperties, TransFactory transFactory,
                          PMRArchiveGetter pmrArchiveGetter,
                          List<TransformationVisitorService> visitorServices ) {
 super( namedCluster, hadoopConfiguration.getHadoopShim(), log, variableSpace );
 this.hadoopShim = hadoopConfiguration.getHadoopShim();
 this.log = log;
 this.vfsPluginDirectory = vfsPluginDirectory;
 this.pmrProperties = pmrProperties;
 this.transFactory = transFactory;
 this.installId = buildInstallIdBase( hadoopConfiguration );
 this.pmrArchiveGetter = pmrArchiveGetter;
 this.visitorServices = addDefaultVisitors( visitorServices );
}
origin: pentaho/big-data-plugin

/**
 * Find the location of the big data plugin. This relies on the Hadoop Job Executor job entry existing within the big
 * data plugin.
 *
 * @return The VFS location of the big data plugin
 * @throws KettleException
 */
public FileObject locatePluginDirectory() throws ConfigurationException {
 FileObject dir = null;
 boolean exists = false;
 try {
  dir = KettleVFS.getFileObject( getPluginInterface().getPluginDirectory().toExternalForm() );
  exists = dir.exists();
 } catch ( Exception e ) {
  throw new ConfigurationException( BaseMessages.getString( PKG,
   "HadoopConfigurationBootstrap.PluginDirectoryNotFound" ), e );
 }
 if ( !exists ) {
  throw new ConfigurationException( BaseMessages.getString( PKG,
   "HadoopConfigurationBootstrap.PluginDirectoryNotFound" ) );
 }
 return dir;
}
origin: twineworks/ruby-for-pentaho-kettle

pluginBaseDir = PluginRegistry.getInstance().findPluginWithId(StepPluginType.class, "TypeExitRubyStep").getPluginDirectory().toString();
URL pluginBaseURL = PluginRegistry.getInstance().findPluginWithId(StepPluginType.class, "TypeExitRubyStep").getPluginDirectory();
org.pentaho.di.core.pluginsPluginInterfacegetPluginDirectory

Popular methods of PluginInterface

  • getIds
  • getName
  • getDescription
  • getClassMap
  • getImageFile
  • getPluginType
  • getCategory
  • getDocumentationUrl
  • getErrorHelpFile
  • getMainType
  • isNativePlugin
  • matches
  • isNativePlugin,
  • matches,
  • getCasesUrl,
  • getClassLoaderGroup,
  • getForumUrl,
  • getLibraries,
  • getSuggestion,
  • isSeparateClassLoaderNeeded,
  • merge

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now