|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.probe.manager.internal.JProbeManager
public class JProbeManager
Implements the main service of the JasmineProbe module exposing the JasmineProbeManager interface to the JasmineProbe module's clients.
| Field Summary | |
|---|---|
protected org.ow2.jasmine.probe.probescheduler.SchedulerService |
jasmineProbeScheduler
|
protected org.ow2.jonas.jmx.JmxService |
jmxService
|
protected static org.ow2.util.log.Log |
logger
|
| Constructor Summary | |
|---|---|
JProbeManager()
|
|
| Method Summary | |
|---|---|
void |
addProbeListener(org.ow2.jasmine.probe.JasmineProbeListener listener)
Register a ProbeListener in order to be notified by probe state changes. |
protected void |
bindAggregateService(org.ow2.jasmine.probe.collector.JasmineAggregateService jas,
org.osgi.framework.ServiceReference sr)
|
protected void |
bindCollectorService(org.ow2.jasmine.probe.collector.JasmineCollectorService jcs,
org.osgi.framework.ServiceReference sr)
|
protected void |
bindOuterService(org.ow2.jasmine.probe.outer.JasmineOuterService jos,
org.osgi.framework.ServiceReference sr)
|
void |
changeIndicator(org.ow2.jasmine.probe.JasmineIndicator indic)
Change an indicator. |
void |
changeOutput(org.ow2.jasmine.probe.JasmineOutput output)
Change an output. |
void |
changeProbe(org.ow2.jasmine.probe.JasmineProbe probe)
Change a Probe with new parameters |
void |
changeTarget(org.ow2.jasmine.probe.JasmineTarget newtarget)
Change a target. |
java.lang.String |
createIndicator(org.ow2.jasmine.probe.JasmineIndicator newindic)
Create a new Indicator |
java.lang.String |
createOutput(org.ow2.jasmine.probe.JasmineOutput newoutput)
Register a new Output in the ProbeManager A name is associated to the Output definition. |
java.lang.String |
createProbe(org.ow2.jasmine.probe.JasmineProbe probe)
Create a new probe defined by its data |
java.lang.String |
createTarget(org.ow2.jasmine.probe.JasmineTarget newtarget)
Create a new target |
org.ow2.jasmine.probe.collector.JasmineAggregateService |
getAggregate(java.lang.String key)
Return the AggregateService for a given aggregate function |
java.util.List<java.lang.String> |
getAggregateFuntions()
|
org.ow2.jasmine.probe.collector.JasmineCollector |
getCollector(java.lang.String indicatorName,
int period,
java.lang.String probeid)
Get a Collector by its Indicator name |
org.ow2.jasmine.probe.JasmineIndicator |
getIndicator(java.lang.String id)
Get an Indicator by its name |
java.util.Collection<org.ow2.jasmine.probe.JasminePropertyInfo> |
getIndicatorPropertyInfos(java.lang.String type)
get the list of possible properties for Indicator, depending of its type. |
java.util.Collection<org.ow2.jasmine.probe.JasmineIndicator> |
getIndicators()
get the list of all defined indicators. |
java.util.Set<java.lang.String> |
getIndicatorTypes()
|
org.ow2.jasmine.probe.JasmineOutput |
getOutput(java.lang.String id)
Get an Output by its name |
java.util.Collection<org.ow2.jasmine.probe.JasminePropertyInfo> |
getOutputPropertyInfos(java.lang.String type)
get the list of possible properties for Output, depending of its type. |
java.util.Collection<org.ow2.jasmine.probe.JasmineOutput> |
getOutputs()
get the list of all defined outputs. |
java.util.Set<java.lang.String> |
getOutputTypes()
|
org.ow2.jasmine.probe.JasmineProbe |
getProbe(java.lang.String probeId)
Get a Probe by its name |
java.util.Collection<org.ow2.jasmine.probe.JasmineProbe> |
getProbes()
|
org.ow2.jasmine.probe.JasmineTarget |
getTarget(java.lang.String name)
Get a JasmineTarget by its name |
java.util.Collection<org.ow2.jasmine.probe.JasmineTarget> |
getTargets()
get the list of all defined targets. |
java.lang.String[] |
listIndicators()
|
java.lang.String[] |
listOutputs()
|
java.lang.String[] |
listProbes()
|
java.lang.String[] |
listTargets()
|
void |
loadConfig(java.lang.String path)
Load the specified xml configuration file The configuration will be merged with the current one. |
void |
removeAllProbes()
Remove all the managed probes. |
void |
removeIndicator(java.lang.String name)
remove an indicator |
void |
removeOutput(java.lang.String name)
remove an output. |
void |
removeProbe(java.lang.String probeId)
Remove a probe. |
void |
removeTarget(java.lang.String name)
remove a target |
void |
saveConfig(java.lang.String path)
Save the current configuration in the specified xml file |
void |
start()
|
void |
startAllProbes()
Start all the managed probes. |
void |
startProbe(java.lang.String probeId)
Start a probe. |
void |
stop()
|
void |
stopAllProbes()
Stop all the managed probes. |
void |
stopProbe(java.lang.String probeId)
Stop a probe. |
protected void |
unbindAggregateService(org.ow2.jasmine.probe.collector.JasmineAggregateService jas,
org.osgi.framework.ServiceReference sr)
|
protected void |
unbindCollectorService(org.ow2.jasmine.probe.collector.JasmineCollectorService jcs,
org.osgi.framework.ServiceReference sr)
|
protected void |
unbindOuterService(org.ow2.jasmine.probe.outer.JasmineOuterService jos,
org.osgi.framework.ServiceReference sr)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.ow2.util.log.Log logger
protected org.ow2.jasmine.probe.probescheduler.SchedulerService jasmineProbeScheduler
protected org.ow2.jonas.jmx.JmxService jmxService
| Constructor Detail |
|---|
public JProbeManager()
| Method Detail |
|---|
public void start()
public void stop()
protected void bindOuterService(org.ow2.jasmine.probe.outer.JasmineOuterService jos,
org.osgi.framework.ServiceReference sr)
protected void unbindOuterService(org.ow2.jasmine.probe.outer.JasmineOuterService jos,
org.osgi.framework.ServiceReference sr)
protected void bindCollectorService(org.ow2.jasmine.probe.collector.JasmineCollectorService jcs,
org.osgi.framework.ServiceReference sr)
protected void unbindCollectorService(org.ow2.jasmine.probe.collector.JasmineCollectorService jcs,
org.osgi.framework.ServiceReference sr)
protected void bindAggregateService(org.ow2.jasmine.probe.collector.JasmineAggregateService jas,
org.osgi.framework.ServiceReference sr)
protected void unbindAggregateService(org.ow2.jasmine.probe.collector.JasmineAggregateService jas,
org.osgi.framework.ServiceReference sr)
public java.lang.String createProbe(org.ow2.jasmine.probe.JasmineProbe probe)
throws org.ow2.jasmine.probe.JasmineProbeException
createProbe in interface org.ow2.jasmine.probe.JProbeManagerMXBeanprobe - probe description
org.ow2.jasmine.probe.JasmineProbeException
public void changeProbe(org.ow2.jasmine.probe.JasmineProbe probe)
throws org.ow2.jasmine.probe.JasmineProbeException
changeProbe in interface org.ow2.jasmine.probe.JasmineProbeManagerprobe - probe description
org.ow2.jasmine.probe.JasmineProbeException
public void removeProbe(java.lang.String probeId)
throws org.ow2.jasmine.probe.JasmineProbeException
removeProbe in interface org.ow2.jasmine.probe.JProbeManagerMXBeanprobeId - probe identifier.
org.ow2.jasmine.probe.JasmineProbeException
public void removeAllProbes()
throws org.ow2.jasmine.probe.JasmineProbeException
removeAllProbes in interface org.ow2.jasmine.probe.JProbeManagerMXBeanorg.ow2.jasmine.probe.JasmineProbeExceptionpublic java.util.Collection<org.ow2.jasmine.probe.JasmineProbe> getProbes()
getProbes in interface org.ow2.jasmine.probe.JasmineProbeManagerpublic java.lang.String[] listProbes()
listProbes in interface org.ow2.jasmine.probe.JProbeManagerMXBean
public org.ow2.jasmine.probe.JasmineProbe getProbe(java.lang.String probeId)
throws org.ow2.jasmine.probe.JasmineProbeException
getProbe in interface org.ow2.jasmine.probe.JProbeManagerMXBeanprobeId - probe identifier.
org.ow2.jasmine.probe.JasmineProbeException
public void startProbe(java.lang.String probeId)
throws org.ow2.jasmine.probe.JasmineProbeException
startProbe in interface org.ow2.jasmine.probe.JProbeManagerMXBeanprobeId - probe identifier.
org.ow2.jasmine.probe.JasmineProbeException - the probe could not be started.
public void stopProbe(java.lang.String probeId)
throws org.ow2.jasmine.probe.JasmineProbeException
stopProbe in interface org.ow2.jasmine.probe.JProbeManagerMXBeanprobeId - probe identifier.
org.ow2.jasmine.probe.JasmineProbeException - the probe could not be stopped.
public void startAllProbes()
throws org.ow2.jasmine.probe.JasmineProbeException
startAllProbes in interface org.ow2.jasmine.probe.JProbeManagerMXBeanorg.ow2.jasmine.probe.JasmineProbeException
public void stopAllProbes()
throws org.ow2.jasmine.probe.JasmineProbeException
stopAllProbes in interface org.ow2.jasmine.probe.JProbeManagerMXBeanorg.ow2.jasmine.probe.JasmineProbeException
public java.lang.String createOutput(org.ow2.jasmine.probe.JasmineOutput newoutput)
throws org.ow2.jasmine.probe.JasmineProbeException
createOutput in interface org.ow2.jasmine.probe.JProbeManagerMXBeannewoutput - output description
org.ow2.jasmine.probe.JasmineProbeException
public void changeOutput(org.ow2.jasmine.probe.JasmineOutput output)
throws org.ow2.jasmine.probe.JasmineProbeException
changeOutput in interface org.ow2.jasmine.probe.JasmineProbeManageroutput - output description
org.ow2.jasmine.probe.JasmineProbeException - is thrown if the output does not exist,
or if it is used by a running probe.
public void removeOutput(java.lang.String name)
throws org.ow2.jasmine.probe.JasmineProbeException
removeOutput in interface org.ow2.jasmine.probe.JProbeManagerMXBeanname - ident of the output to remove
org.ow2.jasmine.probe.JasmineProbeException - is thrown if the output does not exist,
or if it is used by a running probe.public java.lang.String[] listOutputs()
listOutputs in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic java.util.Collection<org.ow2.jasmine.probe.JasmineOutput> getOutputs()
getOutputs in interface org.ow2.jasmine.probe.JasmineProbeManager
public org.ow2.jasmine.probe.JasmineOutput getOutput(java.lang.String id)
throws org.ow2.jasmine.probe.JasmineProbeException
getOutput in interface org.ow2.jasmine.probe.JProbeManagerMXBeanid - output identifier.
org.ow2.jasmine.probe.JasmineProbeExceptionpublic java.util.Collection<org.ow2.jasmine.probe.JasminePropertyInfo> getOutputPropertyInfos(java.lang.String type)
getOutputPropertyInfos in interface org.ow2.jasmine.probe.JasmineProbeManagertype - type of the Output (console, file, ...)
public java.util.Set<java.lang.String> getOutputTypes()
getOutputTypes in interface org.ow2.jasmine.probe.JProbeManagerMXBean
public java.lang.String createIndicator(org.ow2.jasmine.probe.JasmineIndicator newindic)
throws org.ow2.jasmine.probe.JasmineProbeException
createIndicator in interface org.ow2.jasmine.probe.JProbeManagerMXBeannewindic - indicator description
org.ow2.jasmine.probe.JasmineProbeException
public void changeIndicator(org.ow2.jasmine.probe.JasmineIndicator indic)
throws org.ow2.jasmine.probe.JasmineProbeException
changeIndicator in interface org.ow2.jasmine.probe.JasmineProbeManagerindic - indicator description
org.ow2.jasmine.probe.JasmineProbeException - is thrown if the indicator does not exist,
or if it is used by a running probe.
public void removeIndicator(java.lang.String name)
throws org.ow2.jasmine.probe.JasmineProbeException
removeIndicator in interface org.ow2.jasmine.probe.JProbeManagerMXBeanname - ident of the indicator to remove
org.ow2.jasmine.probe.JasmineProbeException
public org.ow2.jasmine.probe.JasmineIndicator getIndicator(java.lang.String id)
throws org.ow2.jasmine.probe.JasmineProbeException
getIndicator in interface org.ow2.jasmine.probe.JProbeManagerMXBeanid - identifier.
org.ow2.jasmine.probe.JasmineProbeExceptionpublic java.util.Collection<org.ow2.jasmine.probe.JasmineIndicator> getIndicators()
getIndicators in interface org.ow2.jasmine.probe.JasmineProbeManagerpublic java.lang.String[] listIndicators()
listIndicators in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic java.util.Collection<org.ow2.jasmine.probe.JasminePropertyInfo> getIndicatorPropertyInfos(java.lang.String type)
getIndicatorPropertyInfos in interface org.ow2.jasmine.probe.JasmineProbeManagertype - type of the Indicator (jmx, lewys, ...)
public java.util.Set<java.lang.String> getIndicatorTypes()
getIndicatorTypes in interface org.ow2.jasmine.probe.JProbeManagerMXBean
public java.lang.String createTarget(org.ow2.jasmine.probe.JasmineTarget newtarget)
throws org.ow2.jasmine.probe.JasmineProbeException
createTarget in interface org.ow2.jasmine.probe.JProbeManagerMXBeannewtarget - target description
org.ow2.jasmine.probe.JasmineProbeException
public void changeTarget(org.ow2.jasmine.probe.JasmineTarget newtarget)
throws org.ow2.jasmine.probe.JasmineProbeException
changeTarget in interface org.ow2.jasmine.probe.JasmineProbeManagernewtarget - new target description
org.ow2.jasmine.probe.JasmineProbeException - is thrown if the target does not exist.
public void removeTarget(java.lang.String name)
throws org.ow2.jasmine.probe.JasmineProbeException
removeTarget in interface org.ow2.jasmine.probe.JProbeManagerMXBeanname - ident of the target to remove
org.ow2.jasmine.probe.JasmineProbeExceptionpublic java.lang.String[] listTargets()
listTargets in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic java.util.Collection<org.ow2.jasmine.probe.JasmineTarget> getTargets()
getTargets in interface org.ow2.jasmine.probe.JasmineProbeManagerpublic org.ow2.jasmine.probe.JasmineTarget getTarget(java.lang.String name)
getTarget in interface org.ow2.jasmine.probe.JProbeManagerMXBeangetTarget in interface org.ow2.jasmine.probe.probemanager.ProbeManagername -
public void addProbeListener(org.ow2.jasmine.probe.JasmineProbeListener listener)
addProbeListener in interface org.ow2.jasmine.probe.JasmineProbeManagerlistener - object that treats the probe state change
public void saveConfig(java.lang.String path)
throws org.ow2.jasmine.probe.JasmineProbeException
saveConfig in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpath - the xml file, or null if saved in the default configuration file.
org.ow2.jasmine.probe.JasmineProbeException
public void loadConfig(java.lang.String path)
throws org.ow2.jasmine.probe.JasmineProbeException
loadConfig in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpath - the xml file.
org.ow2.jasmine.probe.JasmineProbeException
public org.ow2.jasmine.probe.collector.JasmineCollector getCollector(java.lang.String indicatorName,
int period,
java.lang.String probeid)
throws org.ow2.jasmine.probe.JasmineProbeException
getCollector in interface org.ow2.jasmine.probe.probemanager.ProbeManagerindicatorName - indicator nameperiod - the period of the probe using the indicatorprobeid -
org.ow2.jasmine.probe.JasmineProbeExceptionpublic java.util.List<java.lang.String> getAggregateFuntions()
getAggregateFuntions in interface org.ow2.jasmine.probe.probemanager.ProbeManagerpublic org.ow2.jasmine.probe.collector.JasmineAggregateService getAggregate(java.lang.String key)
getAggregate in interface org.ow2.jasmine.probe.probemanager.ProbeManagerkey - the aggregate function that is searched
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||