org.ow2.jasmine.probe
Interface JasmineProbeManager

All Superinterfaces:
JProbeManagerMXBean

public interface JasmineProbeManager
extends JProbeManagerMXBean

Interface for JASMINe Probe Manager. Most of operations are inherited as part of the MXBean interface.

Author:
durieuxp

Method Summary
 void addProbeListener(JasmineProbeListener listener)
          Register a ProbeListener in order to be notified by probe state changes.
 void changeIndicator(JasmineIndicator indic)
          Change an indicator.
 void changeOutput(JasmineOutput output)
          Change an output.
 void changeProbe(JasmineProbe probe)
          Change a Probe with new parameters
 void changeTarget(JasmineTarget target)
          Change a target.
 java.util.Collection<JasminePropertyInfo> getIndicatorPropertyInfos(java.lang.String type)
          get the list of possible properties for Indicator, depending of its type.
 java.util.Collection<JasmineIndicator> getIndicators()
          get the list of all defined indicators.
 java.util.Collection<JasminePropertyInfo> getOutputPropertyInfos(java.lang.String type)
          get the list of possible properties for Output, depending of its type.
 java.util.Collection<JasmineOutput> getOutputs()
          get the list of all defined outputs.
 java.util.Collection<JasmineProbe> getProbes()
           
 java.util.Collection<JasmineTarget> getTargets()
          get the list of all defined targets.
 
Methods inherited from interface org.ow2.jasmine.probe.JProbeManagerMXBean
createIndicator, createOutput, createProbe, createTarget, getIndicator, getIndicatorTypes, getOutput, getOutputTypes, getProbe, getTarget, listIndicators, listOutputs, listProbes, listTargets, loadConfig, removeAllProbes, removeIndicator, removeOutput, removeProbe, removeTarget, saveConfig, startAllProbes, startProbe, stopAllProbes, stopProbe
 

Method Detail

changeProbe

void changeProbe(JasmineProbe probe)
                 throws JasmineProbeException
Change a Probe with new parameters

Parameters:
probe - probe description
Throws:
JasmineProbeException

getProbes

java.util.Collection<JasmineProbe> getProbes()
Returns:
all the probe definitions

changeOutput

void changeOutput(JasmineOutput output)
                  throws JasmineProbeException
Change an output. The output must exist, otherwise an exception is thrown. The output must not be used by a probe, otherwise an exception is thrown.

Parameters:
output - output description
Throws:
JasmineProbeException - is thrown if the output does not exist, or if it is used by a running probe.

getOutputs

java.util.Collection<JasmineOutput> getOutputs()
get the list of all defined outputs.

Returns:
List of the outputs

getOutputPropertyInfos

java.util.Collection<JasminePropertyInfo> getOutputPropertyInfos(java.lang.String type)
get the list of possible properties for Output, depending of its type.

Parameters:
type - type of the Output (console, file, ...)
Returns:
Collection of JasminePropertyInfo

changeIndicator

void changeIndicator(JasmineIndicator indic)
                     throws JasmineProbeException
Change an indicator. It must exist, otherwise an exception is thrown. The indicator must not be used by a probe, otherwise an exception is thrown.

Parameters:
indic - indicator description
Throws:
JasmineProbeException - is thrown if the indicator does not exist, or if it is used by a running probe.

getIndicators

java.util.Collection<JasmineIndicator> getIndicators()
get the list of all defined indicators.

Returns:
List of the indicators

getIndicatorPropertyInfos

java.util.Collection<JasminePropertyInfo> getIndicatorPropertyInfos(java.lang.String type)
get the list of possible properties for Indicator, depending of its type.

Parameters:
type - type of the Indicator (Jmx, Lewys, ...)
Returns:
Collection of JasminePropertyInfo

changeTarget

void changeTarget(JasmineTarget target)
                  throws JasmineProbeException
Change a target. It must exist, otherwise an exception is thrown.

Parameters:
target - new target description
Throws:
JasmineProbeException - is thrown if the target does not exist.

getTargets

java.util.Collection<JasmineTarget> getTargets()
get the list of all defined targets.

Returns:
List of the targets

addProbeListener

void addProbeListener(JasmineProbeListener listener)
Register a ProbeListener in order to be notified by probe state changes. Maybe other events will be considered...

Parameters:
listener - object that treats the probe state change


Copyright © 2011 OW2 Consortium. All Rights Reserved.