|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.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 IMonitoringController
toString
in class AbstractController
public final boolean sendMetadataAsRecord()
sendMetadataAsRecord
in interface IMonitoringController
public final boolean terminateMonitoring()
IStateController
terminateMonitoring
in interface IStateController
IStateController.isMonitoringTerminated()
public final boolean isMonitoringTerminated()
IStateController
isMonitoringTerminated
in interface IStateController
IStateController.terminateMonitoring()
public final boolean enableMonitoring()
IStateController
enableMonitoring
in interface IStateController
public final boolean disableMonitoring()
IStateController
disableMonitoring
in interface IStateController
public final boolean isMonitoringEnabled()
IStateController
isMonitoringEnabled
in interface IStateController
IStateController.disableMonitoring()
,
IStateController.enableMonitoring()
public final boolean isDebug()
IStateController
Debug 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 IStateController
public final String getName()
IStateController
getName
in interface IStateController
public final String getHostname()
IStateController
getHostname
in interface IStateController
public final int incExperimentId()
IStateController
incExperimentId
in interface IStateController
public final void setExperimentId(int newExperimentID)
IStateController
setExperimentId
in interface IStateController
newExperimentID
- The new ID.public final int getExperimentId()
getExperimentId
in interface IStateController
public final boolean newMonitoringRecord(IMonitoringRecord record)
IMonitoringRecordReceiver
newMonitoringRecord
in interface IMonitoringRecordReceiver
newMonitoringRecord
in interface IWriterController
record
- the record.
public final long getNumberOfInserts()
IWriterController
getNumberOfInserts
in interface IWriterController
public final ScheduledSamplerJob schedulePeriodicSampler(ISampler sampler, long initialDelay, long period, TimeUnit timeUnit)
ISamplingController
ISampler
with given initial delay, and period.
schedulePeriodicSampler
in interface ISamplingController
sampler
- 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)
ISamplingController
ScheduledSamplerJob
.
removeScheduledSampler
in interface ISamplingController
sampler
- The sampler to be removed.
public final ITimeSource getTimeSource()
ITimeSourceController
getTimeSource
in interface ITimeSourceController
public final String getJMXDomain()
getJMXDomain
in interface IJMXController
public final int getUniqueIdForString(String string)
IRegistryController
getUniqueIdForString
in interface IRegistryController
string
- the string
public String getStringForUniqueId(int id)
IRegistryController
getStringForUniqueId
in interface IRegistryController
id
- the unique id
public IRegistry<String> getStringRegistry()
IRegistryController
getStringRegistry
in interface IRegistryController
public final boolean activateProbe(String pattern)
IProbeController
activateProbe
in interface IProbeController
pattern
- pattern for the probe
public final boolean deactivateProbe(String pattern)
IProbeController
deactivateProbe
in interface IProbeController
pattern
- pattern for the probe
public boolean isProbeActivated(String signature)
IProbeController
isProbeActivated
in interface IProbeController
signature
- signature of the probe
public void setProbePatternList(List<String> patternList)
IProbeController
setProbePatternList
in interface IProbeController
patternList
- 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 IProbeController
public static final IMonitoringController getInstance()
|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |