You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Nikolay Izhikov (Jira)" <ji...@apache.org> on 2020/02/27 13:48:00 UTC
[jira] [Created] (IGNITE-12723) Test refactoring. Explicit method
to get MXBean instance
Nikolay Izhikov created IGNITE-12723:
----------------------------------------
Summary: Test refactoring. Explicit method to get MXBean instance
Key: IGNITE-12723
URL: https://issues.apache.org/jira/browse/IGNITE-12723
Project: Ignite
Issue Type: Improvement
Reporter: Nikolay Izhikov
Assignee: Nikolay Izhikov
Test code contains several dozen of copy-paste code to get different MXBeans.
We can reduce code base by introducing common method for it.
Example of copy pasted code:
{code:java}
/** */
private FailureHandlingMxBean getMBean() throws Exception {
ObjectName name = U.makeMBeanName(getTestIgniteInstanceName(0), "Kernal",
FailureHandlingMxBeanImpl.class.getSimpleName());
MBeanServer srv = ManagementFactory.getPlatformMBeanServer();
assertTrue(srv.isRegistered(name));
return MBeanServerInvocationHandler.newProxyInstance(srv, name, FailureHandlingMxBean.class, true);
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)