public class MBeanController extends Object implements IAgentController, IRuntimeMBean
Constructor and Description |
---|
MBeanController() |
Modifier and Type | Method and Description |
---|---|
byte[] |
dump(boolean reset)
Returns current execution data.
|
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 controller and clean up any resources it has created.
|
void |
startup(AgentOptions options,
IRuntime runtime)
Configure the agent controller with the supplied options and connect it
to the coverage runtime
|
void |
writeExecutionData()
Write all execution data in the runtime to a location determined by the
agent controller.
|
public void startup(AgentOptions options, IRuntime runtime) throws Exception
IAgentController
startup
in interface IAgentController
options
- Options used to configure the agent controllerruntime
- Coverage runtime this agent controller will be connected toException
- in case startup failspublic void shutdown() throws Exception
IAgentController
shutdown
in interface IAgentController
Exception
- in case shutdown failspublic void writeExecutionData() throws Exception
IAgentController
writeExecutionData
in interface IAgentController
Exception
- in case writing failspublic String getVersion()
IRuntimeMBean
getVersion
in interface IRuntimeMBean
public String getSessionId()
IRuntimeMBean
getSessionId
in interface IRuntimeMBean
public void setSessionId(String id)
IRuntimeMBean
setSessionId
in interface IRuntimeMBean
id
- new session identifierpublic byte[] dump(boolean reset) throws IOException
IRuntimeMBean
dump
in interface IRuntimeMBean
reset
- if true
the current coverage information is also
clearedIOException
public void reset()
IRuntimeMBean
reset
in interface IRuntimeMBean
Copyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.