com.jalios.jcms.analytics
Class MigrationTools

java.lang.Object
  extended by com.jalios.jcms.analytics.MigrationTools

public class MigrationTools
extends Object


Constructor Summary
MigrationTools()
           
 
Method Summary
 void doJob(String statsDirectoryPath, Date startDate, Date endDate, String eventDirectoryPath)
           
static Set getExistingStatFiles(String statsPath, long oldDate, long nowDate)
          Return the list of stat files that exist between date1 and date2.
static MonitoredInputStream getStatStream(String statsDirectoryPath, long oldDate, long nowDate)
          Return the MonitoredInputStream of stat files that exist between date1 and date2.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationTools

public MigrationTools()
Method Detail

main

public static void main(String[] args)

doJob

public void doJob(String statsDirectoryPath,
                  Date startDate,
                  Date endDate,
                  String eventDirectoryPath)

getStatStream

public static MonitoredInputStream getStatStream(String statsDirectoryPath,
                                                 long oldDate,
                                                 long nowDate)
Return the MonitoredInputStream of stat files that exist between date1 and date2.

Parameters:
statsDirectoryPath - the directory which contains stats file
oldDate - the date from which the analyse start
nowDate - the date from which the analyse end
Returns:
List

getExistingStatFiles

public static Set getExistingStatFiles(String statsPath,
                                       long oldDate,
                                       long nowDate)
Return the list of stat files that exist between date1 and date2.

Parameters:
statsPath - the directory which contains stats file
oldDate - the date from which the analyse start
nowDate - the date from which the analyse end
Returns:
List


Copyright © 2001-2010 Jalios SA. All Rights Reserved.