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()
IAgent
getVersion
in interface IAgent
public String getSessionId()
IAgent
getSessionId
in interface IAgent
public void setSessionId(String id)
IAgent
setSessionId
in interface IAgent
id
- new session identifierpublic void reset()
IAgent
public byte[] getExecutionData(boolean reset)
IAgent
getExecutionData
in interface IAgent
reset
- if true
the current execution data is cleared
afterwardspublic void dump(boolean reset) throws IOException
IAgent
dump
in interface IAgent
reset
- if true
the current execution data is cleared
afterwardsIOException
- if the output can't write execution dataCopyright © 2022. All rights reserved.