| java.lang.Object com.sun.cldchi.tools.memoryprofiler.jdwp.jdwp com.sun.cldchi.tools.memoryprofiler.jdwp.BackEndTest
Field Summary | |
public SocketTransport | debug This object executes all low-level work with JDWP
(connection establishing/terminating, data exchange etc). | public boolean | is_connected | public static boolean | verbose Debug time variable. |
debug | public SocketTransport debug(Code) | | This object executes all low-level work with JDWP
(connection establishing/terminating, data exchange etc).
|
is_connected | public boolean is_connected(Code) | | |
verbose | public static boolean verbose(Code) | | Debug time variable. To see a bit more verbose output
turn it to true . In non-debug mode must
be false otherwise identity of J2SE and KVM outputs
is not guarantered.
|
checkReply | public Reply checkReply(Command c) throws IOException, DebugeeException(Code) | | Sends JDWP command and waits for reply. If reply is not received in
100 seconds DebugeeException is raised. So large timeout
is choosen because of possibility of using extremely slow
or busy systems where VM being debugged is run. This method is
used internally by other BackEndTest methods. Also
it's a good idea to explicity invoke this method when non-zero
error code in considered as correct or allowable answer.
Parameters: c - JDWP command to be sent received reply packet throws: DebugeeException - the command can't be sent or reply packet isnot received in 100 seconds throws: IOException - a generic I/O error occured |
checkReply | public Reply checkReply(Command c, int ErrorCode, String Description) throws IOException, DebugeeException(Code) | | Sends JDWP command and waits for reply. The method expects that
JDWP reply packet will contain expected error code otherwise
DebugeeException is raised. Currently this method is used
internally by othe methods of BackEndTest .
Parameters: c - JDWP command to be sent Parameters: ErrorCode - expected error code in reply packet Parameters: Description - if unexpected error code (in particular,NONE )is received this string will be included inthe error message received reply packet See Also: BackEndTest.checkReplyF(Command,int,String) |
closeConnections | public void closeConnections()(Code) | | Closes connection. This function is executed prior to
KJDB finishing.
|
getIDSizes | public void getIDSizes() throws DebugeeException(Code) | | Determines the sizes (in bytes ) of field IDs,
method IDs, object reference IDs and reference type IDs.
These values are VM specific and are obtained via
VirtualMachine/IDSizes JDWP command. This method is invoked by
openConnections(String, int) method immediately after
establishing JDWP connection.
See Also: BackEndTest.openConnections(String,int) |
isConnected | public boolean isConnected()(Code) | | |
print | public static void print(String s)(Code) | | Debug time method. Rewrite it if you'd like to see debug output
not in the standard output
Parameters: s - String to be printed |
print | public static void print(Vector v) throws Exception(Code) | | Debug time method. Prints the content of the vector to standard
output.
Parameters: v - java.util.Vector object to be printed |
print | public static void print(Packet p, String how) throws Exception(Code) | | Debug time method. Prints the content of JDWP package in specified manner.
Parameters: p - JDWP package to be printed Parameters: how - mask for proper representing of package content. For example,the mask i(o) will protected parsed as follows: firstis int that determines the number of object references followed. All the follwed elements are objectreferences |
printReplies | public void printReplies() throws IOException(Code) | | Prints all JDWP replies that were not demanded yet. This method is
invoked when no expected reply is received that is considered as
fatal error.
|
sendCommand | public Command sendCommand(Command c) throws DebugeeException(Code) | | This method sends JDWP command and does not wait for answer. It's
used internally by other BackEndTest methods. Also
it's a good idea to use this method in some cases when answer is not
guaranteered (for example, if you send VirtualMachine/Resume
JDWP command you may receive no answer because of debugging session
finishing).
Parameters: c - command to be sent command with ID field filled |
|
|