|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.core.runtime.AbstractRuntime
public abstract class AbstractRuntime
Base IRuntime implementation.
| Field Summary | |
|---|---|
protected org.jacoco.core.runtime.ExecutionDataAccess |
access
access for this runtime instance |
protected ExecutionDataStore |
store
store for execution data |
| Constructor Summary | |
|---|---|
protected |
AbstractRuntime()
Creates a new runtime. |
| Method Summary | |
|---|---|
void |
collect(IExecutionDataVisitor executionDataVisitor,
ISessionInfoVisitor sessionInfoVisitor,
boolean reset)
Collects the current execution data and writes it to the given IExecutionDataVisitor object. |
static String |
createRandomId()
Creates a random session identifier. |
void |
disconnect(Class<?> type)
Clears the execution data buffered in the given instrumented type. |
String |
getSessionId()
Get the current a session identifier for this runtime. |
void |
reset()
Resets all coverage information. |
void |
setSessionId(String id)
Sets a session identifier for this runtime. |
protected void |
setStartTimeStamp()
Subclasses need to call this method in their IRuntime.startup()
implementation to record the timestamp of session startup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jacoco.core.runtime.IRuntime |
|---|
shutdown, startup |
| Methods inherited from interface org.jacoco.core.runtime.IExecutionDataAccessorGenerator |
|---|
generateDataAccessor |
| Field Detail |
|---|
protected final ExecutionDataStore store
protected final org.jacoco.core.runtime.ExecutionDataAccess access
| Constructor Detail |
|---|
protected AbstractRuntime()
| Method Detail |
|---|
protected final void setStartTimeStamp()
IRuntime.startup()
implementation to record the timestamp of session startup.
public void setSessionId(String id)
IRuntime
setSessionId in interface IRuntimeid - new session identifierIRuntime.collect(IExecutionDataVisitor, ISessionInfoVisitor, boolean)public String getSessionId()
IRuntime
getSessionId in interface IRuntimeIRuntime.setSessionId(String)
public final void collect(IExecutionDataVisitor executionDataVisitor,
ISessionInfoVisitor sessionInfoVisitor,
boolean reset)
IRuntimeIExecutionDataVisitor object. This method must only be called
between IRuntime.startup() and IRuntime.shutdown().
collect in interface IRuntimeexecutionDataVisitor - handler to write coverage data tosessionInfoVisitor - optional visitor to write session information to or
null if session information is not requiredreset - if true the current coverage information is also
clearedpublic final void reset()
IRuntimeIRuntime.startup() and IRuntime.shutdown().
reset in interface IRuntime
public void disconnect(Class<?> type)
throws Exception
IRuntime
disconnect in interface IRuntimetype - class to clear
Exception - if clearing the data is not possiblepublic static String createRandomId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||