public XulDatabaseDialog( Shell parent ) { parentShell = parent; databases = null; log = new LogChannel( "XulDatabaseDialog" ); }
/** * Gets the log. * * @return the log */ public LogChannelInterface getLog() { if ( log == null ) { log = new LogChannel( this ); } return log; }
public KettleFileTableModel( LoggingObjectInterface parentObject, List<ReportSubjectLocation> locations ) { this.parentObject = parentObject; this.locations = locations; this.log = new LogChannel( "Kettle File Table Model", parentObject ); }
public FTPSConnection( int connectionType, String hostname, int port, String username, String password, VariableSpace nameSpace ) { this.hostName = hostname; this.portNumber = port; this.userName = username; this.passWord = password; this.connectionType = connectionType; this.passiveMode = false; this.nameSpace = nameSpace; this.logger = new LogChannel( this ); }
private KettleVariablesList() { logger = new LogChannel( this ); descriptionMap = new HashMap<String, String>(); defaultValueMap = new HashMap<String, String>(); }
public SQLEditor( VariableSpace space, Shell parent, int style, DatabaseMeta ci, DBCache dbc, String sql ) { props = PropsUI.getInstance(); log = new LogChannel( ci ); input = sql; connection = ci; dbcache = dbc; this.parentShell = parent; this.style = ( style != SWT.None ) ? style : this.style; this.variables = space; }
public Translator2( Display display ) { this.display = display; this.log = new LogChannel( APP_NAME ); this.props = PropsUI.getInstance(); }
/** * Initialize the repository with the repository metadata and user information. */ public void init( RepositoryMeta repositoryMeta ) { this.repositoryMeta = (KettleDatabaseRepositoryMeta) repositoryMeta; this.serviceList = new ArrayList<>(); this.serviceMap = new HashMap<>(); this.log = new LogChannel( this ); init(); }
public BasePluginType( Class<? extends java.lang.annotation.Annotation> pluginType ) { this.pluginFolders = new ArrayList<>(); this.log = new LogChannel( "Plugin type" ); registry = PluginRegistry.getInstance(); this.pluginType = pluginType; }
@Override public void init( final RepositoryMeta repositoryMeta ) { this.log = new LogChannel( this.getClass().getSimpleName() ); this.repositoryMeta = (PurRepositoryMeta) repositoryMeta; purRepositoryConnector = new PurRepositoryConnector( this, this.repositoryMeta, rootRef ); }
@Override public void init( RepositoryMeta repositoryMeta ) { this.serviceMap = new HashMap<Class<? extends IRepositoryService>, IRepositoryService>(); this.serviceList = new ArrayList<Class<? extends IRepositoryService>>(); this.repositoryMeta = (KettleFileRepositoryMeta) repositoryMeta; this.securityProvider = new KettleFileRepositorySecurityProvider( repositoryMeta ); this.serviceMap.put( RepositorySecurityProvider.class, securityProvider ); this.serviceList.add( RepositorySecurityProvider.class ); this.metaStore = null; this.log = new LogChannel( this ); }
public GPLoadDataOutput( GPLoad gpLoad, GPLoadMeta meta, LogLevel logLevel ) { this( gpLoad, meta ); log = new LogChannel( this ); log.setLogLevel( logLevel ); }
public SlaveServer() { initializeVariablesFrom( null ); id = null; this.log = new LogChannel( STRING_SLAVESERVER ); this.changedDate = new Date(); lock = new ReentrantReadWriteLock(); }
public Job() { init(); this.log = new LogChannel( this ); this.logLevel = log.getLogLevel(); }
/** * Sets the parent job. * * @param parentJob * the new parent job */ public void setParentJob( Job parentJob ) { this.parentJob = parentJob; this.logLevel = parentJob.getLogLevel(); this.log = new LogChannel( this, parentJob ); this.containerObjectId = parentJob.getContainerObjectId(); }
public PurRepositoryConnector( PurRepository purRepository, PurRepositoryMeta repositoryMeta, RootRef rootRef ) { log = new LogChannel( this.getClass().getSimpleName() ); if ( purRepository != null && purRepository.getLog() != null ) { log.setLogLevel( purRepository.getLog().getLogLevel() ); } this.purRepository = purRepository; this.repositoryMeta = repositoryMeta; this.rootRef = rootRef; }
public static String getNativeDataTypeSimpleName( ValueMetaInterface v ) { try { return v.getType() != ValueMetaInterface.TYPE_BINARY ? v.getNativeDataTypeClass().getSimpleName() : "Binary"; } catch ( KettleValueException e ) { LogChannelInterface log = new LogChannel( v ); log.logDebug( BaseMessages.getString( PKG, "FieldHelper.Log.UnknownNativeDataTypeSimpleName" ) ); return "Object"; } } }
public Translator( Display display ) { this.display = display; this.log = new LogChannel( APP_NAME ); this.props = PropsUI.getInstance(); clear(); unusedColor = display.getSystemColor( SWT.COLOR_YELLOW ); }
public Job( String name, String file, String[] args ) { this(); jobMeta = new JobMeta(); if ( name != null ) { setName( name + " (" + super.getName() + ")" ); } jobMeta.setName( name ); jobMeta.setFilename( file ); this.arguments = args; init(); this.log = new LogChannel( this ); }
@Test public void testCreateParentFolder() { String tempDir = TestUtils.createTempDir(); String suff = tempDir.substring( tempDir.lastIndexOf( File.separator ) + 1 ); tempDir += File.separator + suff + File.separator + suff; assertTrue( "Dir should be created", FileUtil.createParentFolder( getClass(), tempDir, true, new LogChannel( this ), null ) ); File fl = new File( tempDir.substring( 0, tempDir.lastIndexOf( File.separator ) ) ); assertTrue( "Dir should exist", fl.exists() ); fl.delete(); new File( tempDir ).delete(); }