ruper2/src/java/core/org/krysalis/ruper2/files DefaultResourceFilenameAnalyzer.java,1.10,1.11 DefaultResourceGroupFilenameAnalyzer.java,1.7,1.8

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/files
In directory sc8-pr-cvs1:/tmp/cvs-serv11075/src/java/core/org/krysalis/ruper2/files

Modified Files:
	DefaultResourceFilenameAnalyzer.java 
	DefaultResourceGroupFilenameAnalyzer.java 
Log Message:
Reworked monitor interface (thanks for the ideas Anou) and made statistics
monitoring try to answer some questions about groups for us.

Index: DefaultResourceFilenameAnalyzer.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/files/DefaultResourceFilenameAnalyzer.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** DefaultResourceFilenameAnalyzer.java	22 Oct 2003 02:14:09 -0000	1.10
--- DefaultResourceFilenameAnalyzer.java	22 Oct 2003 21:53:25 -0000	1.11
***************
*** 15,18 ****
--- 15,19 ----
  import org.krysalis.ruper2.RuperException;
  import org.krysalis.ruper2.RuperRuntimeException;
+ import org.krysalis.ruper2.monitor.FileEvent;
  import org.krysalis.ruper2.monitor.Monitor;
  import org.krysalis.ruper2.resource.Resource;
***************
*** 377,381 ****
  				if (!store.contains(temp)) {
  
! 					Monitor.getMonitor().ignored(resourceName);
  
  					store.addResource(temp);
--- 378,382 ----
  				if (!store.contains(temp)) {
  
! 					Monitor.getMonitor().notify(new FileEvent(FileEvent.PARSED, resourceName));
  
  					store.addResource(temp);
***************
*** 400,407 ****
  					ve);
  
! 				Monitor.getMonitor().failed(resourceName);
  			}
  		else
! 			Monitor.getMonitor().ignored(resourceName);
  
  	}
--- 401,408 ----
  					ve);
  
! 				Monitor.getMonitor().notify(new FileEvent(FileEvent.FAILED, resourceName));
  			}
  		else
! 			Monitor.getMonitor().notify(new FileEvent(FileEvent.IGNORED, resourceName));
  
  	}

Index: DefaultResourceGroupFilenameAnalyzer.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/files/DefaultResourceGroupFilenameAnalyzer.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** DefaultResourceGroupFilenameAnalyzer.java	22 Oct 2003 02:14:10 -0000	1.7
--- DefaultResourceGroupFilenameAnalyzer.java	22 Oct 2003 21:53:25 -0000	1.8
***************
*** 10,13 ****
--- 10,14 ----
  
  import org.krysalis.ruper2.RuperException;
+ import org.krysalis.ruper2.monitor.FileEvent;
  import org.krysalis.ruper2.monitor.Monitor;
  import org.krysalis.ruper2.resource.ResourceGroup;
***************
*** 164,169 ****
  
  			Logger.getLogger().debug(
! 				Messages.getString(MessageConstants.IGNORE, groupName));
! 			Monitor.getMonitor().ignored(groupName);
  		}
  	}
--- 165,171 ----
  
  			Logger.getLogger().debug(
! 				Messages.getString(MessageConstants.IGNORED, groupName));
! 				// :TODO: BOGUS!!!! Need groupEvent
! 			Monitor.getMonitor().notify(new FileEvent(FileEvent.IGNORED, groupName));
  		}
  	}




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.