Difference between revisions of "Jmx-call"

From GreenVulcano Wiki
Jump to: navigation, search
 
(6 intermediate revisions by 2 users not shown)
Line 6: Line 6:
  
 
The ''jmx-call'' Element is used by [[Channel]] and [[routed-call]]. It has the following attributes:
 
The ''jmx-call'' Element is used by [[Channel]] and [[routed-call]]. It has the following attributes:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || fixed || This attribute must assume the value '''call'''.
 +
|-
 +
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.virtual.jmx.JMXCallOperation'''.
 +
|-
 +
| name || required || Operation name. Used in the 'Flow' section to associate workflow nodes to VCL operations.
 +
|-
 +
| object-name || required || Defines an object name filter to invoke/set/get via JMX server. Can contains [[placeholders]]
 +
|}
  
* ''type'': call.
+
It subelements are:  
* ''class'': it.greenvulcano.gvesb.virtual.jmx.JMXCallOperation.
 
* ''name'': Operation name. Used in the 'Flow' section to associate workflow nodes to VCL operations.
 
* ''object-name'': Defines an object name filter to invoke/set/get via JMX server. Can contains [[placeholders]]
 
 
 
and the subelements:  
 
 
 
 
* Description,
 
* Description,
* (invoke-method | set-attribute | get-attribute)
+
* [[#invoke-method|invoke-method]] | [[#set-attribute|set-attribute]] | [[#get-attribute|get-attribute]]
  
==invoke-method==
+
===invoke-method===
  
 
This element invokes a method to the MBean. It is only used by ''jmx-call''.
 
This element invokes a method to the MBean. It is only used by ''jmx-call''.
  
 
It has the following attributes:
 
It has the following attributes:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || fixed || This attribute must assume the value '''method'''.
 +
|-
 +
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.virtual.jmx.methods.JMXInvokeOperation'''
 +
|-
 +
| method || required || MBean's method to invoke.
 +
|}
  
* ''type'': method.
+
Its subelement are:
* ''class'': it.greenvulcano.gvesb.virtual.jmx.methods.JMXInvokeOperation
+
* [[#invoke-parameter|invoke-parameter]]
* ''method'': MBean's method to invoke.
 
 
 
and the subelement:
 
 
 
* invoke-parameter
 
  
===invoke-parameter===
+
====invoke-parameter====
  
 
This element specifies an invoker method parameter. It is only used by ''invoke-method''.
 
This element specifies an invoker method parameter. It is only used by ''invoke-method''.
  
 
It has the attributes:  
 
It has the attributes:  
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || required || Parameter type. Only used for ''invoke method''. Its admitted values are:
 +
* byte
 +
* boolean
 +
* char
 +
* double
 +
* float
 +
* int
 +
* long
 +
* short
 +
* String
 +
|-
 +
| value || required || Parameter value. Can contains the following placeholders. The attribute's admitted values are:
 +
* true
 +
* false
 +
|}
  
* ''type'': Parameter type. Only used for ''invoke method''. Its admitted values are:
+
===set-attribute===
** byte
 
** boolean
 
** char
 
** double
 
** float
 
** int
 
** long
 
** short
 
** String
 
* ''value'': Parameter value. Can contains the following placeholders. The attribute's admitted values are:
 
** true
 
** false
 
 
 
==set-attribute==
 
  
 
Sets a MBean's attribute value. It is used only by ''jmx-call''.
 
Sets a MBean's attribute value. It is used only by ''jmx-call''.
  
 
It has the following attributes:
 
It has the following attributes:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || fixed || This elements must assume the value '''method'''.
 +
|-
 +
| class || fixed || This elements must assume the value '''it.greenvulcano.gvesb.virtual.jmx.methods.JMXSetOperation'''.
 +
|-
 +
| name || required || Attribute name of the MBean.
 +
|-
 +
| value || required || Attribute value of the MBean to set. Can contain [[placeholders]].
 +
|-
 +
| value-type || required || Parameter type. Only used for invoke method. The attribute's admitted values are:
 +
* byte
 +
* boolean
 +
* char
 +
* double
 +
* float
 +
* int
 +
* long
 +
* short
 +
* String
 +
|}
 +
 +
===get-attribute===
  
* ''type'': method.
+
Gets a MBean's attribute value. It is used only by ''jmx-call''. It has the following attributes:
* ''class'': it.greenvulcano.gvesb.virtual.jmx.methods.JMXSetOperation.
+
{|class="gvtable"
* ''name'': Attribute name of the MBean.
+
! Attribute !! Type !! Description
* ''value'': Attribute value of the MBean to set. Can contains [[placeholders]]
+
|-
* ''value-type'': Parameter type. Only used for invoke method. The attribute's admitted values are:
+
| type || fixed || This attribute must assume the value '''method'''.
** byte
+
|-
** boolean
+
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.virtual.jmx.methods.JMXGetOperation'''.
** char
+
|-
** double
+
| attribute || required || Attribute of the MBean to get the value.
** float
+
|}
** int
 
** long
 
** short
 
** String
 

Latest revision as of 16:53, 16 February 2012

Description

jmx-call is the JMX VCL plugin to invoke MBean methods or set/get attributes on local servers.

VulCon / GV Console Configuration

The jmx-call Element is used by Channel and routed-call. It has the following attributes:

Attribute Type Description
type fixed This attribute must assume the value call.
class fixed This attribute must assume the value it.greenvulcano.gvesb.virtual.jmx.JMXCallOperation.
name required Operation name. Used in the 'Flow' section to associate workflow nodes to VCL operations.
object-name required Defines an object name filter to invoke/set/get via JMX server. Can contains placeholders

It subelements are:

invoke-method

This element invokes a method to the MBean. It is only used by jmx-call.

It has the following attributes:

Attribute Type Description
type fixed This attribute must assume the value method.
class fixed This attribute must assume the value it.greenvulcano.gvesb.virtual.jmx.methods.JMXInvokeOperation
method required MBean's method to invoke.

Its subelement are:

invoke-parameter

This element specifies an invoker method parameter. It is only used by invoke-method.

It has the attributes:

Attribute Type Description
type required Parameter type. Only used for invoke method. Its admitted values are:
  • byte
  • boolean
  • char
  • double
  • float
  • int
  • long
  • short
  • String
value required Parameter value. Can contains the following placeholders. The attribute's admitted values are:
  • true
  • false

set-attribute

Sets a MBean's attribute value. It is used only by jmx-call.

It has the following attributes:

Attribute Type Description
type fixed This elements must assume the value method.
class fixed This elements must assume the value it.greenvulcano.gvesb.virtual.jmx.methods.JMXSetOperation.
name required Attribute name of the MBean.
value required Attribute value of the MBean to set. Can contain placeholders.
value-type required Parameter type. Only used for invoke method. The attribute's admitted values are:
  • byte
  • boolean
  • char
  • double
  • float
  • int
  • long
  • short
  • String

get-attribute

Gets a MBean's attribute value. It is used only by jmx-call. It has the following attributes:

Attribute Type Description
type fixed This attribute must assume the value method.
class fixed This attribute must assume the value it.greenvulcano.gvesb.virtual.jmx.methods.JMXGetOperation.
attribute required Attribute of the MBean to get the value.