|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JasmineProbeManager
Interface for JASMINe Probe Manager.
| Method Summary | |
|---|---|
void |
addProbeListener(JasmineProbeListener listener)
Register a ProbeListener in order to be notified by probe state changes. |
void |
changeOutput(JasmineOutput output)
Change an output. |
void |
changeProbe(JasmineProbe probe)
Change a Probe with new parameters The Probe must be of the same type (stat/poll) |
void |
changeTarget(JasmineTarget target)
Recreate a target with a given name. |
void |
createOutput(JasmineOutput output)
Create a new Output |
int |
createProbe(JasmineProbe probe)
Create a new probe defined by its data |
void |
createTarget(JasmineTarget target)
Create a target with a given name. |
JasmineOutput |
findOutput(java.lang.String name)
Return the output definition corresponding to an output name. |
JasmineTarget |
findTarget(java.lang.String targetName)
Return a target object identified by its name. |
java.util.Set<javax.management.ObjectName> |
getMBeans(JasmineTarget target,
java.lang.String pattern)
Get the list of mbeans matching a pattern for this target. |
java.util.Collection<JasmineOutput> |
getOutputs()
get the list of all defined outputs. |
java.util.Collection<JasmineProbe> |
getProbes()
|
java.util.Collection<JasmineTarget> |
getTargets()
get the list of all defined targets. |
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 |
removeOutput(java.lang.String name)
remove an output |
void |
removeProbe(int id)
Remove a probe. |
void |
removeTarget(java.lang.String name)
remove an target |
void |
saveConfig(java.lang.String path)
Save the current configuration in the specified xml file |
void |
startAllProbes()
Start all the managed probes. |
void |
startProbe(int id)
Start a probe. |
void |
stopAllProbes()
Stop all the managed probes. |
void |
stopProbe(int id)
Stop a probe. |
| Method Detail |
|---|
int createProbe(JasmineProbe probe)
throws JasmineProbeException
probe - probe description
JasmineProbeException
void changeProbe(JasmineProbe probe)
throws JasmineProbeException
probe - probe description
JasmineProbeException
void removeProbe(int id)
throws JasmineProbeException
id - probe identifier.
JasmineProbeException
void startProbe(int id)
throws JasmineProbeException
id - probe identifier.
JasmineProbeException - the probe could not be started.
void stopProbe(int id)
throws JasmineProbeException
id - probe identifier.
JasmineProbeException - the probe could not be stopped.
void startAllProbes()
throws JasmineProbeException
JasmineProbeException
void stopAllProbes()
throws JasmineProbeException
JasmineProbeException
void removeAllProbes()
throws JasmineProbeException
JasmineProbeExceptionjava.util.Collection<JasmineProbe> getProbes()
void addProbeListener(JasmineProbeListener listener)
listener - object that treats the probe state change
void createTarget(JasmineTarget target)
throws JasmineProbeException
target - the Target definition
JasmineProbeException - is thrown if the targetName is already
in use and ...
void changeTarget(JasmineTarget target)
throws JasmineProbeException
target - the Target definition
JasmineProbeException - is thrown if the targetName doesn't exist
or if the target is used by a running probe.JasmineTarget findTarget(java.lang.String targetName)
targetName - a target name
java.util.Collection<JasmineTarget> getTargets()
throws JasmineProbeException
JasmineProbeException - ...
void removeTarget(java.lang.String name)
throws JasmineProbeException
name - that identify the target to remove
JasmineProbeException
void createOutput(JasmineOutput output)
throws JasmineProbeException
output - output description
JasmineProbeException
void changeOutput(JasmineOutput output)
throws JasmineProbeException
output - output description
JasmineProbeException - is thrown if the output does not exist,
or if it is used by a running probe.JasmineOutput findOutput(java.lang.String name)
name - output name
void removeOutput(java.lang.String name)
throws JasmineProbeException
name - ident of the output to remove
JasmineProbeException
java.util.Collection<JasmineOutput> getOutputs()
throws JasmineProbeException
JasmineProbeException
void saveConfig(java.lang.String path)
throws JasmineProbeException
path - the xml file, or null if saved in the default configuration file.
JasmineProbeException
void loadConfig(java.lang.String path)
throws JasmineProbeException
path - the xml file, or null if load the default configuration file.
JasmineProbeException
java.util.Set<javax.management.ObjectName> getMBeans(JasmineTarget target,
java.lang.String pattern)
throws JasmineProbeException
target - The JasmineTargetpattern - ObjectName pattern
JasmineProbeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||