public class JMXTestRunner extends NotificationBroadcasterSupport implements JMXTestRunnerMBean
Modifier and Type | Class and Description |
---|---|
static interface |
JMXTestRunner.TestClassLoader |
OBJECT_NAME
Constructor and Description |
---|
JMXTestRunner(JMXTestRunner.TestClassLoader classLoader) |
JMXTestRunner(JMXTestRunner.TestClassLoader classLoader,
String objectName) |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.arquillian.test.spi.TestResult |
doRunTestMethod(TestRunner runner,
Class<?> testClass,
String methodName,
Map<String,String> protocolProps) |
protected String |
getCurrentCall() |
void |
push(String eventId,
byte[] command)
Client side to push a
Command result back to container. |
Command<?> |
receive()
Receive
Command results |
ObjectName |
registerMBean(MBeanServer mbeanServer) |
byte[] |
runTestMethod(String className,
String methodName)
Runs a test method on the given test class
|
byte[] |
runTestMethod(String className,
String methodName,
Map<String,String> protocolProps)
Runs a test method on the given test class
|
void |
send(Command<?> command)
Broadcast
Command commands to any listeners |
protected void |
setCurrentCall(String current) |
void |
unregisterMBean(MBeanServer mbeanServer) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addNotificationListener, getNotificationInfo, removeNotificationListener
public JMXTestRunner(JMXTestRunner.TestClassLoader classLoader)
public JMXTestRunner(JMXTestRunner.TestClassLoader classLoader, String objectName)
public ObjectName registerMBean(MBeanServer mbeanServer) throws JMException
JMException
public void unregisterMBean(MBeanServer mbeanServer) throws JMException
JMException
public byte[] runTestMethod(String className, String methodName)
JMXTestRunnerMBean
runTestMethod
in interface JMXTestRunnerMBean
className
- the test class namemethodName
- the test method nameTestResult
public byte[] runTestMethod(String className, String methodName, Map<String,String> protocolProps)
JMXTestRunnerMBean
runTestMethod
in interface JMXTestRunnerMBean
className
- the test class namemethodName
- the test method nameTestResult
protected org.jboss.arquillian.test.spi.TestResult doRunTestMethod(TestRunner runner, Class<?> testClass, String methodName, Map<String,String> protocolProps)
public void send(Command<?> command)
JMXTestRunnerMBean
Command
commands to any listenerssend
in interface JMXTestRunnerMBean
command
- Command object containing the requestpublic Command<?> receive()
JMXTestRunnerMBean
Command
resultsreceive
in interface JMXTestRunnerMBean
public void push(String eventId, byte[] command)
JMXTestRunnerMBean
Command
result back to container.push
in interface JMXTestRunnerMBean
eventId
- used to correlate the resultcommand
- Command object containing the result, serializedprotected String getCurrentCall()
protected void setCurrentCall(String current)
Copyright © 2015 JBoss by Red Hat. All rights reserved.