Kieker 1.12

kieker.monitoring.core.controller
Class ProbeController

java.lang.Object
  extended by kieker.monitoring.core.controller.AbstractController
      extended by kieker.monitoring.core.controller.ProbeController
All Implemented Interfaces:
IProbeController

public class ProbeController
extends AbstractController
implements IProbeController

Since:
1.6
Author:
Jan Waller, Bjoern Weissenfels, Nils Christian Ehmke

Field Summary
 
Fields inherited from class kieker.monitoring.core.controller.AbstractController
monitoringController
 
Constructor Summary
protected ProbeController(Configuration configuration)
          Creates a new instance of this class using the given configuration to initialize the class.
 
Method Summary
 boolean activateProbe(java.lang.String pattern)
          Activates a probe.
protected  void cleanup()
          This method should clean up.
 boolean deactivateProbe(java.lang.String pattern)
          Deactivates a probe.
 java.util.List<java.lang.String> getProbePatternList()
          Returns the current list of patterns with a prefix indicating whether the pattern is active or not.
protected  void init()
          This method should to the initialization work.
 boolean isProbeActivated(java.lang.String signature)
          Tests if a probe is active.
 void setProbePatternList(java.util.List<java.lang.String> strPatternList)
          Overwrites the current list of patterns with a new pattern list.
protected  void setProbePatternList(java.util.List<java.lang.String> strPatternList, boolean updateConfig)
          Sets the list of probe patterns.
 java.lang.String toString()
           
 
Methods inherited from class kieker.monitoring.core.controller.AbstractController
createAndInitialize, isTerminated, setMonitoringController, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProbeController

protected ProbeController(Configuration configuration)
Creates a new instance of this class using the given configuration to initialize the class.

Parameters:
configuration - The configuration used to initialize this controller.
Method Detail

init

protected void init()
Description copied from class: AbstractController
This method should to the initialization work.

Specified by:
init in class AbstractController

cleanup

protected void cleanup()
Description copied from class: AbstractController
This method should clean up.

Specified by:
cleanup in class AbstractController

toString

public java.lang.String toString()
Specified by:
toString in class AbstractController

activateProbe

public boolean activateProbe(java.lang.String pattern)
Activates a probe.

Specified by:
activateProbe in interface IProbeController
Parameters:
pattern - pattern for the probe
Returns:
true on success

deactivateProbe

public boolean deactivateProbe(java.lang.String pattern)
Deactivates a probe.

Specified by:
deactivateProbe in interface IProbeController
Parameters:
pattern - pattern for the probe
Returns:
true on success

isProbeActivated

public boolean isProbeActivated(java.lang.String signature)
Tests if a probe is active. This test is ignorant of the fact whether monitoring itself is enabled/disabled/terminated.

Specified by:
isProbeActivated in interface IProbeController
Parameters:
signature - signature of the probe
Returns:
true if the probe with this signature is active

setProbePatternList

protected void setProbePatternList(java.util.List<java.lang.String> strPatternList,
                                   boolean updateConfig)
Sets the list of probe patterns.

Parameters:
strPatternList - The new list with pattern strings.
updateConfig - Whether the pattern file should be updated or not.

setProbePatternList

public void setProbePatternList(java.util.List<java.lang.String> strPatternList)
Overwrites the current list of patterns with a new pattern list.

Specified by:
setProbePatternList in interface IProbeController
Parameters:
strPatternList - list of strings with patterns where each string starts either with a + or -. The list can be empty (in which case the internal pattern list and the internal cache are cleared) - but not null.

getProbePatternList

public java.util.List<java.lang.String> getProbePatternList()
Returns the current list of patterns with a prefix indicating whether the pattern is active or not.

Specified by:
getProbePatternList in interface IProbeController
Returns:
list of strings with patterns where each string starts either with a + or -

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net