Codota Logo
JobEntryDeleteFiles.setArguments
Code IndexAdd Codota to your IDE (free)

How to use
setArguments
method
in
org.pentaho.di.job.entries.deletefiles.JobEntryDeleteFiles

Best Java code snippets using org.pentaho.di.job.entries.deletefiles.JobEntryDeleteFiles.setArguments (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

@Test
public void specifyingTheSamePath_WithDifferentWildcards() throws Exception {
 final String fileExtensionTxt = ".txt";
 final String fileExtensionXml = ".xml";
 String[] args = new String[] { PATH_TO_FILE, PATH_TO_FILE };
 jobEntry.setArguments( args );
 jobEntry.setFilemasks( new String[] { fileExtensionTxt, fileExtensionXml } );
 jobEntry.setArgFromPrevious( false );
 jobEntry.execute( new Result(), 0 );
 verify( jobEntry ).processFile( eq( PATH_TO_FILE ), eq( fileExtensionTxt ), any( Job.class ) );
 verify( jobEntry ).processFile( eq( PATH_TO_FILE ), eq( fileExtensionXml ), any( Job.class ) );
}
origin: pentaho/pentaho-kettle

@Test
public void filesWithNoPath_AreNotProcessed_ArgsOfCurrentJob() throws Exception {
 jobEntry.setArguments( new String[] { Const.EMPTY_STRING, STRING_SPACES_ONLY } );
 jobEntry.setFilemasks( new String[] { null, null } );
 jobEntry.setArgFromPrevious( false );
 jobEntry.execute( new Result(), 0 );
 verify( jobEntry, never() ).processFile( anyString(), anyString(), any( Job.class ) );
}
origin: pentaho/pentaho-kettle

@Test
public void filesWithPath_AreProcessed_ArgsOfCurrentJob() throws Exception {
 String[] args = new String[] { PATH_TO_FILE };
 jobEntry.setArguments( args );
 jobEntry.setFilemasks( new String[] { null, null } );
 jobEntry.setArgFromPrevious( false );
 jobEntry.execute( new Result(), 0 );
 verify( jobEntry, times( args.length ) ).processFile( anyString(), anyString(), any( Job.class ) );
 verify( mockNamedClusterEmbedManager ).passEmbeddedMetastoreKey( anyObject(), anyString() );
}
origin: pentaho/pentaho-kettle

@Test
public void filesPathVariables_AreProcessed_OnlyIfValueIsNotBlank() throws Exception {
 final String pathToFileBlankValue = "pathToFileBlankValue";
 final String pathToFileValidValue = "pathToFileValidValue";
 jobEntry.setVariable( pathToFileBlankValue, Const.EMPTY_STRING );
 jobEntry.setVariable( pathToFileValidValue, PATH_TO_FILE );
 jobEntry.setArguments( new String[] { asVariable( pathToFileBlankValue ), asVariable( pathToFileValidValue ) } );
 jobEntry.setFilemasks( new String[] { null, null } );
 jobEntry.setArgFromPrevious( false );
 jobEntry.execute( new Result(), 0 );
 verify( jobEntry ).processFile( eq( PATH_TO_FILE ), anyString(), any( Job.class ) );
}
origin: pentaho/pentaho-kettle

jobEntry.setArguments( arguments );
org.pentaho.di.job.entries.deletefilesJobEntryDeleteFilessetArguments

Popular methods of JobEntryDeleteFiles

  • processFile
  • setFilemasks
  • <init>
  • allocate
  • environmentSubstitute
  • execute
  • getArguments
  • getFilemasks
  • getName
  • getObjectId
  • getParentJobMeta
  • getVariables
  • getParentJobMeta,
  • getVariables,
  • hasChanged,
  • isArgFromPrevious,
  • isIncludeSubfolders,
  • logBasic,
  • logDetailed,
  • logError,
  • populateDataForJobExecution

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • String (java.lang)
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now