view vm-heap-analysis/distribution/thermostat-plugin.xml @ 1124:49f6272156ff

Move command availability to command info Reviewed-by: jerboaa, neugens Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-May/006794.html
author Omair Majid <omajid@redhat.com>
date Fri, 31 May 2013 12:15:17 -0400
parents cc4b35354a39
children
line wrap: on
line source

<?xml version="1.0"?>
<!-- 

 Copyright 2012, 2013 Red Hat, Inc.

 This file is part of Thermostat.

 Thermostat is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published
 by the Free Software Foundation; either version 2, or (at your
 option) any later version.

 Thermostat is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with Thermostat; see the file COPYING.  If not see
 <http://www.gnu.org/licenses />.

 Linking this code with other modules is making a combined work
 based on this code.  Thus, the terms and conditions of the GNU
 General Public License cover the whole combination.

 As a special exception, the copyright holders of this code give
 you permission to link this code with independent modules to
 produce an executable, regardless of the license terms of these
 independent modules, and to copy and distribute the resulting
 executable under terms of your choice, provided that you also
 meet, for each linked independent module, the terms and conditions
 of the license of that module.  An independent module is a module
 which is not derived from or based on this code.  If you modify
 this code, you may extend this exception to your version of the
 library, but you are not obligated to do so.  If you do not wish
 to do so, delete this exception statement from your version.

-->
<plugin xmlns="http://icedtea.classpath.org/thermostat/plugins/v1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://icedtea.classpath.org/thermostat/plugins/v1.0 thermostat-plugin.xsd">
  <commands>
    <command>
      <name>dump-heap</name>
      <description>trigger a heap dump on the VM</description>
      <options>
        <option>
          <long>hostId</long>
          <short>a</short>
          <argument>host</argument>
          <required>true</required>
          <description>the ID of the host to monitor</description>
        </option>
        <option>
          <long>vmId</long>
          <short>v</short>
          <argument>vm</argument>
          <required>true</required>
          <description>the ID of the VM to monitor</description>
        </option>
        <option common="true">
          <long>dbUrl</long>
        </option>
        <option common="true">
          <long>logLevel</long>
        </option>
      </options>
      <environments>
        <environment>cli</environment>
        <environment>shell</environment>
      </environments>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-command-${project.version}.jar</bundle>
      </bundles>
      <dependencies>
        <dependency>thermostat-common-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-core-${project.version}.jar</dependency>
        <dependency>thermostat-client-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-cli-${project.version}.jar</dependency>
        <dependency>thermostat-storage-mongodb-${project.version}.jar</dependency>
        <dependency>thermostat-web-common-${project.version}.jar</dependency>
        <dependency>thermostat-web-client-${project.version}.jar</dependency>
        <dependency>mongo.jar</dependency>
        <dependency>commons-beanutils.jar</dependency>
        <dependency>commons-codec.jar</dependency>
        <dependency>commons-collections.jar</dependency>
        <dependency>commons-logging.jar</dependency>
        <dependency>httpcomponents-core.jar</dependency>
        <dependency>httpcomponents-client.jar</dependency>
        <dependency>gson.jar</dependency>
        <dependency>netty.jar</dependency>
      </dependencies>
    </command>
    <command>
      <name>find-objects</name>
      <description>finds objects in a heapdump</description>
      <arguments>
        <argument>pattern</argument>
      </arguments>
      <options>
        <option>
          <long>heapId</long>
          <short>h</short>
          <argument>heap</argument>
          <required>true</required>
          <description>the ID of the heapdump to analyze</description>
        </option>
        <option>
          <long>limit</long>
          <short>L</short>
          <argument>limit</argument>
          <required>false</required>
          <description>limit search to top N results, defaults to 10</description>
        </option>
        <option common="true">
          <long>dbUrl</long>
        </option>
        <option common="true">
          <long>logLevel</long>
        </option>
      </options>
      <environments>
        <environment>cli</environment>
        <environment>shell</environment>
      </environments>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-command-${project.version}.jar</bundle>
      </bundles>
      <dependencies>
        <dependency>thermostat-common-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-core-${project.version}.jar</dependency>
        <dependency>thermostat-client-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-cli-${project.version}.jar</dependency>
        <dependency>thermostat-storage-mongodb-${project.version}.jar</dependency>
        <dependency>thermostat-web-common-${project.version}.jar</dependency>
        <dependency>thermostat-web-client-${project.version}.jar</dependency>
        <dependency>mongo.jar</dependency>
        <dependency>commons-beanutils.jar</dependency>
        <dependency>commons-codec.jar</dependency>
        <dependency>commons-collections.jar</dependency>
        <dependency>commons-logging.jar</dependency>
        <dependency>httpcomponents-core.jar</dependency>
        <dependency>httpcomponents-client.jar</dependency>
        <dependency>gson.jar</dependency>
        <dependency>netty.jar</dependency>
      </dependencies>
    </command>
    <command>
      <name>find-root</name>
      <description>finds the shortest path from an object to a GC root</description>
      <options>
        <option>
          <long>heapId</long>
          <short>h</short>
          <argument>heap</argument>
          <required>true</required>
          <description>the ID of the heapdump to analyze</description>
        </option>
        <option>
          <long>objectId</long>
          <short>o</short>
          <argument>heap</argument>
          <required>true</required>
          <description>the ID of the object to query</description>
        </option>
        <option>
          <long>all</long>
          <short>a</short>
          <required>false</required>
          <description>finds all paths to GC roots</description>
        </option>
        <option common="true">
          <long>dbUrl</long>
        </option>
        <option common="true">
          <long>logLevel</long>
        </option>
      </options>
      <environments>
        <environment>cli</environment>
        <environment>shell</environment>
      </environments>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-command-${project.version}.jar</bundle>
      </bundles>
      <dependencies>
        <dependency>thermostat-common-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-core-${project.version}.jar</dependency>
        <dependency>thermostat-client-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-cli-${project.version}.jar</dependency>
        <dependency>thermostat-storage-mongodb-${project.version}.jar</dependency>
        <dependency>thermostat-web-common-${project.version}.jar</dependency>
        <dependency>thermostat-web-client-${project.version}.jar</dependency>
        <dependency>mongo.jar</dependency>
        <dependency>commons-beanutils.jar</dependency>
        <dependency>commons-codec.jar</dependency>
        <dependency>commons-collections.jar</dependency>
        <dependency>commons-logging.jar</dependency>
        <dependency>httpcomponents-core.jar</dependency>
        <dependency>httpcomponents-client.jar</dependency>
        <dependency>gson.jar</dependency>
        <dependency>netty.jar</dependency>
      </dependencies>
    </command>
    <command>
      <name>list-heap-dumps</name>
      <description>list all heap dumps</description>
      <options>
        <option>
          <long>hostId</long>
          <short>a</short>
          <argument>host</argument>
          <required>false</required>
          <description>the ID of the host to monitor</description>
        </option>
        <option>
          <long>vmId</long>
          <short>v</short>
          <argument>vm</argument>
          <required>false</required>
          <description>the ID of the VM to monitor</description>
        </option>
        <option common="true">
          <long>dbUrl</long>
        </option>
        <option common="true">
          <long>logLevel</long>
        </option>
      </options>
      <environments>
        <environment>cli</environment>
        <environment>shell</environment>
      </environments>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-command-${project.version}.jar</bundle>
      </bundles>
      <dependencies>
        <dependency>thermostat-common-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-core-${project.version}.jar</dependency>
        <dependency>thermostat-client-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-cli-${project.version}.jar</dependency>
        <dependency>thermostat-storage-mongodb-${project.version}.jar</dependency>
        <dependency>thermostat-web-common-${project.version}.jar</dependency>
        <dependency>thermostat-web-client-${project.version}.jar</dependency>
        <dependency>mongo.jar</dependency>
        <dependency>commons-beanutils.jar</dependency>
        <dependency>commons-codec.jar</dependency>
        <dependency>commons-collections.jar</dependency>
        <dependency>commons-logging.jar</dependency>
        <dependency>httpcomponents-core.jar</dependency>
        <dependency>httpcomponents-client.jar</dependency>
        <dependency>gson.jar</dependency>
        <dependency>netty.jar</dependency>
      </dependencies>
    </command>
    <command>
      <name>object-info</name>
      <description>prints information about an object in a heap dump</description>
      <options>
        <option>
          <long>heapId</long>
          <short>h</short>
          <argument>heap</argument>
          <required>true</required>
          <description>the ID of the heapdump to analyze</description>
        </option>
        <option>
          <long>objectId</long>
          <short>o</short>
          <argument>object</argument>
          <required>true</required>
          <description>the ID of the object to query</description>
        </option>
        <option common="true">
          <long>dbUrl</long>
        </option>
        <option common="true">
          <long>logLevel</long>
        </option>
      </options>
      <environments>
        <environment>cli</environment>
        <environment>shell</environment>
      </environments>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-command-${project.version}.jar</bundle>
      </bundles>
      <dependencies>
        <dependency>thermostat-common-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-core-${project.version}.jar</dependency>
        <dependency>thermostat-client-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-cli-${project.version}.jar</dependency>
        <dependency>thermostat-storage-mongodb-${project.version}.jar</dependency>
        <dependency>thermostat-web-common-${project.version}.jar</dependency>
        <dependency>thermostat-web-client-${project.version}.jar</dependency>
        <dependency>mongo.jar</dependency>
        <dependency>commons-beanutils.jar</dependency>
        <dependency>commons-codec.jar</dependency>
        <dependency>commons-collections.jar</dependency>
        <dependency>commons-logging.jar</dependency>
        <dependency>httpcomponents-core.jar</dependency>
        <dependency>httpcomponents-client.jar</dependency>
        <dependency>gson.jar</dependency>
        <dependency>netty.jar</dependency>
      </dependencies>
    </command>
    <command>
      <name>save-heap-dump-to-file</name>
      <description>saves a heap dump to a local file</description>
      <options>
        <option>
          <long>heapId</long>
          <short>h</short>
          <argument>heap</argument>
          <required>true</required>
          <description>the ID of the heapdump to analyze</description>
        </option>
        <option>
          <long>file</long>
          <short>f</short>
          <argument>filename</argument>
          <required>true</required>
          <description>the file name to save to</description>
        </option>
        <option common="true">
          <long>dbUrl</long>
        </option>
        <option common="true">
          <long>logLevel</long>
        </option>
      </options>
      <environments>
        <environment>cli</environment>
        <environment>shell</environment>
      </environments>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-command-${project.version}.jar</bundle>
      </bundles>
      <dependencies>
        <dependency>thermostat-common-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-core-${project.version}.jar</dependency>
        <dependency>thermostat-client-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-cli-${project.version}.jar</dependency>
        <dependency>thermostat-storage-mongodb-${project.version}.jar</dependency>
        <dependency>thermostat-web-common-${project.version}.jar</dependency>
        <dependency>thermostat-web-client-${project.version}.jar</dependency>
        <dependency>mongo.jar</dependency>
        <dependency>commons-beanutils.jar</dependency>
        <dependency>commons-codec.jar</dependency>
        <dependency>commons-collections.jar</dependency>
        <dependency>commons-logging.jar</dependency>
        <dependency>httpcomponents-core.jar</dependency>
        <dependency>httpcomponents-client.jar</dependency>
        <dependency>gson.jar</dependency>
        <dependency>netty.jar</dependency>
      </dependencies>
    </command>
    <command>
      <name>show-heap-histogram</name>
      <description>show the heap histogram</description>
      <options>
        <option>
          <long>heapId</long>
          <short>h</short>
          <argument>heap</argument>
          <required>true</required>
          <description>the ID of the heapdump to analyze</description>
        </option>
        <option common="true">
          <long>dbUrl</long>
        </option>
        <option common="true">
          <long>logLevel</long>
        </option>
      </options>
      <environments>
        <environment>cli</environment>
        <environment>shell</environment>
      </environments>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-command-${project.version}.jar</bundle>
      </bundles>
      <dependencies>
        <dependency>thermostat-common-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-core-${project.version}.jar</dependency>
        <dependency>thermostat-client-command-${project.version}.jar</dependency>
        <dependency>thermostat-client-cli-${project.version}.jar</dependency>
        <dependency>thermostat-storage-mongodb-${project.version}.jar</dependency>
        <dependency>thermostat-web-common-${project.version}.jar</dependency>
        <dependency>thermostat-web-client-${project.version}.jar</dependency>
        <dependency>mongo.jar</dependency>
        <dependency>commons-beanutils.jar</dependency>
        <dependency>commons-codec.jar</dependency>
        <dependency>commons-collections.jar</dependency>
        <dependency>commons-logging.jar</dependency>
        <dependency>httpcomponents-core.jar</dependency>
        <dependency>httpcomponents-client.jar</dependency>
        <dependency>gson.jar</dependency>
        <dependency>netty.jar</dependency>
      </dependencies>
    </command>
  </commands>
  <extensions>
    <extension>
      <name>gui</name>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-command-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-client-core-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-client-swing-${project.version}.jar</bundle>
      </bundles>
    </extension>
    <extension>
      <name>agent</name>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
        <bundle>thermostat-vm-heap-analysis-agent-${project.version}.jar</bundle>
      </bundles>
    </extension>
    <!-- Requires all storage entity classes to be loaded -->
    <extension>
      <name>webservice</name>
      <bundles>
        <bundle>thermostat-vm-heap-analysis-common-${project.version}.jar</bundle>
      </bundles>
    </extension>
  </extensions>
</plugin>