public abstract class AbstractRuntime extends Object implements IRuntime
IRuntime implementation.| Modifier and Type | Field and Description |
|---|---|
protected org.jacoco.core.runtime.ExecutionDataAccess |
access
access for this runtime instance
|
protected ExecutionDataStore |
store
store for execution data
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRuntime()
Creates a new runtime.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateDataAccessorprotected final ExecutionDataStore store
protected final org.jacoco.core.runtime.ExecutionDataAccess access
protected final void setStartTimeStamp()
IRuntime.startup()
implementation to record the timestamp of session startup.public void setSessionId(String id)
IRuntimesetSessionId in interface IRuntimeid - new session identifierIRuntime.collect(IExecutionDataVisitor, ISessionInfoVisitor, boolean)public String getSessionId()
IRuntimegetSessionId 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().public final void reset()
IRuntimeIRuntime.startup() and IRuntime.shutdown().public void disconnect(Class<?> type) throws Exception
IRuntimedisconnect in interface IRuntimetype - class to clearException - if clearing the data is not possiblepublic static String createRandomId()
Copyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.