Rename invoke JMX operation

Rename invoke JMX operation to getData for endpoints that provide actuator data. Special case for ShutdownEndpoint to provide a shutdown method.
This commit is contained in:
Christian Dupuis
2013-12-19 15:49:18 +01:00
parent 31f7807acf
commit 72ae5d5a97
5 changed files with 101 additions and 11 deletions

View File

@@ -70,8 +70,8 @@ public class EndpointMBeanExporterTests {
MBeanInfo mbeanInfo = mbeanExporter.getServer().getMBeanInfo(
getObjectName("endpoint1", this.context));
assertNotNull(mbeanInfo);
assertEquals(4, mbeanInfo.getOperations().length);
assertEquals(3, mbeanInfo.getAttributes().length);
assertEquals(5, mbeanInfo.getOperations().length);
assertEquals(5, mbeanInfo.getAttributes().length);
}
@Test
@@ -127,7 +127,7 @@ public class EndpointMBeanExporterTests {
private ObjectName getObjectName(String beanKey, ApplicationContext applicationContext)
throws MalformedObjectNameException {
return new EndpointMBean(beanKey,
return new DataEndpointMBean(beanKey,
(Endpoint<?>) applicationContext.getBean(beanKey)).getObjectName();
}