view distribution/config/commands/vm-stat.properties @ 908:1e51015e63e5

Allow plugins to dynamically contribute output to vm-stat command This commit follows the previous commits that created agent and common bundles for the plugins we include with Thermostat. Currently the vm-stat command uses output from the VmCpuStatDAO and VmMemoryStatDAO, which are now contained in plugins. In order to not have core Thermostat rely on the presence of plugins, this commit introduces a VMStatPrintDelegate interface which plugins can implement to dynamically provide output to the vm-stat command. The end result is the same vm-stat output as before, but without dependencies on the vm-cpu-common and vm-memory-common bundles. In addition, other plugins can contribute columns of data to the command as well. Reviewed-by: omajid Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-January/005031.html
author Elliott Baron <ebaron@redhat.com>
date Wed, 09 Jan 2013 14:59:30 -0500
parents 0ba74f790a8a
children 0f4271d4e334
line wrap: on
line source

bundles = thermostat-client-cli-${project.version}.jar, \
          thermostat-vm-cpu-common-${project.version}.jar, \
          thermostat-vm-cpu-client-cli-${project.version}.jar, \
          thermostat-vm-memory-common-${project.version}.jar, \
          thermostat-vm-memory-client-cli-${project.version}.jar, \
          thermostat-storage-mongodb-${project.version}.jar, \
          thermostat-web-common-${project.version}.jar, \
          thermostat-web-client-${project.version}.jar, \
          httpcomponents-core.jar, \
          httpcomponents-client.jar, \
          gson.jar, \
          mongo.jar, \
          commons-beanutils.jar, \
          commons-codec.jar, \
          commons-collections.jar, \
          commons-logging.jar

description = show various statistics about a VM

usage = thermostat vm-stat --hostId <host> --vmId <vm>

options = hostId, vmId, continuous

hostId.short = a
hostId.long = hostId
hostId.hasarg = true
hostId.required = true
hostId.description = the ID of the host to monitor

vmId.short = p
vmId.long = vmId
vmId.hasarg = true
vmId.required = true
vmId.description = the ID of the VM to monitor

continuous.short = c
continuous.long = continuous
continuous.hasarg = false
continuous.required = false
continuous.description = print data continuously