|
Kieker 1.6 | |||||||||
| 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)
|
boolean |
deactivateProbe(String pattern)
Deactivates a probe. |
boolean |
disableMonitoring()
Disables monitoring. |
boolean |
enableMonitoring()
Enables monitoring. |
int |
getExperimentId()
Returns the experiment ID. |
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. |
int |
getIdForString(String string)
Gets a unique id for a string. |
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()
|
ITimeSource |
getTimeSource()
Returns the ITimeSource used in this controller. |
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)
|
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. |
void |
setExperimentId(int newExperimentID)
Sets the experiment ID to the given value. |
void |
setProbePatternList(List<String> patternList)
|
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)
public static final String getVersion()
public final String toString()
IMonitoringController
toString in interface IMonitoringControllertoString in class AbstractControllerpublic 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()
IStateController
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 IStateControllerpublic final int getExperimentId()
IStateController
getExperimentId in interface IStateControllerpublic final boolean newMonitoringRecord(IMonitoringRecord record)
IWriterController
newMonitoringRecord in interface IWriterControllernewMonitoringRecord in interface IMonitoringRecordReceiverrecord - 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 ISamplingControllerScheduledSamplerJob 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 ISamplingControllerpublic final ITimeSource getTimeSource()
ITimeSourceController
getTimeSource in interface ITimeSourceControllerpublic final String getJMXDomain()
getJMXDomain in interface IJMXControllerpublic final int getIdForString(String string)
IRegistryController
getIdForString in interface IRegistryControllerstring - the string
public 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)
isProbeActivated in interface IProbeControllersignature - signature of the probe
public void setProbePatternList(List<String> patternList)
setProbePatternList in interface IProbeControllerpatternList - list of strings with patterns
where each string starts either with a + or -public List<String> getProbePatternList()
getProbePatternList in interface IProbeControllerpublic static final IMonitoringController getInstance()
|
Kieker 1.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||