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



src/inspectorj/agent/commandset/virtualmachinecmdset.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   inspectorJ - java profiler                                            *
00003  *   Copyright (C) 2007 by James May
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00027 #ifndef INSPECTORJ_AGENT_COMMANDSETVIRTUALMACHINECMDSET_H
00028 #define INSPECTORJ_AGENT_COMMANDSETVIRTUALMACHINECMDSET_H
00029 
00030 #include "inspectorj/agent/commandset/jdwpcommandset.h"   
00031 
00032 namespace inspectorj {
00033 namespace agent {
00034 namespace commandset {
00035 
00043 class VirtualMachineCmdSet : public JDWPCommandSet
00044 {
00045 public:
00046     VirtualMachineCmdSet(JavaVM *vm, JNIEnv *env, jvmtiEnv *jvmti);
00047     ~VirtualMachineCmdSet();
00048     virtual void process(JDWPCommand* cmd, boost::function< void (JDWPReply*) > cbk);
00049     static QMap<qint64, jclass>& getClassMap();
00050     
00051 private:
00052     void getVersionInfo(JDWPCommand*, boost::function< void (JDWPReply*) >);  
00053     void getClassesBySignature(JDWPCommand*, boost::function< void (JDWPReply*) >);
00054     void getAllClasses(JDWPCommand*, boost::function< void (JDWPReply*) >);
00055     void getAllThreads(JDWPCommand*, boost::function< void (JDWPReply*) >);
00056     void getTopLevelThreadGroups(JDWPCommand*, boost::function< void (JDWPReply*) >);
00057     void dispose(JDWPCommand*, boost::function< void (JDWPReply*) >);
00058     void getIdSizes(JDWPCommand*, boost::function< void (JDWPReply*) >);
00059     void suspend(JDWPCommand*, boost::function< void (JDWPReply*) >);
00060     void resume(JDWPCommand*, boost::function< void (JDWPReply*) >);
00061     void exit(JDWPCommand*, boost::function< void (JDWPReply*) >);
00062     void createString(JDWPCommand*, boost::function< void (JDWPReply*) >);
00063     void capabilities(JDWPCommand*, boost::function< void (JDWPReply*) >);
00064     void classpaths(JDWPCommand*, boost::function< void (JDWPReply*) >);
00065     void disposeObjects(JDWPCommand*, boost::function< void (JDWPReply*) >);
00066     void holdEvents(JDWPCommand*, boost::function< void (JDWPReply*) >);
00067     void releaseEvents(JDWPCommand*, boost::function< void (JDWPReply*) >);
00068     void newCapabilities(JDWPCommand*, boost::function< void (JDWPReply*) >);
00069     void redefineClasses(JDWPCommand*, boost::function< void (JDWPReply*) >);
00070     void setDefaultStratum(JDWPCommand*, boost::function< void (JDWPReply*) >);
00071     void getAllClassesWithGeneric(JDWPCommand*, boost::function< void (JDWPReply*) >);          
00072 };
00073 
00074 } // end namespace commandset
00075 } // end namespace agent
00076 } // end namespace inspectorj
00077 
00078 #endif // INSPECTORJ_AGENT_COMMANDSETVIRTUALMACHINECMDSET_H

Generated on Sun Aug 19 17:07:53 2007 for inspectorJ by  doxygen 1.5.1