Package org.jacoco.agent.rt
Interface IAgent
-
- All Known Implementing Classes:
Agent
public interface IAgentRuntime API and MBean agent interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddump(boolean reset)Triggers a dump of the current execution data through the configured output.byte[]getExecutionData(boolean reset)Returns current execution data.java.lang.StringgetSessionId()Returns current a session identifier.java.lang.StringgetVersion()Returns version of JaCoCo.voidreset()Resets all coverage information.voidsetSessionId(java.lang.String id)Sets a session identifier.
-
-
-
Method Detail
-
getVersion
java.lang.String getVersion()
Returns version of JaCoCo.- Returns:
- version of JaCoCo
-
getSessionId
java.lang.String getSessionId()
Returns current a session identifier.- Returns:
- current session identifier
-
setSessionId
void setSessionId(java.lang.String id)
Sets a session identifier.- Parameters:
id- new session identifier
-
reset
void reset()
Resets all coverage information.
-
getExecutionData
byte[] getExecutionData(boolean reset)
Returns current execution data.- Parameters:
reset- iftruethe current execution data is cleared afterwards- Returns:
- dump of current execution data in JaCoCo binary format
-
dump
void dump(boolean reset) throws java.io.IOException
Triggers a dump of the current execution data through the configured output.- Parameters:
reset- iftruethe current execution data is cleared afterwards- Throws:
java.io.IOException- if the output can't write execution data
-
-