org.jboss.arquillian.protocol.jmx
Class JMXTestRunner
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.jboss.arquillian.protocol.jmx.JMXTestRunner
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter, JMXTestRunnerMBean
public class JMXTestRunner
- extends NotificationBroadcasterSupport
- implements JMXTestRunnerMBean
An MBean to run test methods in container.
- Author:
- thomas.diesler@jboss.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMXTestRunner
public JMXTestRunner(JMXTestRunner.TestClassLoader classLoader)
registerMBean
public ObjectName registerMBean(MBeanServer mbeanServer)
throws JMException
- Throws:
JMException
unregisterMBean
public void unregisterMBean(MBeanServer mbeanServer)
throws JMException
- Throws:
JMException
runTestMethod
public byte[] runTestMethod(String className,
String methodName)
- Description copied from interface:
JMXTestRunnerMBean
- Runs a test method on the given test class
- Specified by:
runTestMethod in interface JMXTestRunnerMBean
- Parameters:
className - the test class namemethodName - the test method name
- Returns:
- a serialized
TestResult
send
public void send(Command<?> command)
- Description copied from interface:
JMXTestRunnerMBean
- Broadcast
Command commands to any listeners
- Specified by:
send in interface JMXTestRunnerMBean
- Parameters:
command - Command object containing the request
receive
public Command<?> receive()
- Description copied from interface:
JMXTestRunnerMBean
- Receive
Command results
- Specified by:
receive in interface JMXTestRunnerMBean
- Returns:
- command Command object containing the result, null if none received (yet)
push
public void push(String eventId,
byte[] command)
- Description copied from interface:
JMXTestRunnerMBean
- Client side to push a
Command result back to container.
- Specified by:
push in interface JMXTestRunnerMBean
- Parameters:
eventId - used to correlate the resultcommand - Command object containing the result, serialized
getCurrentCall
protected String getCurrentCall()
- Returns:
- the currentCall
setCurrentCall
protected void setCurrentCall(String current)
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.