|
||||||||||
| 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 |
addDefaultOutput(String name)
|
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 newdef)
Change an indicator. |
void |
changeOutput(org.ow2.jasmine.probe.JasmineOutput newdef)
Change an output. |
void |
changeProbe(org.ow2.jasmine.probe.JasmineProbe newdef)
Change a Probe with new parameters All parameters that are not supplied rest unchanged. |
void |
changeProbePeriod(String probeId,
int period)
Set a new value for probe period |
void |
changeTarget(org.ow2.jasmine.probe.JasmineTarget newdef)
Change a target. |
String |
createIndicator(org.ow2.jasmine.probe.JasmineIndicator newindic)
Create a new Indicator |
String |
createIndicatorInternal(org.ow2.jasmine.probe.JasmineIndicator newindic,
boolean check)
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,
String probeid)
Get a Collector by its Indicator name |
org.ow2.jasmine.probe.collector.JasmineCollectorService |
getCollectorService(String type)
Get the CollectorService for a given type |
String |
getDomainName()
|
org.ow2.jasmine.probe.JasmineIndicator |
getIndicator(String name)
Get an Indicator by its name |
Set<String> |
getIndicatorCurrentUse(String name)
Get the list of probes using this indicator |
List<org.ow2.jasmine.probe.JasmineIndicator> |
getIndicators()
Get all the Indicator definitions in one operation. |
List<org.ow2.jasmine.probe.JasmineIndicator> |
getIndicators(String type)
Get the list of indicators having a given type. |
org.ow2.jasmine.probe.JasmineCollectorInfo |
getIndicatorTypeInfo(String type)
Get all infiormation about the type of indicator |
Set<String> |
getIndicatorTypes()
|
org.ow2.jasmine.probe.outer.JasmineOuterService |
getOuterService(String type)
Get the OuterService for a given type |
org.ow2.jasmine.probe.JasmineOutput |
getOutput(String id)
Get an Output by its name |
Set<String> |
getOutputCurrentUse(String name)
Get the list of probes using this output |
List<org.ow2.jasmine.probe.JasminePropertyInfo> |
getOutputPropertyInfos(String type)
get the list of possible properties for Output, depending of its type. |
List<org.ow2.jasmine.probe.JasmineOutput> |
getOutputs()
Get all the Output definitions in one operation. |
List<org.ow2.jasmine.probe.JasmineOutput> |
getOutputs(String type)
Get the list of all outputs of a given type. |
Set<String> |
getOutputTypes()
|
org.ow2.jasmine.probe.JasmineProbe |
getProbe(String probeId)
Get a Probe by its name |
List<org.ow2.jasmine.probe.JasmineProbe> |
getProbes()
Get all the Probe definitions in one operation. |
org.ow2.jasmine.probe.probescheduler.SchedulerService |
getScheduler()
return the scheduler |
String |
getServerName()
|
org.ow2.jasmine.probe.JasmineTarget |
getTarget(String name)
Get a JasmineTarget by its name |
List<org.ow2.jasmine.probe.JasminePropertyInfo> |
getTargetPropertyInfos(String type)
get the list of possible properties for Target, depending of its type. |
List<org.ow2.jasmine.probe.JasmineTarget> |
getTargets()
Get all the Target definitions in one operation. |
Set<String> |
getTargetTypes()
|
String[] |
listDefaultOutputs()
|
String[] |
listIndicators(String type)
|
String[] |
listOutputs(String type)
Get the list of all outputs or of outputs having a given type |
String[] |
listProbes()
|
String[] |
listTargets()
|
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 |
removeDefaultOutput(String name)
|
void |
removeIndicator(String name)
remove an indicator |
void |
removeOutput(String name)
remove an output. |
void |
removeProbe(String probeId)
Remove a probe. |
void |
removeProbeListener(org.ow2.jasmine.probe.JasmineProbeListener listener)
Remove a ProbeListener previously registered. |
void |
removeTarget(String name)
remove a target |
void |
saveConfig(String path)
Save the current configuration in the specified xml file |
void |
setProbeState(JProbe running,
int state,
String message)
Notify a state change for that probe |
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
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 org.ow2.jasmine.probe.probescheduler.SchedulerService getScheduler()
public org.ow2.jasmine.probe.outer.JasmineOuterService getOuterService(String type)
public org.ow2.jasmine.probe.collector.JasmineCollectorService getCollectorService(String type)
public 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 removeProbe(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 List<org.ow2.jasmine.probe.JasmineProbe> getProbes()
getProbes in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic String[] listProbes()
listProbes in interface org.ow2.jasmine.probe.JProbeManagerMXBean
public org.ow2.jasmine.probe.JasmineProbe getProbe(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(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(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 void changeProbe(org.ow2.jasmine.probe.JasmineProbe newdef)
throws org.ow2.jasmine.probe.JasmineProbeException
changeProbe in interface org.ow2.jasmine.probe.JProbeManagerMXBeannewdef - partial probe description
org.ow2.jasmine.probe.JasmineProbeException
public void changeProbePeriod(String probeId,
int period)
throws org.ow2.jasmine.probe.JasmineProbeException
changeProbePeriod in interface org.ow2.jasmine.probe.JProbeManagerMXBeanprobeId - probe identifier.period - in seconds
org.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.JProbeManagerMXBeannewoutput - output description
org.ow2.jasmine.probe.JasmineProbeException
public void changeOutput(org.ow2.jasmine.probe.JasmineOutput newdef)
throws org.ow2.jasmine.probe.JasmineProbeException
changeOutput in interface org.ow2.jasmine.probe.JProbeManagerMXBeannewdef - output changes description
org.ow2.jasmine.probe.JasmineProbeException - is thrown if the output does not exist.
public void removeOutput(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 String[] listOutputs(String type)
listOutputs in interface org.ow2.jasmine.probe.JProbeManagerMXBeantype - the given type. If null, get all the outputs.public List<org.ow2.jasmine.probe.JasmineOutput> getOutputs()
getOutputs in interface org.ow2.jasmine.probe.JProbeManagerMXBean
public void addDefaultOutput(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
addDefaultOutput in interface org.ow2.jasmine.probe.JProbeManagerMXBeanorg.ow2.jasmine.probe.JasmineProbeExceptionpublic String[] listDefaultOutputs()
listDefaultOutputs in interface org.ow2.jasmine.probe.JProbeManagerMXBean
public void removeDefaultOutput(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
removeDefaultOutput in interface org.ow2.jasmine.probe.JProbeManagerMXBeanorg.ow2.jasmine.probe.JasmineProbeExceptionpublic List<org.ow2.jasmine.probe.JasmineOutput> getOutputs(String type)
type - the given output type
public org.ow2.jasmine.probe.JasmineOutput getOutput(String id)
throws org.ow2.jasmine.probe.JasmineProbeException
getOutput in interface org.ow2.jasmine.probe.JProbeManagerMXBeanid - output identifier.
org.ow2.jasmine.probe.JasmineProbeExceptionpublic List<org.ow2.jasmine.probe.JasminePropertyInfo> getOutputPropertyInfos(String type)
getOutputPropertyInfos in interface org.ow2.jasmine.probe.JProbeManagerMXBeantype - type of the Output (console, file, ...)
public Set<String> getOutputTypes()
getOutputTypes in interface org.ow2.jasmine.probe.JProbeManagerMXBean
public Set<String> getOutputCurrentUse(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
getOutputCurrentUse in interface org.ow2.jasmine.probe.JProbeManagerMXBeanname - Output name
org.ow2.jasmine.probe.JasmineProbeException - bad parameter
public 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 newdef)
throws org.ow2.jasmine.probe.JasmineProbeException
changeIndicator in interface org.ow2.jasmine.probe.JProbeManagerMXBeannewdef - 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.JProbeManagerMXBeanname - ident of the indicator to remove
org.ow2.jasmine.probe.JasmineProbeException
public org.ow2.jasmine.probe.JasmineIndicator getIndicator(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
getIndicator in interface org.ow2.jasmine.probe.JProbeManagerMXBeanname - indicator name.
org.ow2.jasmine.probe.JasmineProbeExceptionpublic List<org.ow2.jasmine.probe.JasmineIndicator> getIndicators()
getIndicators in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic List<org.ow2.jasmine.probe.JasmineIndicator> getIndicators(String type)
type - the given indicator type
public String[] listIndicators(String type)
listIndicators in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic org.ow2.jasmine.probe.JasmineCollectorInfo getIndicatorTypeInfo(String type)
getIndicatorTypeInfo in interface org.ow2.jasmine.probe.JProbeManagerMXBeantype - type of the Indicator (Jmx, Lewys, ...)
public Set<String> getIndicatorTypes()
getIndicatorTypes in interface org.ow2.jasmine.probe.JProbeManagerMXBean
public Set<String> getIndicatorCurrentUse(String name)
throws org.ow2.jasmine.probe.JasmineProbeException
getIndicatorCurrentUse in interface org.ow2.jasmine.probe.JProbeManagerMXBeanname - Indicator name
org.ow2.jasmine.probe.JasmineProbeException - bad parameter
public 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 newdef)
throws org.ow2.jasmine.probe.JasmineProbeException
changeTarget in interface org.ow2.jasmine.probe.JProbeManagerMXBeannewdef - 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.JProbeManagerMXBeanname - ident of the target to remove
org.ow2.jasmine.probe.JasmineProbeExceptionpublic String[] listTargets()
listTargets in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic List<org.ow2.jasmine.probe.JasmineTarget> getTargets()
getTargets in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic org.ow2.jasmine.probe.JasmineTarget getTarget(String name)
getTarget in interface org.ow2.jasmine.probe.JProbeManagerMXBeangetTarget in interface org.ow2.jasmine.probe.probemanager.ProbeManagername -
public List<org.ow2.jasmine.probe.JasminePropertyInfo> getTargetPropertyInfos(String type)
getTargetPropertyInfos in interface org.ow2.jasmine.probe.JProbeManagerMXBeantype - type of the Target (jmx, ...)
public Set<String> getTargetTypes()
getTargetTypes in interface org.ow2.jasmine.probe.JProbeManagerMXBeanpublic void addProbeListener(org.ow2.jasmine.probe.JasmineProbeListener listener)
addProbeListener in interface org.ow2.jasmine.probe.JasmineProbeManagerlistener - object that treats the probe state changepublic void removeProbeListener(org.ow2.jasmine.probe.JasmineProbeListener listener)
removeProbeListener 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.JProbeManagerMXBeanpath - 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.JProbeManagerMXBeanpath - the xml file.
org.ow2.jasmine.probe.JasmineProbeException
public org.ow2.jasmine.probe.collector.JasmineCollector getCollector(String indicatorName,
String probeid)
throws org.ow2.jasmine.probe.JasmineProbeException
getCollector in interface org.ow2.jasmine.probe.probemanager.ProbeManagerprobeid - indicatorName - indicator name
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 String getDomainName()
getDomainName in interface org.ow2.jasmine.probe.probemanager.ProbeManagerpublic String getServerName()
getServerName in interface org.ow2.jasmine.probe.probemanager.ProbeManager
public String createIndicatorInternal(org.ow2.jasmine.probe.JasmineIndicator newindic,
boolean check)
throws org.ow2.jasmine.probe.JasmineProbeException
newindic - indicator descriptioncheck - true if check properties against the Collector (that should be there)
org.ow2.jasmine.probe.JasmineProbeException
public void setProbeState(JProbe running,
int state,
String message)
running - probestate - See JasmineProbe.statemessage - Error message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||