incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r881576 - in /incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview: Session.java heapdump/HeapDumpSettings.java
Date Tue, 17 Nov 2009 22:30:32 GMT
Author: monteith
Date: Tue Nov 17 22:30:31 2009
New Revision: 881576

URL: http://svn.apache.org/viewvc?rev=881576&view=rev
Log:
Change "core" to "dump"

Modified:
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/Session.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/heapdump/HeapDumpSettings.java

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/Session.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/Session.java?rev=881576&r1=881575&r2=881576&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/Session.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/Session.java
Tue Nov 17 22:30:31 2009
@@ -31,7 +31,7 @@
 
 public class Session {
 
-	public static final String CORE_FILE_PATH_PROPERTY = "core_file_path";
+	public static final String DUMP_FILE_PATH_PROPERTY = "dump_file_path";
 	private Image loadedImage;
 	private RootCommand rootCommand;
 	private HashMap variables;
@@ -65,7 +65,7 @@
 	 */
 	private Image imageFromCommandLine(String args[]) {
 		Image loadedImage = null;
-		int coreFilePathIndex = indexOf("-core", args)+1;
+		int dumpFilePathIndex = indexOf("-dump", args)+1;
 		int verboseIndex = indexOf("-verbose", args)+1;		
 		
 		if (0 != verboseIndex) {
@@ -75,17 +75,17 @@
 		String launcher = System.getProperty(launcherProperty, "katoview");
 		
 		// User must specify -core as parameter, and a dump filename following
-		if (((0 == coreFilePathIndex) && (args.length <= coreFilePathIndex))) {
+		if (((0 == dumpFilePathIndex) && (args.length <= dumpFilePathIndex))) {
 			out.println(
-				"\n\tUsage: \"" + launcher + " [ -verbose ] -core <core_file>");
+				"\n\tUsage: \"" + launcher + " [ -verbose ] -dump <dump_file>");
 			return null;
 		}
 
 //		out.println(Version.getAllVersionInfo(factory));
-		out.println("Loading image from Kato...\n");
+		out.println("Loading dump from Kato...\n");
 		
 		try {		    
-			String coreFilePath = args[coreFilePathIndex];
+			String coreFilePath = args[dumpFilePathIndex];
 			loadedImage = FactoryRegistry.getDefaultRegistry().getImage(new File(coreFilePath));
 			
 			if (loadedImage == null) {
@@ -93,7 +93,7 @@
 			}
 			
 			//Store the core file file path in the variables. We need it for creating default filenames
for heapdumps
-			variables.put(CORE_FILE_PATH_PROPERTY, coreFilePath);
+			variables.put(DUMP_FILE_PATH_PROPERTY, coreFilePath);
 		} catch (IOException e) {
 			out.error("Could not load dump file: " + e.getMessage());
 			

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/heapdump/HeapDumpSettings.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/heapdump/HeapDumpSettings.java?rev=881576&r1=881575&r2=881576&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/heapdump/HeapDumpSettings.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/heapdump/HeapDumpSettings.java
Tue Nov 17 22:30:31 2009
@@ -52,7 +52,7 @@
 	
 	private static String getDefaultHeapDumpFileName(Map properties)
 	{
-		String baseFileName = (String) properties.get(Session.CORE_FILE_PATH_PROPERTY);
+		String baseFileName = (String) properties.get(Session.DUMP_FILE_PATH_PROPERTY);
 		
 		if(areHeapDumpsPHD(properties)) {
 			return baseFileName + ".phd";



Mime
View raw message