incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r782111 - in /incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi: CommandPacket.java DTFJReader.java JDICacher.java JDWPServer.java KatoReader.java ReplyPacket.java
Date Fri, 05 Jun 2009 19:34:52 GMT
Author: spoole
Date: Fri Jun  5 19:34:52 2009
New Revision: 782111

URL: http://svn.apache.org/viewvc?rev=782111&view=rev
Log:
rename dtfj reader class to be katoreader

Added:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java
      - copied, changed from r779997, incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/DTFJReader.java
Removed:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/DTFJReader.java
Modified:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/CommandPacket.java
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDICacher.java
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDWPServer.java
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/ReplyPacket.java

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/CommandPacket.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/CommandPacket.java?rev=782111&r1=782110&r2=782111&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/CommandPacket.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/CommandPacket.java
Fri Jun  5 19:34:52 2009
@@ -48,8 +48,8 @@
 	public byte[] toBytes(){
 		Vector<Byte> vctr = new Vector<Byte>();
 		int len = 11 + getByteData().length;
-		DTFJReader.addIntToVector(vctr, len);
-		DTFJReader.addIntToVector(vctr, nSeq);
+		KatoReader.addIntToVector(vctr, len);
+		KatoReader.addIntToVector(vctr, nSeq);
 		vctr.add((byte)nFlags);
 		vctr.add((byte)nCmdSet);
 		vctr.add((byte)nCmd);
@@ -60,7 +60,7 @@
 			}
 		}
 		
-		return DTFJReader.vectorToByte(vctr);
+		return KatoReader.vectorToByte(vctr);
 		
 		
 	}

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDICacher.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDICacher.java?rev=782111&r1=782110&r2=782111&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDICacher.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDICacher.java
Fri Jun  5 19:34:52 2009
@@ -78,7 +78,7 @@
 		logr.log(JDILogger.LEVEL_VERYVERBOSE, "JDICacher 1.0"); //$NON-NLS-1$
 		this.coreFile = coreFile;
 		logr.log(JDILogger.LEVEL_VERYVERBOSE, "Creating DTFJReader"); //$NON-NLS-1$
-		provider = new DTFJReader(coreFile, svr, JDILogger.logger);
+		provider = new KatoReader(coreFile, svr, JDILogger.logger);
 		logr.log(JDILogger.LEVEL_VERYVERBOSE, "DTFJReader created"); //$NON-NLS-1$
 
 
@@ -184,7 +184,7 @@
 		}catch(Exception exxy){
 			logr.logError(JDILogger.LEVEL_NORMAL, "Uncaught exception"); //$NON-NLS-1$
 			exxy.printStackTrace(new PrintStream(logr.getErrorStream()));
-			rpckt = new ReplyPacket(cmdpckt.getSequence(), DTFJReader.FLAG_REPLY_PACKET, DTFJReader.ERROR_INTERNAL);
+			rpckt = new ReplyPacket(cmdpckt.getSequence(), KatoReader.FLAG_REPLY_PACKET, KatoReader.ERROR_INTERNAL);
 			return rpckt;
 		}
 		ctime = System.currentTimeMillis() - ctime;

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDWPServer.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDWPServer.java?rev=782111&r1=782110&r2=782111&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDWPServer.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/JDWPServer.java
Fri Jun  5 19:34:52 2009
@@ -201,7 +201,7 @@
 				return outData;
 			}
 
-			int length = DTFJReader.createIntFromBytes(inBytes, 0, 4);
+			int length = KatoReader.createIntFromBytes(inBytes, 0, 4);
 			if (length > inBytes.length){
 				logr.logError(JDILogger.LEVEL_VERYVERBOSE, "Truncated packet does not have correct size?
(got "+inBytes.length+", size "+length+")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 				try{
@@ -215,7 +215,7 @@
 				}
 				return outData;
 			}
-			int sequence = DTFJReader.createIntFromBytes(inBytes, 4, 4);
+			int sequence = KatoReader.createIntFromBytes(inBytes, 4, 4);
 			int flags = inBytes[8];
 			if (flags != 0){
 				logr.log(JDILogger.LEVEL_VERBOSE, "ReplyPacket received"); //$NON-NLS-1$

Copied: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java
(from r779997, incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/DTFJReader.java)
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java?p2=incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java&p1=incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/DTFJReader.java&r1=779997&r2=782111&rev=782111&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/DTFJReader.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java
Fri Jun  5 19:34:52 2009
@@ -78,7 +78,7 @@
  * </ol>
  * 
  */
-public class DTFJReader implements CacherProvider{
+public class KatoReader implements CacherProvider{
 	private HashMap<Long, JavaClass> classes;
 	//	Image is actually an 'image' of the core at crash time.
 	//	Since it's the basis of every query, I'm saving it over queries
@@ -178,7 +178,7 @@
 
 
 
-	public DTFJReader(){
+	public KatoReader(){
 
 	}
 
@@ -190,7 +190,7 @@
 	 * @param logger		JDILogger to use to log against
 	 * @throws Exception	An error passed up from the DTFJ api, or sanity test fail
 	 */
-	public DTFJReader(String ipathToCore, JDWPServer isvr, JDILogger logger) throws Exception{
+	public KatoReader(String ipathToCore, JDWPServer isvr, JDILogger logger) throws Exception{
 		logr = logger;
 		logr.log(JDILogger.LEVEL_VERYVERBOSE, "DTFJReader 1.0"); //$NON-NLS-1$
 		pathToCore = ipathToCore;

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/ReplyPacket.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/ReplyPacket.java?rev=782111&r1=782110&r2=782111&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/ReplyPacket.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/ReplyPacket.java
Fri Jun  5 19:34:52 2009
@@ -44,8 +44,8 @@
 	public byte[] toBytes(){
 		Vector<Byte> vctr = new Vector<Byte>();
 		int len = 11 + getByteData().length;
-		DTFJReader.addIntToVector(vctr, len);
-		DTFJReader.addIntToVector(vctr, nSeq);
+		KatoReader.addIntToVector(vctr, len);
+		KatoReader.addIntToVector(vctr, nSeq);
 		vctr.add((byte)nFlags);
 		vctr.add((byte)((nErrorCode >> 8)&0xFF));
 		vctr.add((byte)(nErrorCode & 0xFF));
@@ -56,7 +56,7 @@
 			}
 		}
 		
-		return DTFJReader.vectorToByte(vctr);
+		return KatoReader.vectorToByte(vctr);
 		
 		
 	}



Mime
View raw message