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



inspectorj::agent::commandset::VirtualMachineCmdSet Class Reference

#include <virtualmachinecmdset.h>

Inheritance diagram for inspectorj::agent::commandset::VirtualMachineCmdSet:

Inheritance graph
[legend]
Collaboration diagram for inspectorj::agent::commandset::VirtualMachineCmdSet:

Collaboration graph
[legend]
List of all members.

Detailed Description

VirtualMachineCmdSet is a commandSet for executing virtual machine specific commands such as version info, id sizes, etc.

Author:
James May

Definition at line 43 of file virtualmachinecmdset.h.

Public Member Functions

 VirtualMachineCmdSet (JavaVM *vm, JNIEnv *env, jvmtiEnv *jvmti)
 Constructor.
 ~VirtualMachineCmdSet ()
 Destructor.
virtual void process (JDWPCommand *cmd, boost::function< void(JDWPReply *) > cbk)
 Process a JDWPCommand.

Static Public Member Functions

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

Private Member Functions

void getVersionInfo (JDWPCommand *, boost::function< void(JDWPReply *) >)
 Returns the JDWP version implemented by the target VM.
void getClassesBySignature (JDWPCommand *, boost::function< void(JDWPReply *) >)
void getAllClasses (JDWPCommand *, boost::function< void(JDWPReply *) >)
void getAllThreads (JDWPCommand *, boost::function< void(JDWPReply *) >)
void getTopLevelThreadGroups (JDWPCommand *, boost::function< void(JDWPReply *) >)
void dispose (JDWPCommand *, boost::function< void(JDWPReply *) >)
void getIdSizes (JDWPCommand *, boost::function< void(JDWPReply *) >)
void suspend (JDWPCommand *, boost::function< void(JDWPReply *) >)
void resume (JDWPCommand *, boost::function< void(JDWPReply *) >)
void exit (JDWPCommand *, boost::function< void(JDWPReply *) >)
void createString (JDWPCommand *, boost::function< void(JDWPReply *) >)
void capabilities (JDWPCommand *, boost::function< void(JDWPReply *) >)
void classpaths (JDWPCommand *, boost::function< void(JDWPReply *) >)
void disposeObjects (JDWPCommand *, boost::function< void(JDWPReply *) >)
void holdEvents (JDWPCommand *, boost::function< void(JDWPReply *) >)
void releaseEvents (JDWPCommand *, boost::function< void(JDWPReply *) >)
void newCapabilities (JDWPCommand *, boost::function< void(JDWPReply *) >)
void redefineClasses (JDWPCommand *, boost::function< void(JDWPReply *) >)
void setDefaultStratum (JDWPCommand *, boost::function< void(JDWPReply *) >)
void getAllClassesWithGeneric (JDWPCommand *, boost::function< void(JDWPReply *) >)


Constructor & Destructor Documentation

inspectorj::agent::commandset::VirtualMachineCmdSet::VirtualMachineCmdSet ( JavaVM *  vm,
JNIEnv *  env,
jvmtiEnv *  jvmti 
)

Constructor.

Definition at line 38 of file virtualmachinecmdset.cpp.

inspectorj::agent::commandset::VirtualMachineCmdSet::~VirtualMachineCmdSet (  ) 

Destructor.

Definition at line 48 of file virtualmachinecmdset.cpp.


Member Function Documentation

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

Process a JDWPCommand.

Parameters:
cmd The JDWPCommand to process.
cbk The callback to receive a JDWPReply.

Definition at line 58 of file virtualmachinecmdset.cpp.

References capabilities(), inspectorj::agent::commandset::JDWPCommandSet::cbk, classpaths(), createString(), dispose(), disposeObjects(), exit(), getAllClasses(), getAllClassesWithGeneric(), getAllThreads(), getClassesBySignature(), inspectorj::jdwp::JDWPCommand::getCmd(), getIdSizes(), getTopLevelThreadGroups(), getVersionInfo(), holdEvents(), newCapabilities(), redefineClasses(), releaseEvents(), resume(), inspectorj::agent::commandset::JDWPCommandSet::sendNotImplementedReply(), setDefaultStratum(), and suspend().

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

Return a reference to a map of jclasses.

The key for each class is its referenceTypeId.

Returns:
classMap

Reimplemented from inspectorj::agent::commandset::JDWPCommandSet.

void inspectorj::agent::commandset::VirtualMachineCmdSet::getVersionInfo ( JDWPCommand cmd,
boost::function< void(JDWPReply *) >  cbk 
) [private]

Returns the JDWP version implemented by the target VM.

Parameters:
cmd The JDWPCommand to process.
cbk The callback to receive a JDWPReply.

Definition at line 93 of file virtualmachinecmdset.cpp.

References inspectorj::agent::commandset::JDWPCommandSet::cbk, check_jvmti_error(), inspectorj::agent::commandset::JDWPCommandSet::getJDWPReply(), and inspectorj::agent::commandset::JDWPCommandSet::jvmti.

Referenced by process().


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