Refine search
@Override public void transFinished( Trans trans ) throws KettleException { try { endProcessing(); lastWrittenStepPerformanceSequenceNr = writeStepPerformanceLogRecords( lastWrittenStepPerformanceSequenceNr, LogStatus.END ); } catch ( KettleException e ) { throw new KettleException( BaseMessages.getString( PKG, "Trans.Exception.UnableToPerformLoggingAtTransEnd" ), e ); } } } );
@Override public void logError( String message, Object... arguments ) { errors.add( new KettleException( message ) ); } }
private void ensureHasPermissions() throws KettleException { if ( !hasNecessaryPermissions ) { throw new KettleException( BaseMessages.getString( UserRoleDelegate.class, "UserRoleDelegate.ERROR_0014_INSUFFICIENT_PRIVILEGES" ) ); //$NON-NLS-1$ } }
public Map<String, String> getAllLogicalRoles( String locale ) throws KettleException { if ( authorizationPolicyRoleBindingService != null ) { return roleBindingStruct.logicalRoleNameMap; } else { throw new KettleException( BaseMessages.getString( AbsSecurityManager.class, "AbsSecurityManager.ERROR_0005_INSUFFICIENT_PRIVELEGES" ) ); //$NON-NLS-1$ } }
public List<String> getLogicalRoles( String runtimeRole ) throws KettleException { if ( authorizationPolicyRoleBindingService != null ) { if ( roleBindingStruct != null && roleBindingStruct.bindingMap != null && roleBindingStruct.bindingMap.containsKey( runtimeRole ) ) { return roleBindingStruct.bindingMap.get( runtimeRole ); } return null; } else { throw new KettleException( BaseMessages.getString( AbsSecurityManager.class, "AbsSecurityManager.ERROR_0005_INSUFFICIENT_PRIVELEGES" ) ); //$NON-NLS-1$ } }
private void writeToFile( InputStream is, OutputStream os, String filename ) throws KettleException { try { IOUtils.copy( is, os ); } catch ( IOException e ) { throw new KettleException( BaseMessages.getString( PKG, "JobFTPS.Error.WritingToFile", filename ), e ); } finally { IOUtils.closeQuietly( is ); IOUtils.closeQuietly( os ); } }
public List<String> getAllowedActions( String nameSpace ) throws KettleException { try { return allowedActionsActiveCache.get( nameSpace ); } catch ( Exception e ) { throw new KettleException( BaseMessages.getString( AbsSecurityProvider.class, "AbsSecurityProvider.ERROR_0003_UNABLE_TO_ACCESS_GET_ALLOWED_ACTIONS" ), e ); //$NON-NLS-1$ } }
public boolean isAllowed( String actionName ) throws KettleException { try { return isAllowedActiveCache.get( actionName ); } catch ( Exception e ) { throw new KettleException( BaseMessages.getString( AbsSecurityProvider.class, "AbsSecurityProvider.ERROR_0002_UNABLE_TO_ACCESS_IS_ALLOWED" ), e ); //$NON-NLS-1$ } }
@Override public void transFinished( Trans trans ) throws KettleException { try { writeLogChannelInformation(); } catch ( KettleException e ) { throw new KettleException( BaseMessages.getString( PKG, "Trans.Exception.UnableToPerformLoggingAtTransEnd" ), e ); } } } );
public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException { try { resultfieldname = rep.getStepAttributeString( id_step, "resultfieldname" ); } catch ( Exception e ) { throw new KettleException( BaseMessages.getString( PKG, "DetectLastRowMeta.Exception.UnexpectedErrorReadingStepInfo" ), e ); } }
private void addToCache( Object[] value ) throws KettleException { try { data.look.add( value ); } catch ( java.lang.OutOfMemoryError o ) { // exception out of memory throw new KettleException( BaseMessages.getString( PKG, "FuzzyMatch.Error.JavaHeap", o.toString() ) ); } }
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { filename = rep.getJobEntryAttributeString( id_jobentry, "filename" ); } catch ( KettleException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobEntryFileExists.ERROR_0002_Cannot_Load_Job_From_Repository", id_jobentry ), dbe ); } }
/** * Validates if the session is open. */ public void sessionValid() throws KettleException { if ( this.userSession == null || !this.userSession.isOpen() ) { throw new KettleException( BaseMessages.getString( PKG, EXCEPTION_SESSION_CLOSED ) ); } } }
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { script = rep.getJobEntryAttributeString( id_jobentry, "script" ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobEntryEval.UnableToLoadFromRepo", String .valueOf( id_jobentry ) ), dbe ); } }
@Override public void transFinished( Trans trans ) throws KettleException { try { writeStepLogInformation(); } catch ( KettleException e ) { throw new KettleException( BaseMessages.getString( PKG, "Trans.Exception.UnableToPerformLoggingAtTransEnd" ), e ); } } } );
@Override public void jobFinished( Job job ) throws KettleException { try { writeLogChannelInformation(); } catch ( KettleException e ) { throw new KettleException( BaseMessages.getString( PKG, "Job.Exception.UnableToPerformLoggingAtTransEnd" ), e ); } } } );
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step ) throws KettleException { try { rep.saveStepAttribute( id_transformation, id_step, "resultfieldname", resultfieldname ); } catch ( Exception e ) { throw new KettleException( BaseMessages.getString( PKG, "DetectLastRowMeta.Exception.UnableToSaveStepInfo" ) + id_step, e ); } }
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { messageAbort = rep.getJobEntryAttributeString( id_jobentry, "message" ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobEntryAbort.UnableToLoadFromRepo.Label", String .valueOf( id_jobentry ) ), dbe ); } }
public void writeData() throws KettleException { try { FileOutputStream fos = new FileOutputStream( new File( getKettleUserRepositoriesFile() ) ); fos.write( getXML().getBytes() ); fos.close(); } catch ( Exception e ) { throw new KettleException( BaseMessages.getString( PKG, "RepositoryMeta.Error.WritingMetadata" ), e ); } }
public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_job ) throws KettleException { try { rep.saveJobEntryAttribute( id_job, getObjectId(), "script", script ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobEntryEval.UnableToSaveToRepo", String .valueOf( id_job ) ), dbe ); } }