HQU GConsole

The Groovy Console is an easy way to start practicing your Groovy skills. It is available in the Administration -> Plugins section, and allows you to execute any arbitrary Groovy code within the context of the HQ server.

Will result in the console printing the first 20 fibonacci numbers as a response.

Experimenting with HQ

You can get a feel for any HQ methods before using them in your plugin, by using the Groovy Console.

import org.hyperic.hq.appdef.server.session.PlatformManagerEJBImpl as PlatMan

PlatMan.one.findPlatform(10001)
Creating reusable templates

If you find yourself using a set of Groovy code frequently (like to issue an HQL query or run a test), you will want to make it into a reusable template.

To do this, simply copy it into your gconsoleTemplates directory and it will be available as a menu-item in GConsole:

cp myTemplate.groovy $JBOSS_HOME/server/default/deploy/hq.ear/gconsoleTemplates

If you are building and deploying HQ from source, you can also place it in

~/.hq/gconsoleTemplates

and they will be automatically picked up by the build.


Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Advanced
- Activity

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

or Sign Up  

Other Features

Add Content


System Monitoring Software
SourceForge.net Logo