| Modifier and Type | Method and Description |
|---|---|
void |
dump(boolean reset)
Triggers a dump of the current execution data through the configured
output.
|
RuntimeData |
getData()
Returns the runtime data object created by this agent
|
byte[] |
getExecutionData(boolean reset)
Returns current execution data.
|
static Agent |
getInstance()
Returns a global instance which is already started.
|
static Agent |
getInstance(AgentOptions options)
Returns a global instance which is already started.
|
String |
getSessionId()
Returns current a session identifier.
|
String |
getVersion()
Returns version of JaCoCo.
|
void |
reset()
Resets all coverage information.
|
void |
setSessionId(String id)
Sets a session identifier.
|
void |
shutdown()
Shutdown the agent again.
|
void |
startup()
Initializes this agent.
|
public static Agent getInstance(AgentOptions options)
options - options to configure the instancepublic static Agent getInstance() throws IllegalStateException
IllegalStateException - if no Agent has been started yetpublic RuntimeData getData()
public void startup()
public void shutdown()
public String getVersion()
IAgentgetVersion in interface IAgentpublic String getSessionId()
IAgentgetSessionId in interface IAgentpublic void setSessionId(String id)
IAgentsetSessionId in interface IAgentid - new session identifierpublic void reset()
IAgentpublic byte[] getExecutionData(boolean reset)
IAgentgetExecutionData in interface IAgentreset - if true the current execution data is cleared
afterwardspublic void dump(boolean reset)
throws IOException
IAgentdump in interface IAgentreset - if true the current execution data is cleared
afterwardsIOException - if the output can't write execution dataCopyright © 2024. All rights reserved.