Const.NVL( XMLHandler.getTagValue( entrynode, "success_condition" ), SUCCESS_IF_NO_ERRORS ); connectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( XMLHandler.getTagValue( entrynode, "connection_type" ), "" ) ); } catch ( Exception xe ) {
public void loadXML( Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep, IMetaStore metaStore ) throws KettleXMLException { try { super.loadXML( entrynode, databases, slaveServers ); serverName = XMLHandler.getTagValue( entrynode, "servername" ); serverPort = XMLHandler.getTagValue( entrynode, "serverport" ); userName = XMLHandler.getTagValue( entrynode, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( XMLHandler.getTagValue( entrynode, "password" ) ); remoteDirectory = XMLHandler.getTagValue( entrynode, "remoteDirectory" ); localDirectory = XMLHandler.getTagValue( entrynode, "localDirectory" ); wildcard = XMLHandler.getTagValue( entrynode, "wildcard" ); binaryMode = "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "binary" ) ); timeout = Const.toInt( XMLHandler.getTagValue( entrynode, "timeout" ), 10000 ); remove = "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "remove" ) ); onlyPuttingNewFiles = "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "only_new" ) ); activeConnection = "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "active" ) ); proxyHost = XMLHandler.getTagValue( entrynode, "proxy_host" ); proxyPort = XMLHandler.getTagValue( entrynode, "proxy_port" ); proxyUsername = XMLHandler.getTagValue( entrynode, "proxy_username" ); proxyPassword = XMLHandler.getTagValue( entrynode, "proxy_password" ); connectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( XMLHandler.getTagValue( entrynode, "connection_type" ), "" ) ); } catch ( KettleXMLException xe ) { throw new KettleXMLException( BaseMessages.getString( PKG, "JobFTPSPUT.Log.UnableToLoadFromXml" ), xe ); } }
copyprevious = "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "copyprevious" ) ); FTPSConnectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( XMLHandler.getTagValue( entrynode, "ftps_connection_type" ), "" ) ); socksProxyHost = XMLHandler.getTagValue( entrynode, "socksproxy_host" );
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { serverName = rep.getJobEntryAttributeString( id_jobentry, "servername" ); serverPort = rep.getJobEntryAttributeString( id_jobentry, "serverport" ); userName = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); remoteDirectory = rep.getJobEntryAttributeString( id_jobentry, "remoteDirectory" ); localDirectory = rep.getJobEntryAttributeString( id_jobentry, "localDirectory" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); binaryMode = rep.getJobEntryAttributeBoolean( id_jobentry, "binary" ); timeout = (int) rep.getJobEntryAttributeInteger( id_jobentry, "timeout" ); remove = rep.getJobEntryAttributeBoolean( id_jobentry, "remove" ); onlyPuttingNewFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "only_new" ); activeConnection = rep.getJobEntryAttributeBoolean( id_jobentry, "active" ); proxyHost = rep.getJobEntryAttributeString( id_jobentry, "proxy_host" ); proxyPort = rep.getJobEntryAttributeString( id_jobentry, "proxy_port" ); proxyUsername = rep.getJobEntryAttributeString( id_jobentry, "proxy_username" ); proxyPassword = rep.getJobEntryAttributeString( id_jobentry, "proxy_password" ); connectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "connection_type" ), "" ) ); } catch ( KettleException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobFTPSPUT.UnableToLoadFromRepo", String .valueOf( id_jobentry ) ), dbe ); } }
success_condition = rep.getJobEntryAttributeString( id_jobentry, "success_condition" ); FTPSConnectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "ftps_connection_type" ), "" ) );
Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "success_condition" ), SUCCESS_IF_NO_ERRORS ); connectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "connection_type" ), "" ) ); } catch ( KettleException dbe ) {