Codota Logo
org.pentaho.di.job.entries.ftpsget
Code IndexAdd Codota to your IDE (free)

How to use org.pentaho.di.job.entries.ftpsget

Best Java code snippets using org.pentaho.di.job.entries.ftpsget (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent e ) {
  jobEntry.setChanged();
  setDateTimeFormat();
  setAddDateBeforeExtension();
 }
} );
origin: pentaho/pentaho-kettle

private void closeFTPSConnection() {
 // Close FTPS connection if necessary
 if ( connection != null ) {
  try {
   connection.disconnect();
  } catch ( Exception e ) {
   // Ignore errors
  }
 }
}
origin: pentaho/pentaho-kettle

private void updateErrors() {
 NrErrors++;
 if ( checkIfSuccessConditionBroken() ) {
  // Success condition was broken
  successConditionBroken = true;
 }
}
origin: pentaho/pentaho-kettle

/**
 * PDI-6868, attempt to set binary mode is after the connection.connect() succeeded.
 * @throws Exception
 */
@Test
public void testBinaryModeSetAfterConnectionSuccess() throws Exception {
 JobEntryFTPSGet job = new JobEntryFTPSGetCustom();
 FTPSConnection connection = Mockito.mock( FTPSConnection.class );
 InOrder inOrder = Mockito.inOrder( connection );
 job.buildFTPSConnection( connection );
 inOrder.verify( connection ).connect();
 inOrder.verify( connection ).setBinaryMode( Mockito.anyBoolean() );
}
origin: pentaho/pentaho-kettle

/**
 * PDI-6868, attempt to set binary mode is after the connection.connect() succeeded.
 * @throws Exception
 */
@Test
public void testBinaryModeSetAfterConnectionSuccess() throws Exception {
 JobEntryFTPSPUT job = new JobEntryFTPSPUTCustom();
 FTPSConnection connection = Mockito.mock( FTPSConnection.class );
 InOrder inOrder = Mockito.inOrder( connection );
 job.buildFTPSConnection( connection );
 inOrder.verify( connection ).connect();
 inOrder.verify( connection ).setBinaryMode( Mockito.anyBoolean() );
}
origin: pentaho/pentaho-kettle

public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_job ) throws KettleException {
 try {
  rep.saveJobEntryAttribute( id_job, getObjectId(), "port", port );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "servername", serverName );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "username", userName );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "password", Encr
   .encryptPasswordIfNotUsingVariables( password ) );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "FTPSdirectory", FTPSDirectory );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "targetdirectory", targetDirectory );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "wildcard", wildcard );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "binary", binaryMode );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "timeout", timeout );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "remove", remove );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "only_new", onlyGettingNewFiles );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "active", activeConnection );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "movefiles", movefiles );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "movetodirectory", movetodirectory );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "addtime", addtime );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "adddate", adddate );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "SpecifyFormat", SpecifyFormat );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "date_time_format", date_time_format );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "AddDateBeforeExtension", AddDateBeforeExtension );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "isaddresult", isaddresult );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "createmovefolder", createmovefolder );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "proxy_host", proxyHost );
  rep.saveJobEntryAttribute( id_job, getObjectId(), "proxy_port", proxyPort );
origin: pentaho/pentaho-kettle

private boolean getSuccessStatus() {
 boolean retval = false;
 if ( ( NrErrors == 0 && getSuccessCondition().equals( SUCCESS_IF_NO_ERRORS ) )
  || ( NrfilesRetrieved >= limitFiles && getSuccessCondition().equals(
   SUCCESS_IF_AT_LEAST_X_FILES_DOWNLOADED ) )
  || ( NrErrors <= limitFiles && getSuccessCondition().equals( SUCCESS_IF_ERRORS_LESS ) ) ) {
  retval = true;
 }
 return retval;
}
origin: pentaho/pentaho-kettle

private void displayResults() {
 if ( isDetailed() ) {
  logDetailed( "=======================================" );
  logDetailed( BaseMessages.getString( PKG, "JobEntryFTPS.Log.Info.FilesInError", "" + NrErrors ) );
  logDetailed( BaseMessages.getString( PKG, "JobEntryFTPS.Log.Info.FilesRetrieved", "" + NrfilesRetrieved ) );
  logDetailed( "=======================================" );
 }
}
origin: pentaho/pentaho-kettle

public JobEntryFTPSGetDialog( Shell parent, JobEntryInterface jobEntryInt, Repository rep, JobMeta jobMeta ) {
 super( parent, jobEntryInt, rep, jobMeta );
 jobEntry = (JobEntryFTPSGet) jobEntryInt;
 if ( this.jobEntry.getName() == null ) {
  this.jobEntry.setName( BaseMessages.getString( PKG, "JobFTPS.Name.Default" ) );
 }
}
origin: pentaho/pentaho-kettle

/**
 *
 * this method is used to delete a file in remote host
 *
 * @param filename
 *          Name of file on remote host to delete
 * @throws KettleException
 */
public void deleteFile( String filename ) throws KettleException {
 try {
  this.connection.deleteFile( new FTPFile( getWorkingDirectory(), filename ) );
 } catch ( Exception e ) {
  throw new KettleException( BaseMessages.getString( PKG, "JobFTPS.Error.DeletingFile", filename ), e );
 }
}
origin: pentaho/pentaho-kettle

private Properties getProperties( String hostname, int port, String username, String password,
 int connectionType, int timeout, boolean passiveMode ) {
 Properties pt = new Properties();
 pt.setProperty( "connection.host", hostname );
 pt.setProperty( "connection.port", String.valueOf( port ) );
 pt.setProperty( "user.login", username );
 pt.setProperty( "user.password", password );
 pt.setProperty( "connection.type", getConnectionType( connectionType ) );
 pt.setProperty( "connection.timeout", String.valueOf( timeout ) );
 pt.setProperty( "connection.passive", String.valueOf( passiveMode ) );
 // Set proxy
 if ( this.proxyHost != null ) {
  pt.setProperty( "proxy.host", this.proxyHost );
 }
 if ( this.proxyPort != 0 ) {
  pt.setProperty( "proxy.port", String.valueOf( this.proxyPort ) );
 }
 if ( this.proxyUser != null ) {
  pt.setProperty( "proxy.user", this.proxyUser );
 }
 if ( this.proxyPassword != null ) {
  pt.setProperty( "proxy.pass", this.proxyPassword );
 }
 return pt;
}
origin: pentaho/pentaho-kettle

/**
 * this method is used to download a file from a remote host
 *
 * @param file          remote file to download
 * @param localFilename target filename
 * @throws KettleException
 */
public void downloadFile( FTPFile file, String localFilename ) throws KettleException {
 try {
  FileObject localFile = KettleVFS.getFileObject( localFilename, nameSpace );
  writeToFile( connection.downloadStream( file ), localFile.getContent().getOutputStream(), localFilename );
 } catch ( Exception e ) {
  throw new KettleException( e );
 }
}
origin: pentaho/pentaho-kettle

private void closeFTPSConnection() {
 // Close FTP connection if necessary
 if ( connection != null ) {
  try {
   connection.disconnect();
  } catch ( Exception e ) {
   // Ignore errors
  }
 }
}
origin: pentaho/pentaho-kettle

private boolean checkIfSuccessConditionBroken() {
 boolean retval = false;
 if ( ( NrErrors > 0 && getSuccessCondition().equals( SUCCESS_IF_NO_ERRORS ) )
  || ( NrErrors >= limitFiles && getSuccessCondition().equals( SUCCESS_IF_ERRORS_LESS ) ) ) {
  retval = true;
 }
 return retval;
}
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent e ) {
  activeIfExists();
  jobEntry.setChanged();
 }
} );
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent e ) {
  jobEntry.setChanged();
 }
} );
origin: pentaho/pentaho-kettle

 public void modifyText( ModifyEvent e ) {
  // pwdFolder=null;
  connection = null;
  jobEntry.setChanged();
 }
};
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent e ) {
  jobEntry.setChanged();
 }
} );
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent e ) {
  jobEntry.setChanged();
 }
} );
origin: pentaho/pentaho-kettle

private void cancel() {
 jobEntry.setChanged( changed );
 jobEntry = null;
 dispose();
}
org.pentaho.di.job.entries.ftpsget

Most used classes

  • FTPSConnection
  • JobEntryFTPSGet
    This defines an FTPS job entry.
  • FTPSConnectionTest$FTPSTestConnection
  • JobEntryFTPSGetTest$JobEntryFTPSGetCustom
  • SecureDataFTPConnection
    SecureFTPConnection changed to force data channel encryption for implicit TLS/SSL connections with c
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