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
IAgentControllerstartup in interface IAgentControlleroptions - Options used to configure the agent controllerruntime - Coverage runtime this agent controller will be connected toException - in case startup failspublic void shutdown()
throws Exception
IAgentControllershutdown in interface IAgentControllerException - in case shutdown failspublic void writeExecutionData()
throws Exception
IAgentControllerwriteExecutionData in interface IAgentControllerException - in case writing failspublic String getVersion()
IRuntimeMBeangetVersion in interface IRuntimeMBeanpublic String getSessionId()
IRuntimeMBeangetSessionId in interface IRuntimeMBeanpublic void setSessionId(String id)
IRuntimeMBeansetSessionId in interface IRuntimeMBeanid - new session identifierpublic byte[] dump(boolean reset)
throws IOException
IRuntimeMBeandump in interface IRuntimeMBeanreset - if true the current coverage information is also
clearedIOExceptionpublic void reset()
IRuntimeMBeanreset in interface IRuntimeMBeanCopyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.