org.ow2.jasmine.monitoring.eos.probemanager.service
Class ProbeManagerService

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eos.probemanager.service.ProbeManagerService
All Implemented Interfaces:
org.ow2.kerneos.core.service.KerneosSimpleService

public class ProbeManagerService
extends Object
implements org.ow2.kerneos.core.service.KerneosSimpleService

Server part of the ProbeManager EoS module. Works with a JasmineProbeManager that can be either mbeancmd-osgi or JasmineProbe

Author:
durieuxp

Field Summary
protected  JasmineListener jasmineListener
           
protected  org.ow2.jasmine.probe.jmx.JmxBrowserService jmxBrowserService
           
protected static org.ow2.util.log.Log logger
           
protected  org.ow2.jasmine.probe.JasmineProbeManager probeService
           
protected  ProbeTopicProducer producer
           
 
Fields inherited from interface org.ow2.kerneos.core.service.KerneosSimpleService
ID
 
Method Summary
 void changeProbePeriod(String ident, int period)
          Change value of probe period, without stopping the probe if it is running.
 ArrayList<Probe> copyProbe(Probe probe)
          copy a Probe
 ArrayList<ProbeIndicator> getIndicators()
          Retrieve list of indicators defined on this server
 ArrayList<org.ow2.jasmine.probe.JasmineCollectorInfo> getIndicatorTypes()
          Get the list of possible types for an Indicator
 ArrayList<String> getMBeans(String filter, ProbeTarget target)
           
 List<org.ow2.jasmine.probe.JasminePropertyInfo> getOutputPropertyInfos(String type)
          Get the list of possible properties for an output type
 ArrayList<ProbeOutput> getOutputs()
          Retrieve list of outputs defined on this server
 ArrayList<String> getOutputTypes()
          Get the list of possible types for an Output
 ArrayList<Probe> getProbes()
          Retrieve list of probes defined on this server
 List<org.ow2.jasmine.probe.JasminePropertyInfo> getTargetPropertyInfos(String type)
          Get the list of possible properties for a target type
 ArrayList<ProbeTarget> getTargets()
          Retrieve list of targets defined on this server
 ArrayList<String> getTargetTypes()
          Get the list of possible types for a Target
 ArrayList<Probe> loadConf(String url)
           
 ArrayList<ProbeIndicator> modifyIndicator(ProbeIndicator indicator)
          modify an indicator
 ArrayList<ProbeOutput> modifyOutput(ProbeOutput output)
          modify an Output
 ArrayList<Probe> modifyProbe(Probe probe)
          modify a probe
 ArrayList<ProbeTarget> modifyTarget(ProbeTarget target)
          modify a Target
 ArrayList<ProbeIndicator> newIndicator(ProbeIndicator indicator)
          Create a new indicator
 ArrayList<ProbeOutput> newOutput(ProbeOutput output)
          Create a new output
 ArrayList<Probe> newProbe(Probe probe)
          Create a new probe
 ArrayList<ProbeTarget> newTarget(ProbeTarget target)
          Create a new target
 ArrayList<Probe> removeAllProbes()
           
 ArrayList<ProbeIndicator> removeIndicator(String name)
          Remove an indicator
 ArrayList<ProbeOutput> removeOutput(String name)
          Remove an output
 ArrayList<Probe> removeProbe(String ident)
          remove a Probe
 ArrayList<ProbeTarget> removeTarget(String name)
          Remove a target
 void saveConfig()
          Save configuration in xml
 void startAllProbes()
          start all Probes
 void startListen(String probeId)
          Start listening probe results
 void startProbe(String ident)
          start a Probe
 void stopAllProbes()
          stop all started Probes
 void stopListen(String probeId)
          Stop listening probe results
 void stopProbe(String ident)
          stop a Probe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.ow2.util.log.Log logger

jasmineListener

protected JasmineListener jasmineListener

producer

protected ProbeTopicProducer producer

probeService

protected org.ow2.jasmine.probe.JasmineProbeManager probeService

jmxBrowserService

protected org.ow2.jasmine.probe.jmx.JmxBrowserService jmxBrowserService
Method Detail

getTargets

public ArrayList<ProbeTarget> getTargets()
                                  throws ProbeManagerException
Retrieve list of targets defined on this server

Returns:
Array of targets
Throws:
ProbeManagerException

newTarget

public ArrayList<ProbeTarget> newTarget(ProbeTarget target)
                                 throws ProbeManagerException
Create a new target

Returns:
Array of targets
Throws:
ProbeManagerException

removeTarget

public ArrayList<ProbeTarget> removeTarget(String name)
                                    throws ProbeManagerException
Remove a target

Returns:
Array of targets
Throws:
ProbeManagerException

modifyTarget

public ArrayList<ProbeTarget> modifyTarget(ProbeTarget target)
                                    throws ProbeManagerException
modify a Target

Parameters:
target - value object
Returns:
new Array of targets defined
Throws:
ProbeManagerException

getTargetTypes

public ArrayList<String> getTargetTypes()
                                 throws ProbeManagerException
Get the list of possible types for a Target

Returns:
List of types
Throws:
ProbeManagerException

getTargetPropertyInfos

public List<org.ow2.jasmine.probe.JasminePropertyInfo> getTargetPropertyInfos(String type)
                                                                       throws ProbeManagerException
Get the list of possible properties for a target type

Parameters:
type -
Returns:
List of PropertyInfo
Throws:
ProbeManagerException

getIndicators

public ArrayList<ProbeIndicator> getIndicators()
                                        throws ProbeManagerException
Retrieve list of indicators defined on this server

Returns:
Array of indicators
Throws:
ProbeManagerException

newIndicator

public ArrayList<ProbeIndicator> newIndicator(ProbeIndicator indicator)
                                       throws ProbeManagerException
Create a new indicator

Returns:
Array of indicators
Throws:
ProbeManagerException

removeIndicator

public ArrayList<ProbeIndicator> removeIndicator(String name)
                                          throws ProbeManagerException
Remove an indicator

Returns:
Array of indicators
Throws:
ProbeManagerException

modifyIndicator

public ArrayList<ProbeIndicator> modifyIndicator(ProbeIndicator indicator)
                                          throws ProbeManagerException
modify an indicator

Parameters:
indicator - value object
Returns:
new Array of indicators defined
Throws:
ProbeManagerException

getIndicatorTypes

public ArrayList<org.ow2.jasmine.probe.JasmineCollectorInfo> getIndicatorTypes()
                                                                        throws ProbeManagerException
Get the list of possible types for an Indicator

Returns:
List of JasmineCollectorInfo
Throws:
ProbeManagerException

getOutputs

public ArrayList<ProbeOutput> getOutputs()
                                  throws ProbeManagerException
Retrieve list of outputs defined on this server

Returns:
Array of outputs
Throws:
ProbeManagerException

newOutput

public ArrayList<ProbeOutput> newOutput(ProbeOutput output)
                                 throws ProbeManagerException
Create a new output

Returns:
Array of outputs
Throws:
ProbeManagerException

removeOutput

public ArrayList<ProbeOutput> removeOutput(String name)
                                    throws ProbeManagerException
Remove an output

Returns:
Array of outputs
Throws:
ProbeManagerException

modifyOutput

public ArrayList<ProbeOutput> modifyOutput(ProbeOutput output)
                                    throws ProbeManagerException
modify an Output

Parameters:
output - value object
Returns:
new Array of outputs defined
Throws:
ProbeManagerException

getOutputTypes

public ArrayList<String> getOutputTypes()
                                 throws ProbeManagerException
Get the list of possible types for an Output

Returns:
List of types
Throws:
ProbeManagerException

getOutputPropertyInfos

public List<org.ow2.jasmine.probe.JasminePropertyInfo> getOutputPropertyInfos(String type)
                                                                       throws ProbeManagerException
Get the list of possible properties for an output type

Parameters:
type -
Returns:
List of PropertyInfo
Throws:
ProbeManagerException

newProbe

public ArrayList<Probe> newProbe(Probe probe)
                          throws ProbeManagerException
Create a new probe

Returns:
Array of probes
Throws:
ProbeManagerException

getProbes

public ArrayList<Probe> getProbes()
                           throws ProbeManagerException
Retrieve list of probes defined on this server

Returns:
Array of probes defined
Throws:
ProbeManagerException

removeProbe

public ArrayList<Probe> removeProbe(String ident)
                             throws ProbeManagerException
remove a Probe

Parameters:
ident - Probe Ident
Returns:
new Array of probes defined
Throws:
ProbeManagerException

startProbe

public void startProbe(String ident)
                throws ProbeManagerException
start a Probe

Parameters:
ident - Probe Ident
Throws:
ProbeManagerException

startAllProbes

public void startAllProbes()
                    throws ProbeManagerException
start all Probes

Throws:
ProbeManagerException

stopProbe

public void stopProbe(String ident)
               throws ProbeManagerException
stop a Probe

Parameters:
ident - Probe Ident
Throws:
ProbeManagerException

stopAllProbes

public void stopAllProbes()
                   throws ProbeManagerException
stop all started Probes

Throws:
ProbeManagerException

removeAllProbes

public ArrayList<Probe> removeAllProbes()
                                 throws ProbeManagerException
Throws:
ProbeManagerException

modifyProbe

public ArrayList<Probe> modifyProbe(Probe probe)
                             throws ProbeManagerException
modify a probe

Parameters:
probe - value object
Returns:
new Array of probes defined
Throws:
ProbeManagerException

changeProbePeriod

public void changeProbePeriod(String ident,
                              int period)
                       throws ProbeManagerException
Change value of probe period, without stopping the probe if it is running.

Parameters:
ident - Probe Ident
period -
Throws:
ProbeManagerException

copyProbe

public ArrayList<Probe> copyProbe(Probe probe)
                           throws ProbeManagerException
copy a Probe

Parameters:
probe - Probe to be duplicated
Returns:
new Array of probes defined
Throws:
ProbeManagerException

saveConfig

public void saveConfig()
                throws ProbeManagerException
Save configuration in xml

Throws:
ProbeManagerException

startListen

public void startListen(String probeId)
                 throws ProbeManagerException
Start listening probe results

Throws:
ProbeManagerException

stopListen

public void stopListen(String probeId)
                throws ProbeManagerException
Stop listening probe results

Throws:
ProbeManagerException

loadConf

public ArrayList<Probe> loadConf(String url)
                          throws ProbeManagerException
Throws:
ProbeManagerException

getMBeans

public ArrayList<String> getMBeans(String filter,
                                   ProbeTarget target)
                            throws ProbeManagerException
Throws:
ProbeManagerException


Copyright © 2013 OW2 Consortium. All Rights Reserved.