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, wait
generateDataAccessor
protected 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)
IRuntime
setSessionId
in interface IRuntime
id
- new session identifierIRuntime.collect(IExecutionDataVisitor, ISessionInfoVisitor, boolean)
public String getSessionId()
IRuntime
getSessionId
in interface IRuntime
IRuntime.setSessionId(String)
public final void collect(IExecutionDataVisitor executionDataVisitor, ISessionInfoVisitor sessionInfoVisitor, boolean reset)
IRuntime
IExecutionDataVisitor
object. This method must only be called
between IRuntime.startup()
and IRuntime.shutdown()
.public final void reset()
IRuntime
IRuntime.startup()
and IRuntime.shutdown()
.public void disconnect(Class<?> type) throws Exception
IRuntime
disconnect
in interface IRuntime
type
- class to clearException
- if clearing the data is not possiblepublic static String createRandomId()
Copyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.