inspectorJ -- JavaTM Profiler
|
|
|
#include <jdwpcommandset.h>
Inheritance diagram for inspectorj::agent::commandset::JDWPCommandSet:

Derived classes will process JDWPCommands and return a JDWPReply packet via a call back function.
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 JDWPReply * | getJDWPReply (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 |
| inspectorj::agent::commandset::JDWPCommandSet::~JDWPCommandSet | ( | ) | [virtual] |
| 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.
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.
| 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().
1.5.1