Package org.eclipse.steady.java.monitor
Class ExecutionMonitor
- java.lang.Object
-
- org.eclipse.steady.java.monitor.ExecutionMonitor
-
public class ExecutionMonitor extends Object
Uses theClassVisitorto dynamically instrument Java constructors and methods, i.e., during the class loading process. Receives callbacks from instrumented code that is executed during application tests. The collected information is then uploaded to the central Vulas backend using theUploadScheduler.
-
-
Constructor Summary
Constructors Constructor Description ExecutionMonitor()Constructor for ExecutionMonitor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitUpload()Iterates over all configuredIInstrumentors and callsIInstrumentor.awaitUpload()for each of them.voidenablePeriodicUpload(long _interval, int _batch_size)enablePeriodicUpload.static ExecutionMonitorgetInstance()Getter for the fieldinstance.intgetPeriodicUploadBatchSize()getPeriodicUploadBatchSize.longgetPeriodicUploadInterval()getPeriodicUploadInterval.static booleanisPaused()isPaused.booleanisPeriodicUploadEnabled()isPeriodicUploadEnabled.static voidsetPaused(boolean _bool)setPaused.voidstartGoal()startGoal.voidstopGoal()stopGoal.StringtoString()toString.voiduploadInformation()CallsuploadInformation(int)with a batch size of -1.voiduploadInformation(int batchSize)Iterates over all configuredIInstrumentors and callsIInstrumentor.upladInformation(AbstractGoal, int)for each of them.
-
-
-
Method Detail
-
getInstance
public static ExecutionMonitor getInstance()
Getter for the field
instance.- Returns:
- a
ExecutionMonitorobject.
-
isPaused
public static boolean isPaused()
isPaused.
- Returns:
- a boolean.
-
setPaused
public static void setPaused(boolean _bool)
setPaused.
- Parameters:
_bool- a boolean.
-
toString
public String toString()
toString.
-
enablePeriodicUpload
public void enablePeriodicUpload(long _interval, int _batch_size)enablePeriodicUpload.
- Parameters:
_interval- a long._batch_size- a int.
-
isPeriodicUploadEnabled
public boolean isPeriodicUploadEnabled()
isPeriodicUploadEnabled.
- Returns:
- a boolean.
-
getPeriodicUploadInterval
public long getPeriodicUploadInterval()
getPeriodicUploadInterval.
- Returns:
- a long.
-
getPeriodicUploadBatchSize
public int getPeriodicUploadBatchSize()
getPeriodicUploadBatchSize.
- Returns:
- a int.
-
startGoal
public void startGoal() throws GoalConfigurationExceptionstartGoal.
- Throws:
GoalConfigurationException- if any.
-
stopGoal
public void stopGoal()
stopGoal.
-
awaitUpload
public void awaitUpload()
Iterates over all configuredIInstrumentors and callsIInstrumentor.awaitUpload()for each of them.
-
uploadInformation
public void uploadInformation()
CallsuploadInformation(int)with a batch size of -1.
-
uploadInformation
public void uploadInformation(int batchSize)
Iterates over all configuredIInstrumentors and callsIInstrumentor.upladInformation(AbstractGoal, int)for each of them.- Parameters:
batchSize- a int.
-
-