ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



inspectorj::agent::commandset::JDWPCommandSet Class Reference

#include <jdwpcommandset.h>

Inheritance diagram for inspectorj::agent::commandset::JDWPCommandSet:

Inheritance graph
[legend]
List of all members.

Detailed Description

JDWPCommandSet is a base class for all commandSet classes.

Derived classes will process JDWPCommands and return a JDWPReply packet via a call back function.

Author:
James May

Definition at line 51 of file jdwpcommandset.h.

Public Member Functions

virtual ~JDWPCommandSet ()
 Destructor.
virtual void process (JDWPCommand *, boost::function< void(JDWPReply *)> cbk)=0

Static Public Member Functions

static QMap< qint64, jclass > & getClassMap ()
 Return a reference to a map of jclasses.

Protected Member Functions

virtual JDWPReplygetJDWPReply (JDWPCommand *cmd)
 Create and return a JDWPReply to hold the reply data to be sent back to the client.
virtual void sendNotImplementedReply (JDWPCommand *cmd, boost::function< void(JDWPReply *) > cbk)
 Send a reply back to the client with an error code indicating that the requested command is not implemented.

Protected Attributes

JavaVM * vm
jvmtiEnv * jvmti
JNIEnv * env
boost::function< void(JDWPReply *)> cbk

Static Private Attributes

static QMap< qint64, jclass > classMap


Constructor & Destructor Documentation

inspectorj::agent::commandset::JDWPCommandSet::~JDWPCommandSet (  )  [virtual]

Destructor.

Definition at line 41 of file jdwpcommandset.cpp.


Member Function Documentation

QMap< qint64, jclass > & inspectorj::agent::commandset::JDWPCommandSet::getClassMap (  )  [static]

Return a reference to a map of jclasses.

The key for each class is its referenceTypeId.

Returns:
classMap

Reimplemented in inspectorj::agent::commandset::VirtualMachineCmdSet.

Definition at line 76 of file jdwpcommandset.cpp.

References classMap.

Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes(), inspectorj::agent::commandset::VirtualMachineCmdSet::getAllClasses(), inspectorj::agent::commandset::ReferenceTypeCmdSet::getFields(), and inspectorj::agent::commandset::ReferenceTypeCmdSet::getMethods().

JDWPReply * inspectorj::agent::commandset::JDWPCommandSet::getJDWPReply ( JDWPCommand cmd  )  [protected, virtual]

Create and return a JDWPReply to hold the reply data to be sent back to the client.

Parameters:
cmd The JDWPCommand to reply to

Definition at line 50 of file jdwpcommandset.cpp.

References inspectorj::jdwp::ERR_NONE, inspectorj::jdwp::JDWPCommand::getId(), and inspectorj::jdwp::JDWP_HEADER_LENGTH.

Referenced by inspectorj::agent::commandset::BytecodeCmdSet::disassembleBytecodes(), inspectorj::agent::commandset::VirtualMachineCmdSet::getAllClasses(), inspectorj::agent::commandset::ReferenceTypeCmdSet::getFields(), inspectorj::agent::commandset::VirtualMachineCmdSet::getIdSizes(), inspectorj::agent::commandset::ReferenceTypeCmdSet::getMethods(), inspectorj::agent::commandset::VirtualMachineCmdSet::getVersionInfo(), and sendNotImplementedReply().

void inspectorj::agent::commandset::JDWPCommandSet::sendNotImplementedReply ( JDWPCommand cmd,
boost::function< void(JDWPReply *) >  cbk 
) [protected, virtual]

Send a reply back to the client with an error code indicating that the requested command is not implemented.

Definition at line 64 of file jdwpcommandset.cpp.

References cbk, inspectorj::jdwp::ERR_NOT_IMPLEMENTED, getJDWPReply(), and inspectorj::jdwp::JDWPReply::setErrorCode().

Referenced by inspectorj::agent::commandset::VirtualMachineCmdSet::capabilities(), inspectorj::agent::commandset::VirtualMachineCmdSet::classpaths(), inspectorj::agent::commandset::VirtualMachineCmdSet::createString(), inspectorj::agent::commandset::VirtualMachineCmdSet::dispose(), inspectorj::agent::commandset::VirtualMachineCmdSet::disposeObjects(), inspectorj::agent::commandset::VirtualMachineCmdSet::exit(), inspectorj::agent::commandset::VirtualMachineCmdSet::getAllClassesWithGeneric(), inspectorj::agent::commandset::VirtualMachineCmdSet::getAllThreads(), inspectorj::agent::commandset::VirtualMachineCmdSet::getClassesBySignature(), inspectorj::agent::commandset::VirtualMachineCmdSet::getTopLevelThreadGroups(), inspectorj::agent::commandset::VirtualMachineCmdSet::holdEvents(), inspectorj::agent::commandset::VirtualMachineCmdSet::newCapabilities(), inspectorj::agent::commandset::VirtualMachineCmdSet::process(), inspectorj::agent::commandset::ReferenceTypeCmdSet::process(), inspectorj::agent::commandset::BytecodeCmdSet::process(), inspectorj::agent::commandset::VirtualMachineCmdSet::redefineClasses(), inspectorj::agent::commandset::VirtualMachineCmdSet::releaseEvents(), inspectorj::agent::commandset::VirtualMachineCmdSet::resume(), inspectorj::agent::commandset::VirtualMachineCmdSet::setDefaultStratum(), and inspectorj::agent::commandset::VirtualMachineCmdSet::suspend().


The documentation for this class was generated from the following files:
Generated on Sun Aug 19 17:08:14 2007 for inspectorJ by  doxygen 1.5.1