}
private void scheduleJob( int intervalInSeconds ) throws Exception {
IScheduler scheduler = PentahoSystem.get( IScheduler.class, "IScheduler2", null ); //$NON-NLS-1$
JobTrigger trigger = new SimpleJobTrigger( new Date(), null, -1, intervalInSeconds );
jobMap.put( "transFileName", getTransFileName() );
scheduler.createJob( GatherStatsListener.JOB_NAME, GatherStatsAction.class, jobMap, trigger );
logger.info( "Statistics gathering jop has been scheduled." );
}