|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.probe.manager.internal.JProbeManagerImpl
public class JProbeManagerImpl
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 static org.ow2.util.log.Log |
logger
|
| Constructor Summary | |
|---|---|
JProbeManagerImpl()
|
|
| 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. |
String |
createIndicator(org.ow2.jasmine.probe.JasmineIndicator newindic)
Create a new Indicator |
String |
createOutput(org.ow2.jasmine.probe.JasmineOutput newoutput)
Register a new Output in the ProbeManager A name is associated to the Output definition. |
String |
createProbe(org.ow2.jasmine.probe.JasmineProbe probe)
Create a new probe defined by its data |
String |
createTarget(org.ow2.jasmine.probe.JasmineTarget newtarget)
Create a new target |
org.ow2.jasmine.probe.collector.JasmineAggregateService |
getAggregate(String key)
Return the AggregateService for a given aggregate function |
List<String> |
getAggregateFuntions()
|
org.ow2.jasmine.probe.collector.JasmineCollector |
getCollector(String indicatorName,
int period,
String probeid)
Get a Collector by its Indicator name |
Collection<org.ow2.jasmine.probe.JasminePropertyInfo> |
getIndicatorPropertyInfos(String type)
get the list of possible properties for Indicator, depending of its type. |
Collection<org.ow2.jasmine.probe.JasmineIndicator> |
getIndicators()
get the list of all defined indicators. |
org.ow2.jasmine.probe.JasmineOutput |
getOutput(String name)
get a given output's definition |
Collection<org.ow2.jasmine.probe.JasminePropertyInfo> |
getOutputPropertyInfos(String type)
get the list of possible properties for Output, depending of its type. |
Collection<org.ow2.jasmine.probe.JasmineOutput> |
getOutputs()
get the list of all defined outputs. |
Collection<org.ow2.jasmine.probe.JasmineProbe> |
getProbes()
|
org.ow2.jasmine.probe.JasmineTarget |
getTarget(String name)
Get a JasmineTarget by its name |
Collection<org.ow2.jasmine.probe.JasmineTarget> |
getTargets()
get the list of all defined targets. |
void |
loadConfig(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(String name)
remove an indicator |
void |
removeOutput(String name)
remove an output. |
void |
removeProbe(String probeId)
Remove a probe. |
void |
removeTarget(String name)
remove a target |
void |
saveConfig(String path)
Save the current configuration in the specified xml file |
void |
start()
|
void |
startAllProbes()
Start all the managed probes. |
void |
startProbe(String probeId)
Start a probe. |
void |
stop()
|
void |
stopAllProbes()
Stop all the managed probes. |
void |
stopProbe(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
| Constructor Detail |
|---|
public JProbeManagerImpl()
| 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 String createProbe(org.ow2.jasmine.probe.JasmineProbe probe)
throws org.ow2.jasmine.probe.JasmineProbeException
createProbe in interface org.ow2.jasmine.probe.JasmineProbeManagerprobe - 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(String probeId)
throws org.ow2.jasmine.probe.JasmineProbeException
removeProbe in interface org.ow2.jasmine.probe.JasmineProbeManagerprobeId - probe identifier.
org.ow2.jasmine.probe.JasmineProbeException
public void removeAllProbes()
throws org.ow2.jasmine.probe.JasmineProbeException
removeAllProbes in interface org.ow2.jasmine.probe.JasmineProbeManagerorg.ow2.jasmine.probe.JasmineProbeExceptionpublic Collection<org.ow2.jasmine.probe.JasmineProbe> getProbes()
getProbes in interface org.ow2.jasmine.probe.JasmineProbeManager
public void startProbe(String probeId)
throws org.ow2.jasmine.probe.JasmineProbeException
startProbe in interface org.ow2.jasmine.probe.JasmineProbeManagerprobeId - probe identifier.
org.ow2.jasmine.probe.JasmineProbeException - the probe could not be started.
public void stopProbe(String probeId)
throws org.ow2.jasmine.probe.JasmineProbeException
stopProbe in interface org.ow2.jasmine.probe.JasmineProbeManagerprobeId - 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.JasmineProbeManagerorg.ow2.jasmine.probe.JasmineProbeException
public void stopAllProbes()
throws org.ow2.jasmine.probe.JasmineProbeException
stopAllProbes in interface org.ow2.jasmine.probe.JasmineProbeManagerorg.ow2.jasmine.probe.JasmineProbeException
public String createOutput(org.ow2.jasmine.probe.JasmineOutput newoutput)
throws org.ow2.jasmine.probe.JasmineProbeException
createOutput in interface org.ow2.jasmine.probe.JasmineProbeManagernewoutput - 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(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
removeOutput in interface org.ow2.jasmine.probe.JasmineProbeManagername - 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 Collection<org.ow2.jasmine.probe.JasmineOutput> getOutputs()
getOutputs in interface org.ow2.jasmine.probe.JasmineProbeManager
public org.ow2.jasmine.probe.JasmineOutput getOutput(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
name - the output's name
org.ow2.jasmine.probe.JasmineProbeExceptionpublic Collection<org.ow2.jasmine.probe.JasminePropertyInfo> getOutputPropertyInfos(String type)
getOutputPropertyInfos in interface org.ow2.jasmine.probe.JasmineProbeManagertype - type of the Output (console, file, ...)
public String createIndicator(org.ow2.jasmine.probe.JasmineIndicator newindic)
throws org.ow2.jasmine.probe.JasmineProbeException
createIndicator in interface org.ow2.jasmine.probe.JasmineProbeManagernewindic - 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(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
removeIndicator in interface org.ow2.jasmine.probe.JasmineProbeManagername - ident of the indicator to remove
org.ow2.jasmine.probe.JasmineProbeExceptionpublic Collection<org.ow2.jasmine.probe.JasmineIndicator> getIndicators()
getIndicators in interface org.ow2.jasmine.probe.JasmineProbeManagerpublic Collection<org.ow2.jasmine.probe.JasminePropertyInfo> getIndicatorPropertyInfos(String type)
getIndicatorPropertyInfos in interface org.ow2.jasmine.probe.JasmineProbeManagertype - type of the Indicator (jmx, lewys, ...)
public String createTarget(org.ow2.jasmine.probe.JasmineTarget newtarget)
throws org.ow2.jasmine.probe.JasmineProbeException
createTarget in interface org.ow2.jasmine.probe.JasmineProbeManagernewtarget - 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(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
removeTarget in interface org.ow2.jasmine.probe.JasmineProbeManagername - ident of the target to remove
org.ow2.jasmine.probe.JasmineProbeExceptionpublic Collection<org.ow2.jasmine.probe.JasmineTarget> getTargets()
getTargets in interface org.ow2.jasmine.probe.JasmineProbeManagerpublic 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(String path)
throws org.ow2.jasmine.probe.JasmineProbeException
saveConfig in interface org.ow2.jasmine.probe.JasmineProbeManagerpath - the xml file, or null if saved in the default configuration file.
org.ow2.jasmine.probe.JasmineProbeException
public void loadConfig(String path)
throws org.ow2.jasmine.probe.JasmineProbeException
loadConfig in interface org.ow2.jasmine.probe.JasmineProbeManagerpath - the xml file, or null if load the default configuration file.
org.ow2.jasmine.probe.JasmineProbeException
public org.ow2.jasmine.probe.collector.JasmineCollector getCollector(String indicatorName,
int period,
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 List<String> getAggregateFuntions()
getAggregateFuntions in interface org.ow2.jasmine.probe.probemanager.ProbeManagerpublic org.ow2.jasmine.probe.collector.JasmineAggregateService getAggregate(String key)
getAggregate in interface org.ow2.jasmine.probe.probemanager.ProbeManagerkey - the aggregate function that is searched
public org.ow2.jasmine.probe.JasmineTarget getTarget(String name)
getTarget in interface org.ow2.jasmine.probe.probemanager.ProbeManagername -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||