|
Kieker 1.10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkieker.monitoring.core.controller.AbstractController
kieker.monitoring.core.controller.MonitoringController
public final class MonitoringController
| Method Summary | |
|---|---|
boolean |
activateProbe(String pattern)
Activates a probe. |
static IMonitoringController |
createInstance(Configuration configuration)
This is a factory method creating a new monitoring controller instance using the given configuration. |
boolean |
deactivateProbe(String pattern)
Deactivates a probe. |
boolean |
disableMonitoring()
Disables monitoring. |
boolean |
enableMonitoring()
Enables monitoring. |
int |
getExperimentId()
|
String |
getHostname()
The hostname will be part of the monitoring data and allows to distinguish observations in cases where the software system is deployed on more than one host. |
static IMonitoringController |
getInstance()
|
String |
getJMXDomain()
|
String |
getName()
Returns the name of this controller. |
long |
getNumberOfInserts()
Shows how many inserts have been performed since last restart of the execution environment. |
List<String> |
getProbePatternList()
Returns the current list of patterns with a prefix indicating whether the pattern is active or not. |
String |
getStringForUniqueId(int id)
Gets a string for a unique id. |
IRegistry<String> |
getStringRegistry()
Gets the used IRegistry |
ITimeSource |
getTimeSource()
Returns the ITimeSource used in this controller. |
int |
getUniqueIdForString(String string)
Gets a unique id for a string. |
static String |
getVersion()
Return the version name of this controller instance. |
int |
incExperimentId()
Increments the experiment ID by 1 and returns the new value. |
boolean |
isDebug()
Is the debug mode enabled? |
boolean |
isMonitoringEnabled()
Returns whether monitoring is enabled or disabled/terminated. |
boolean |
isMonitoringTerminated()
Returns whether monitoring is permanently terminated. |
boolean |
isProbeActivated(String signature)
Tests if a probe is active. |
boolean |
newMonitoringRecord(IMonitoringRecord record)
Called for each new record. |
boolean |
removeScheduledSampler(ScheduledSamplerJob sampler)
Stops future executions of the given periodic ScheduledSamplerJob . |
ScheduledSamplerJob |
schedulePeriodicSampler(ISampler sampler,
long initialDelay,
long period,
TimeUnit timeUnit)
Schedules the given ISampler with given initial delay, and period. |
boolean |
sendMetadataAsRecord()
This method sends the meta data (like the controller and host name, the experiment ID, etc.) as a record. |
void |
setExperimentId(int newExperimentID)
Sets the experiment ID to the given value. |
void |
setProbePatternList(List<String> patternList)
Overwrites the current list of patterns with a new pattern list. |
boolean |
terminateMonitoring()
Permanently terminates monitoring. |
String |
toString()
This method is used to log the status of the controllers to the console. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static final IMonitoringController createInstance(Configuration configuration)
configuration - The configuration for the new controller.
public static final String getVersion()
public final String toString()
IMonitoringController
toString in interface IMonitoringControllertoString in class AbstractControllerpublic final boolean sendMetadataAsRecord()
sendMetadataAsRecord in interface IMonitoringControllerpublic final boolean terminateMonitoring()
IStateController
terminateMonitoring in interface IStateControllerIStateController.isMonitoringTerminated()public final boolean isMonitoringTerminated()
IStateController
isMonitoringTerminated in interface IStateControllerIStateController.terminateMonitoring()public final boolean enableMonitoring()
IStateController
enableMonitoring in interface IStateControllerpublic final boolean disableMonitoring()
IStateController
disableMonitoring in interface IStateControllerpublic final boolean isMonitoringEnabled()
IStateController
isMonitoringEnabled in interface IStateControllerIStateController.disableMonitoring(),
IStateController.enableMonitoring()public final boolean isDebug()
IStateControllerDebug mode is for internal use only and changes a few internal id generation mechanisms to enable easier debugging. Additionally, it is possible to enable debug logging in the settings of the used logger.
isDebug in interface IStateControllerpublic final String getName()
IStateController
getName in interface IStateControllerpublic final String getHostname()
IStateController
getHostname in interface IStateControllerpublic final int incExperimentId()
IStateController
incExperimentId in interface IStateControllerpublic final void setExperimentId(int newExperimentID)
IStateController
setExperimentId in interface IStateControllernewExperimentID - The new ID.public final int getExperimentId()
getExperimentId in interface IStateControllerpublic final boolean newMonitoringRecord(IMonitoringRecord record)
IWriterController
newMonitoringRecord in interface IMonitoringRecordReceivernewMonitoringRecord in interface IWriterControllerrecord - the record.
public final long getNumberOfInserts()
IWriterController
getNumberOfInserts in interface IWriterController
public final ScheduledSamplerJob schedulePeriodicSampler(ISampler sampler,
long initialDelay,
long period,
TimeUnit timeUnit)
ISamplingControllerISampler with given initial delay, and period.
schedulePeriodicSampler in interface ISamplingControllersampler - The sampler to schedule.initialDelay - The initial delay.period - The period.timeUnit - The time unit which determines how to interpret the given parameter.
ScheduledSamplerJob as a handler for removing the scheduled sampler later on by using the method
ISamplingController.removeScheduledSampler(ScheduledSamplerJob).public final boolean removeScheduledSampler(ScheduledSamplerJob sampler)
ISamplingControllerScheduledSamplerJob .
removeScheduledSampler in interface ISamplingControllersampler - The sampler to be removed.
public final ITimeSource getTimeSource()
ITimeSourceController
getTimeSource in interface ITimeSourceControllerpublic final String getJMXDomain()
getJMXDomain in interface IJMXControllerpublic final int getUniqueIdForString(String string)
IRegistryController
getUniqueIdForString in interface IRegistryControllerstring - the string
public String getStringForUniqueId(int id)
IRegistryController
getStringForUniqueId in interface IRegistryControllerid - the unique id
public IRegistry<String> getStringRegistry()
IRegistryController
getStringRegistry in interface IRegistryControllerpublic final boolean activateProbe(String pattern)
IProbeController
activateProbe in interface IProbeControllerpattern - pattern for the probe
public final boolean deactivateProbe(String pattern)
IProbeController
deactivateProbe in interface IProbeControllerpattern - pattern for the probe
public boolean isProbeActivated(String signature)
IProbeController
isProbeActivated in interface IProbeControllersignature - signature of the probe
public void setProbePatternList(List<String> patternList)
IProbeController
setProbePatternList in interface IProbeControllerpatternList - 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.public List<String> getProbePatternList()
IProbeController
getProbePatternList in interface IProbeControllerpublic static final IMonitoringController getInstance()
|
Kieker 1.10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||