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:
java.io.Serializable

public class ProbeManagerService
extends java.lang.Object
implements java.io.Serializable

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

Author:
durieuxp
See Also:
Serialized Form

Field Summary
protected  JasmineListener jasmineListener
           
protected  org.ow2.util.log.Log logger
           
protected  org.ow2.jasmine.monitoring.mbeancmd.api.JasmineProbeManager probeService
           
protected  ProbeTopicProducer producer
           
protected  boolean usembc
          true if JasmineProbeManager is the old mbeancmd-osgi module.
 
Constructor Summary
ProbeManagerService()
           
 
Method Summary
 java.util.ArrayList<Probe> copyProbe(Probe probe)
          copy a Probe
 java.util.ArrayList<java.lang.String> getMBeans(java.lang.String filter, ProbeTarget target)
           
 java.util.ArrayList<ProbeOutput> getOutputs()
          Retrieve list of outputs defined on this server
 java.util.ArrayList<Probe> getProbes()
          Retrieve list of probes defined on this server
 java.util.ArrayList<ProbeTarget> getTargets()
          Retrieve list of targets defined on this server
 java.util.ArrayList<Probe> loadConf(java.lang.String url)
           
 java.util.ArrayList<ProbeOutput> modifyOutput(ProbeOutput output)
          modify an Output
 java.util.ArrayList<Probe> modifyProbe(Probe probe)
          modify a probe
 java.util.ArrayList<ProbeTarget> modifyTarget(ProbeTarget target)
          modify a Target
 java.util.ArrayList<ProbeOutput> newOutput(ProbeOutput output)
          Create a new output
 java.util.ArrayList<Probe> newProbe(Probe probe)
          Create a new probe
 java.util.ArrayList<ProbeTarget> newTarget(ProbeTarget target)
          Create a new target
 java.util.ArrayList<Probe> removeAllProbes()
           
 java.util.ArrayList<ProbeOutput> removeOutput(java.lang.String name)
          Remove an output
 java.util.ArrayList<Probe> removeProbe(int ident)
          remove a Probe
 java.util.ArrayList<ProbeTarget> removeTarget(java.lang.String name)
          Remove a target
 void saveConfig()
          Save configuration in xml
 void startAllProbes()
          start all Probes
 void startListen(int cmdId)
          Start listening probe results
 void startProbe(int ident)
          start a Probe
 void stopAllProbes()
          stop all started Probes
 void stopListen(int cmdId)
          Stop listening probe results
 void stopProbe(int 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 org.ow2.util.log.Log logger

jasmineListener

protected JasmineListener jasmineListener

producer

protected ProbeTopicProducer producer

usembc

protected boolean usembc
true if JasmineProbeManager is the old mbeancmd-osgi module. false if JasmineProbeManager is the new JasmineProbe module.


probeService

protected org.ow2.jasmine.monitoring.mbeancmd.api.JasmineProbeManager probeService
Constructor Detail

ProbeManagerService

public ProbeManagerService()
Method Detail

getTargets

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

Returns:
Array of targets
Throws:
ProbeManagerException

newTarget

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

Returns:
Array of targets
Throws:
ProbeManagerException

removeTarget

public java.util.ArrayList<ProbeTarget> removeTarget(java.lang.String name)
                                              throws ProbeManagerException
Remove a target

Returns:
Array of targets
Throws:
ProbeManagerException

modifyTarget

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

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

getOutputs

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

Returns:
Array of outputs
Throws:
ProbeManagerException

newOutput

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

Returns:
Array of outputs
Throws:
ProbeManagerException

removeOutput

public java.util.ArrayList<ProbeOutput> removeOutput(java.lang.String name)
                                              throws ProbeManagerException
Remove an output

Returns:
Array of outputs
Throws:
ProbeManagerException

modifyOutput

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

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

newProbe

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

Returns:
Array of probes
Throws:
ProbeManagerException

getProbes

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

Returns:
Array of probes defined
Throws:
ProbeManagerException

removeProbe

public java.util.ArrayList<Probe> removeProbe(int ident)
                                       throws ProbeManagerException
remove a Probe

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

startProbe

public void startProbe(int 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(int 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 java.util.ArrayList<Probe> removeAllProbes()
                                           throws ProbeManagerException
Throws:
ProbeManagerException

modifyProbe

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

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

copyProbe

public java.util.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(int cmdId)
                 throws ProbeManagerException
Start listening probe results

Throws:
ProbeManagerException

stopListen

public void stopListen(int cmdId)
                throws ProbeManagerException
Stop listening probe results

Throws:
ProbeManagerException

loadConf

public java.util.ArrayList<Probe> loadConf(java.lang.String url)
                                    throws ProbeManagerException
Throws:
ProbeManagerException

getMBeans

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


Copyright © 2011 OW2 Consortium. All Rights Reserved.