Package eu.admire.seismo.common

Examples of eu.admire.seismo.common.DirWatcher


    File processingFolder   = new File(path);
  
   if(!processingFolder.exists())
     processingFolder.mkdirs();
  
    DirWatcher task = new DirWatcher(path, "seed" ) {
        protected void onChange( File file, String action ) {
          // here we code the action on a change
         try{
        
         System.out.println( "File "+ file.getName() +" action: " + action );
View Full Code Here


    File processingFolder   = new File(path);
  
   if(!processingFolder.exists())
     processingFolder.mkdirs();
  
    DirWatcher task = new DirWatcher(path, "seed" ) {
        protected void onChange( File file, String action ) {
          // here we code the action on a change
         try{
        
         System.out.println( "File "+ file.getName() +" action: " + action );
View Full Code Here

  public void CheckFiles() throws Exception
  {   
    final HashMap stamap = new HashMap();
    
      
      DirWatcher task = new DirWatcher("./", "seed" ) {
          protected void onChange( File file, String action ) {
            // here we code the action on a change
           try{ System.out.println( "File "+ file.getName() +" action: " + WaveformDasetsAggregationActivity.extractStationCode(file.getName()) );
            
           } catch (Exception e)
View Full Code Here

TOP

Related Classes of eu.admire.seismo.common.DirWatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.