org.ow2.jasmine.probe.collectors.jmx.internal
Class JmxCollectorService

java.lang.Object
  extended by org.ow2.jasmine.probe.collectors.JCollectorService
      extended by org.ow2.jasmine.probe.collectors.jmx.internal.JmxCollectorService
All Implemented Interfaces:
JasmineCollectorService, JmxBrowserService

public class JmxCollectorService
extends JCollectorService
implements JmxBrowserService

This Collector Service creates Jmx Collectors.

Author:
durieuxp

Field Summary
static String DEFAULT_DOMAIN
           
static String DEFAULT_SERVER
           
static String LONG_DESC
           
static String META_DOMAIN
           
static String META_MBEAN
           
static String META_SERVER
          Metadata keys put in values collected
static String META_URL
           
static String PROP_ATTR
           
static String PROP_ATTR_DESC
           
static String PROP_MBEAN
           
static String PROP_MBEAN_DESC
           
static String PROP_TARGET
          Properties
static String PROP_TARGET_DESC
           
static String SHORT_DESC
          Description
static String SOURCE_DESC
          Sources
static int SOURCE_MAX
           
static int SOURCE_MIN
           
static String VALUE_ALL
          The value of the PROP_ATTR property meaning that all the attributes are to be fetched.
 
Fields inherited from class org.ow2.jasmine.probe.collectors.JCollectorService
collectorInfo, logger, properties
 
Constructor Summary
JmxCollectorService()
           
 
Method Summary
 JasmineCollector getCollector(JasmineIndicator indicator, JasmineProbe probe)
          Create a Collector for a given JasmineIndicator used by a JasmineProbe.
 void start()
           
 void stop()
           
 
Methods inherited from class org.ow2.jasmine.probe.collectors.JCollectorService
addCollector, getCollectorInfo, getDependantIndicators, getPropertiesInfo, getType, removeCollectors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHORT_DESC

public static final String SHORT_DESC
Description

See Also:
Constant Field Values

LONG_DESC

public static final String LONG_DESC
See Also:
Constant Field Values

SOURCE_DESC

public static final String SOURCE_DESC
Sources

See Also:
Constant Field Values

SOURCE_MIN

public static final int SOURCE_MIN
See Also:
Constant Field Values

SOURCE_MAX

public static final int SOURCE_MAX
See Also:
Constant Field Values

PROP_TARGET

public static final String PROP_TARGET
Properties

See Also:
Constant Field Values

PROP_TARGET_DESC

public static final String PROP_TARGET_DESC
See Also:
Constant Field Values

PROP_MBEAN

public static final String PROP_MBEAN
See Also:
Constant Field Values

PROP_MBEAN_DESC

public static final String PROP_MBEAN_DESC
See Also:
Constant Field Values

PROP_ATTR

public static final String PROP_ATTR
See Also:
Constant Field Values

PROP_ATTR_DESC

public static final String PROP_ATTR_DESC
See Also:
Constant Field Values

META_SERVER

public static final String META_SERVER
Metadata keys put in values collected

See Also:
Constant Field Values

META_DOMAIN

public static final String META_DOMAIN
See Also:
Constant Field Values

META_URL

public static final String META_URL
See Also:
Constant Field Values

META_MBEAN

public static final String META_MBEAN
See Also:
Constant Field Values

DEFAULT_SERVER

public static final String DEFAULT_SERVER
See Also:
Constant Field Values

DEFAULT_DOMAIN

public static final String DEFAULT_DOMAIN
See Also:
Constant Field Values

VALUE_ALL

public static final String VALUE_ALL
The value of the PROP_ATTR property meaning that all the attributes are to be fetched.

See Also:
Constant Field Values
Constructor Detail

JmxCollectorService

public JmxCollectorService()
Method Detail

start

public void start()

stop

public void stop()

getCollector

public JasmineCollector getCollector(JasmineIndicator indicator,
                                     JasmineProbe probe)
                              throws JasmineCollectorException
Create a Collector for a given JasmineIndicator used by a JasmineProbe. If a collector is already registered in the collectorList using a key equal to indicatorName + probeName, it will be simply returned. Moreover, if the JasmineProbe specifies a target that is different from the one of the current worker, change the worker to the one on the specified target.

Specified by:
getCollector in interface JasmineCollectorService
Specified by:
getCollector in class JCollectorService
Parameters:
indicator - a JasmineIndicator
probe - a JasmineProbe
Returns:
the Collector corresponding to the given indicator and probe
Throws:
JasmineCollectorException - operation failed


Copyright © 2012 OW2 Consortium. All Rights Reserved.